I have three tables accounts, journal & journal_history
There are three entries for an account in the journal.
I am doing a sort on account_name of the file accounts from journal (for example account_name = “test”).
It gives me three journal records. I guess it must return just 1 master record regardless of how many related records it has.
Then I am doing a search on a field called “description” in the journal_history file from the journal file.
If there are multiple child records matched it must return one record master journal record. But it is not.
If I did not do the sort before hand the search works as expected.
frmObj = forms.departmentList;
frmObj.controller.find();
frmObj.account_id__journal_to_account.account_name = “test”;
frmObj.controller.search();
//returns 1 record
frmObj = forms.departmentList;
frmObj.controller.sort(“account_id__journal_to_account.account_name”);
//returns 3 records if there are three entries for the account “test”
frmObj = forms.departmentList;
frmObj.controller.find();
frmObj.department_id__department_to_employee.description = “%test%”;
frmObj.controller.search();
//returns 2 records (there are 2 matching records) //it must return 1 master journal record
Is this the expected behavior or a bug?
Thanks
Hameed