def getSortListForQuery( id, name )
      slistForQuery = nil
      if id
         query = lookupQuery( id )
      elsif name
         query = lookupQueryByName( name )
      end
      if query and query.elements["qyslst"]
         slistForQuery = query.elements["qyslst"].text.dup
      end
      slistForQuery
   end
def getSortListForQuery( id, name )
      slistForQuery = nil
      if id
         query = lookupQuery( id )
      elsif name
         query = lookupQueryByName( name )
      end
      if query and query.elements["qyslst"]
         slistForQuery = query.elements["qyslst"].text.dup
      end
      slistForQuery
   end
Returns the slist associated with a query.