Oct 27, 2011 9:30 AM
150 Posts

How to get the value of the clicked row in Mobile controls, Extlib

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 0
 

Take a look at the following code, it generates two mobile pages from one xpages (using the mobile controls in the latest extlib (8.5.3)
The first mobile page display 10 rows from a repeat control, each line display a number 1-10
 
The second mobile page displays only the label "item"
 
I know need to get hold of the row clicked in the first mobile page and display that in the row in the second mobile page.
so If I click on the the row 5 in the first mobile page I want it to say 5 in the second mobile page.
 
I have tried different things and tried to get answer at the extlib forum
http://www.openntf.org/internal/home.nsf/discussion.xsp?action=openDocument&documentId=5E199E9E55C65D3B86257932003231B5
 
- I tried to use parameters in the url
- I tried to get hold of the repeat using getComponent, but it does not bring me the clicked index
- I tried to  use a hidden field, but get no value.
 
any ideas?