Creating search menus with better readability in Progressive Web Applications
Before you begin
You must have a form that has the data required by the search menu with display property set to Menu Section .
To create smart menus in Progressive Web Applications
The following video (3:28) and procedure describe the example of creating a search menu with display property set to Menu Section by using data from the User Form.
https://www.youtube.com/watch?v=1QHi28coXqw
To create the panels with fields
- In Developer Studio, open the User Form.
Create a Progressive View.
- Right-click within the section panel and create a flow panel holder in the current view.
Create a New Field > In Current View > Flow Panel Holder
Adjust the panel size to allow the addition of more panels. You can see in the Outline pane that a new panel holder and panel are created. - Name the new panel holder and panel.
In this example, the names are Panel Holder4 and Panel 4. - Select Panel4 and in Properties, set Display > Type to Section Panel.
- Inside Panel4, create another flow panel holder.
- Name the panel holder and panel.
For example, Panel Holder5 and Panel5. - Create another panel within PanelHolder5.
You can see the two new panels within the panel.
- Select the two newly created panels.
- In Properties, set Progressive Desktop > Progressive Width.
In this example, the value is set to 6/12. These two panels occupy half the screen according to the 12-column layout. You can set Progressive Width to any other value based on how you want to - Add the Login Name, Full Name, and Email Address fields by navigating to Form > Add/Remove Fields in View.
These are the fields that are displayed by the search menu with display property set to Menu Section.
Select the two panels containing the Login Name, Full Name, and Email Address fields and in Properties, set Display > Type to Menu Section.
- Change the Label and Name property of the view to sample.
To create the search menu
- Create a search menu.
- In the search menu, in the Form Name field, type User, and in the View Name field, type sample.
The View Name must refer to the view that we just created and named as sample. - Under Label fields, add the three fields Email Address, Full Name, and Login Name.
- In Value Field, type Login Name.
- In Qualification, type 1=1.
- Save the menu as sample_menu.
- Create a form in Progressive View with a character field.
Name the form and the field. - Select the character fields and change the Menu Name property to sample_menu.
- Set the Chunk Size property to 5.
Chunking helps with the performance of the search menu with display property set to Menu Section. - Save the changes.
- Open the Mid Tier configuration tool and sync the cache.
http://<MidtierHostName>:<PortNumber>/arsys/shared/config/config_cache.jsp
To validate the search menu in Progressive Web Applications
- In a browser, log in to PWA.
(On-premise) http://<midtierHostName>:<portNumber>/arsys/pwa/#/login
(helix) http://<helixBaseURL>/arsys/pwa/#/login - Change the URL to include the Progressive View form that you created in Developer Studio.
(On-premise) http://<midtierHostName>:<portNumber>/arsys/pwa/#/forms/<AR_Server_Name>/<formName>/
(helix) http://<helixBaseURL>/arsys/pwa/#/forms/<AR_Server_Name>/<formName>/
- In the character field, start typing any name.
The search menu displays search suggestions consisting of multiple types of information in a well-formatted way.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*