Viewerfuncion POST BUG

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 8, 2010   (RSS)

Re: [lexmooze] Viewerfuncion POST BUG

By Chris - October 8, 2010 - edited: October 8, 2010

Hi lexmooze,

I suspect this probably happened because getRecords() was trying to do a search on some of the data that you POSTed. By default, the 'allowSearch' feature will filter records using form input - any form field names that match up with record field names will be used to filter your records.

This feature makes it very easy to build search pages, but it can also confusingly cause records not to show up!

Try adding the line below in red to your getRecords() call:

list($sampleRecords, $sampleMetaData) = getRecords(array(
'tableName' => 'sample',
'allowSearch' => false,
));


Does that help? Please let me know if you have any questions.
All the best,
Chris