@labkey/api
    Preparing search index...

    Function selectRows

    • Select rows.

      function onFailure(errorInfo, options, responseObj)
      {
      if (errorInfo && errorInfo.exception)
      alert("Failure: " + errorInfo.exception);
      else
      alert("Failure: " + responseObj.statusText);
      }

      function onSuccess(data)
      {
      alert("Success! " + data.rowCount + " rows returned.");
      }

      LABKEY.Query.selectRows({
      schemaName: 'lists',
      queryName: 'People',
      columns: ['Name', 'Age'],
      success: onSuccess,
      failure: onFailure
      });

      Parameters

      Returns XMLHttpRequest

      In client-side scripts, this method will return a transaction id for the async request that can be used to cancel the request. In server-side scripts, this method will return the JSON response object (first parameter of the success or failure callbacks).