Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to select an item in a listView?

User_IPNT8Feb 3 2015 — edited Feb 10 2015

Hi All,

I have an application that contains a list view. When a user selects an item in the list view a popup appears with another listview. On this popup I have an edit link where if a user clicks it they are presented another popup where they can edit the data. However, when a user clicks the edit link I cannot make it also select that item in the list view. If they dont select the item in the listview before clicking the edit link they are always presented the first row to edit. Is there a way to programatically select a listview item? Or is there a way to have the action of the list view open a popup? From my limited experience I can only navigate to other pages with listview actions.

One other question I wanted to throw in. I am using a pageFlowScope variable to store the rowIndex of a listView using a property listed for #{row.rowKey}. When I try to assign this value to an Integer in Java it complains that it cant cast a type string to a Integer. How can I get the pageFlowScope variable to an integer?

rowIndex = (Integer)AdfmfJavaUtilities.evaluateELExpression("#{pageFlowScope.selectedAddressIndex}")

Comments
Post Details
Added on Feb 3 2015
7 comments
1,777 views