I have a ListGrid on a page that is populated by a DataSource. I then want to select a record in the ListGrid and pass the entire DataSource as well as the selected record to a new page to populate a form with the selected record and use the data in the DataSource to perform some business logic.
Is there a way to identify the selected record on the DataSource? Or to get a specific record from the DataSource?
I can get the index of the selected row and pass it to my new page but I do not see anyway to get that record from the DataSource.
listGrid is populated by the InnerDataSource
How do I get the record at "rec" from "ids" on my new page?
Is there a way to identify the selected record on the DataSource? Or to get a specific record from the DataSource?
I can get the index of the selected row and pass it to my new page but I do not see anyway to get that record from the DataSource.
listGrid is populated by the InnerDataSource
Code:
InnerDataSource ids = (InnerDataSource) datasource.getDataSource("ids"); int rec = listGrid.getRecordIndex(listGrid.getSelectedRecord()); MaintainInner maintInner = new MaintainInner(ids, rec);
Comment