When using controller.setSelectedIndex(index); if the record selected is not shown on the form, the form doesn’t scroll or move to show the selected record (the highlight just disappears off the screen).
I’m unable to find any method or property in the Controller, JSFoundset or JSForm to move the form to a selected record. Is there a property or method I am missing?
If you are using a framework there may different way to do this, but without a framework you can try:
controller.showRecords(singleNumber_pk:Number)
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'.
controller.showRecords(foundset);