I'm doing a method which makes a search depending on what the user entered in the fields. To make it easy to explain let assume that there are 4types of records: A, B, C and D
The search works except that it seems to seach on the records of type A and B and never give results with records of type C and D as if there was a constant filter to search only for A and B records.
Even when you don't enter anything in the filter fields (in that case it should display all the records) it still return only records of type A and B
So, in order to find the problem I have printed the content of the filter fields just before the controller.search() (no parameter so the search should search in all data in the table). Example:
- Code: Select all
application.output("forms.frm_expenses_list.fld_approved_by = "+forms.frm_expenses_list.fld_approved_by);
Results printed look ok: nothing printed. Except for few fields which print "undefined". Example:
- Code: Select all
forms.frm_expenses_list.fld_submitted =
forms.frm_expenses_list.fld_approved_by = undefined
It doesn't seems to influence the search as records of type A and B are displayed.
There are only 2 fields which, once filtered, could provide the type of result I have at the moment. The 1st one prints nothing and the second one prints "undefined".
Also, to make sure it is this search which is not working properly I do a "controller.getMaxRecordIndex()" which confirms that the search doesn't provide the right number of results.