Re: [webgfx] Listing ALL records after search
Hello Keith,
One solution would be to copy the 'list' call (that is currently being used to run the page), rename the variables that it uses and add 'allowSearch'=>false to the array of options (see below for an example).
Once you've done that, use the data from this new set of variables to drive your drop down menu.
Current getRecords call (example):
list($records, $recordsMetaData) => getRecords(array(
'tableName' => table,
'perPage' => 10,
));
Copied and updated to:
list($recordsTwo, $recordsTwoMetaData) => getRecords(array(
'tableName' => table,
'allowSearch' => false,
'loadCreatedBy' => false,
'loadUploads' => false,
));
Since the new 'list' call is being used to generate a menu, you don't need to include the createdBy information or any uploads for those records (unless you have photos or documents that you want to be able to access). Setting allowSearch to false means the search variables passed in the url won't affect the retrieval of the records (ie ALL records will be loaded).
Hope this helps,
Tom