Hi all - the default table for my phpmaker project requires search criteria. However, when there are no search criteria, it still shows a popup window "Please enter search criteria."
For several years, I have disabled this by editing the template file listscript - but I'd really like to just get rid of this popup without needing to edit the template file.
Again, I want the search criteria required, but just want to eliminate this pop-up globally in the project. Is this possible? Or, is it possible just for the table in question (called patient_list)?
I am modifying the list-script template file as follows. I thought in v2018 of phpmaker I could make this modification in my program file instead of having to edit the template file each time I update to the next version of phpmaker or new template.
1) To clear "Please enter search criteria" message, Customize list-script.php in the template, look for and delete:
if ($<!--##=sPageObj##-->->SearchWhere == "0=101")
$<!--##=sPageObj##-->->setWarningMessage($Language->Phrase("EnterSearchCriteria"));
else
$<!--##=sPageObj##-->->setWarningMessage($Language->Phrase("NoRecord"));