def genResultsTable( dbid, query = nil, clist = nil, slist = nil, jht = nil, jsa = nil, options = nil, qid = nil, qname = nil )

      @dbid, @query, @clist, @slist, @jht, @jsa, @options = dbid, query, clist, slist, jht, jsa, options

      @clist ||= getColumnListForQuery(qid, qname)
      @slist ||= getSortListForQuery(qid, qname)

      xmlRequestData = getQueryRequestXML( query, qid, qname )
      xmlRequestData << toXML( :clist, @clist ) if @clist
      xmlRequestData << toXML( :slist, @slist ) if @slist
      xmlRequestData << toXML( :jht, @jht ) if @jht
      xmlRequestData << toXML( :jsa, @jsa ) if @jsa
      xmlRequestData << toXML( :options, @options ) if @options

      sendRequest( :genResultsTable, xmlRequestData )

      @HTML = @responseXML

      return self if @chainAPIcalls
      @HTML
   end
def genResultsTable( dbid, query = nil, clist = nil, slist = nil, jht = nil, jsa = nil, options = nil, qid = nil, qname = nil )

      @dbid, @query, @clist, @slist, @jht, @jsa, @options = dbid, query, clist, slist, jht, jsa, options

      @clist ||= getColumnListForQuery(qid, qname)
      @slist ||= getSortListForQuery(qid, qname)

      xmlRequestData = getQueryRequestXML( query, qid, qname )
      xmlRequestData << toXML( :clist, @clist ) if @clist
      xmlRequestData << toXML( :slist, @slist ) if @slist
      xmlRequestData << toXML( :jht, @jht ) if @jht
      xmlRequestData << toXML( :jsa, @jsa ) if @jsa
      xmlRequestData << toXML( :options, @options ) if @options

      sendRequest( :genResultsTable, xmlRequestData )

      @HTML = @responseXML

      return self if @chainAPIcalls
      @HTML
   end
API_GenResultsTable