I’ve been using Quicksearch a shown in one of the servoy-magazine-articles for quiet a while now.
Recently I had some issues with servoy 3.18 and servoy 3.57 where the entry within the find-mode overwrites the actual fieldcontent.
I have a global called ‘globals.globalcompanyname’ in the left navigation that holds the companyrequest.
forms.dp_01_portal.controller.find()
if (forms.dp_01_portal.controller.find()) //find will fail if autosave is disabled and there are unsaved records
{
forms.dp_01_portal.userdataprojects_to_userdata.apunternehmen = "#%"+globals. globalcompanyname +"%"
forms.dp_01_portal.controller.newRecord();
forms.dp_01_portal.userdataprojects_to_userdata.apnachname = "#%"+globals. globalcompanyname +"%"
forms.dp_01_portal.controller.newRecord();
forms.dp_01_portal.userdataprojects_to_products.katap01unternehmen = "#%"+globals. globalcompanyname +"%"
forms.dp_01_portal.controller.newRecord();
forms.dp_01_portal.userdataprojects_to_products.katap04unternehmen = "#%"+globals. globalcompanyname +"%"
forms.dp_01_portal.controller.search();
Maybe there is another technique that works better. The strange thing is that the failure only occurs with the clients and only very rarly.
Any hints?
Oliver