Re: [Perchpole] createdDate Search Problems
Hi,
Sure. By default, 'allowSearch' is set to true in getRecords() function. When this is set to true, the function looks for variables in the URL that match fields in the section being searched. If it finds them, it adds their values as part of the search.
The field createdDate is common to almost all CMS Builder functions. Therefore, if you put createdDate into the URL, it will affect every getRecords call because it will find that field in each section. Using the variable name "date" probably worked because that field was only found in one section, not all of them.
It's generally a good practice to always use 'allowSearch' => false, on every getRecords call, unless you want variables in the URL to be used as part of an automatic search.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/