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!

listView - programatically select item?

User_IPNT8Dec 17 2019 — edited Dec 18 2019

Hi,

I have a listView and I am using the first-selected-item="[[function]]" attribute and it works great. When you select a record this function runs and I am able to get the values from the row and then display the popup.

My problem is I have also added a context menu. So if you tap and hold you get the option to Edit or Delete. If the user clicks on Edit I would essentially like it to do the exact same thing as if they just clicked on the row, which in turn invokes first-selected-item. Right now in the code I am using the cookbook listView context menu example and able to get the row the user selected via the context menu, but I then have to get all the other values from elsewhere as I don't have the selected row values available to me like the first-selected-item allows. Also, with the context menu up the popup sort of display but then dissapears as the context menu closes.

So I am just wondering if there is a way for me to simulate the user clicking the row when they choose the edit option?

This post has been answered by John JB Brock-Oracle on Dec 18 2019
Jump to Answer
Comments
Post Details
Added on Dec 17 2019
5 comments
614 views