You just need to loop through the table rows and check if the row is selected, then go directly to the edit page. This sets the table's current row to the selected row, so when when you display the table columns on your edit page, the correct data will automatically be displayed and edited.
Code: Select all
var rows = tables.T1.rows;
while (rows.next())
{
if (tables.T1.isRowSelected())
{
form.gotoPage(pages.editPage);
}
}
Documentation:
http://dev-docs.verj.io/ufs/doc/table_d ... c257106253
But usually there is an easier way: change one of the table columns - something that uniquely identifies the row such as the id or name - to be a hyperlink. Add a script to the hyperlink on click event with the following code. Then you don't need a select column at all.
Code: Select all
form.gotoPage(pages.editPage);