This is another common scenario when you are working in ADF, which is quite well documented in the 10.1.3 release, but a quick scan didn't bring up an example of how to do it in 11g - so I created this little video.
The basic scenario - you show some records in a table and you want to select one of them and edit it in another page - so what you need to do is set the specific row you are going to use in the first page and then tell the second page to use it.
The way to do it when you are working with ADF BC is to use the setCurrentRowWithKey (or setCurrentRowWithKeyValue).
The difference between the two is explained here.
So here is how you do it:
Comments (1)
Hi,
tks for the example. I have a question. If in the edit form you navigate to another record, when you return to the table it's is positioned in the record that you clicked to go to the edit form. I tried to insert an return button with action listener to a setCurrenRowWithKey just like when I go from the table to the edit form. Any suggestions?
Tks.
Posted by Sarto | April 27, 2009 7:23 AM
Posted on April 27, 2009 07:23