XPages Mobile Controls - how to program the Back button

后端 未结 1 893
耶瑟儿~
耶瑟儿~ 2021-01-21 09:20

The XPages Mobile Controls provide an easy way to mobilize Notes/Domino data. However, if you have say 3 different views that help point a user to a specific record, the \"Back\

1条回答
  •  情话喂你
    2021-01-21 10:10

    The back button on a mobile page can be computed dynamically just like any other XPage property.
    Try this for example where you can set the scope to a mobile page you've navigated from to the current mobile page.

     
    
    
    

    This is the same technique that is used in the Discussion XL and TeamRoom XL templates for their mobile apps.

    To set the scope use the rendered property in the heading control for each 'view' mobile page so every time these pages are loaded or swapped to the scoped variable is set. Try the following link to get the full demo markup from OpenNTF XSnippets

    computed back button demo markup on XSnippets

    0 讨论(0)
提交回复
热议问题