Setting panels to scroll at different rates in Progressive Web Applications
Before you begin
You must start with an existing form that has more than one panel with the following properties:
Property | Value |
---|---|
Display > Display Type | Flow Panel |
Display > Type | Section Panel |
Display > Orientation | Vertical |
For example, the PWA screen in such as the SHR:SV_TicketDisplay form has two flow panels with these properties.
To set panels to scroll at different rates in Progressive Web Applications
- In , open the form for which you want to create sticky panels.
For example, open the SHR:SV_TicketDisplay form. - Select the Flow Panel Holder.
For example, in the SHR:SV_TicketDisplay form, select panels with IDs 304428481 and 304436081. - In Properties, under Display > Custom CSS Style, add the following string:
sticky-holder
If there are previously existing values in the Custom CSS Style field, the string sticky-holder must be preceded by a space. - (Optional) If the form has horizontal navigation fields, remove the following string from the Custom CSS Style property:
detach - Click Save and sync the Mid Tier cache.
For more information about how to sync the cache, see Synchronizing-Mid-Tier-cache.
To validate the behavior of the sticky panels in Progressive Web Applications
- In a browser, log in to PWA.
<serverName>:8080/arsys/pwa/#/login - Change the URL to include the Progressive View form that you created in .
<serverName>:8080/arsys/pwa/#/forms/<serverName>/<formName>/<viewName>
The panels in the PWA show 'sticky' behavior whenever there is more content in one of the panels.
Troubleshooting
If the panels do not appear or if there is an issue with scrolling, perform the following steps:
- Confirm that the page source of the PWA screen appears correct by using the browser developer tools.
- Confirm that the workflows and field properties are correctly defined in .
- If the page has horizontal navigation fields, remove the following string from the Custom CSS Style property:
detach
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*