Question
How to implement a search for multiple columns in a section?
For example, in the Contacts section, search by full name and zip code (the column in the Contact object).
Answer
- Launch the mobile app wizard
- Open default workplace (“Main workplace”)
- Go to section settings
- Click "Save"
- Create ClientUnit schema
- Add the following code to it:
Terrasoft.sdk.GridPage.setSearchColumns("Contact", [“Name”, “Zip”]);
- Open MobileApplicationManifestDefaultWorkplace in the Custom package
- Register your schema for the “Contacts” section:
{ “Models”: { “Contact”: { "PagesExtensions": [ "Name_of_the_schema" ] } } }