The QueryString collection, a collection of values of variables in the HTTP query string in the URL, is available to the ViewRecords method of the SQLXML component (Litware.dll) when the Request object (an intrinsic ASP object) is passed to ViewRecords. The following examples are from Group.htm, GroupList.htm, and ActivityList.htm; all *List.htm and *.htm files contain similar code.
The QueryString collection has one of the following formats:
var xml = '../Scripts/viewData.asp?tableName=group&fieldList=GroupId,Name&sortBy=Name&search=' + term;
var xml = '../Scripts/viewData.asp?tableName=group&whereID=' + id;
xmldoc.load('../Scripts/viewData.asp?tableName=location&fieldList=LocationId,Name,MaxOccupancy&sortBy=Name');
The following code fragment from activityList.htm gets the activities for a group:
if (id != null) xml = '../Scripts/viewData.asp?procName=lw_getActivityTypes&groupId=' + id;