Configuring a search action in a custom mobile app
To use the native search capability in a custom mobile app, you must define a mobile search action in the user interface. You can define the mobile search action anywhere within a section. For example, you can define this action for a button. When a user clicks that button, a native search is enabled so that the user can more quickly find the relevant content.
If you defined a list of search categories in the pySearchConfiguration rule, you can select the categories from the list that you want to display to the user during a search. By default, the header for the mobile search user interface control uses the color from the application's skin, the mobile header background value. You can override this setting by specifying a custom color as a hexidecimal color code.
- Edit a section.
- Click the View properties icon to open the Cell Properties panel for a user interface control, for example, a button.
- Click the Actions tab.
- Click Create an action set.
- Click Add an action.
- Click All actions and then click Mobile search.
- Optional: Select the Display only selected categories check box and in the list of available categories, select the categories to display in the mobile search user interface control.
- Optional: Select the Choose custom color for search header check box and in the Select bar color field, enter a hexadecimal color code to use for the mobile search header, for example: #1F2555.
- Click Submit.