Skip to Main Content

APEX

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!

Apex Interactive grid save selected row in page item

PamNLFeb 25 2019 — edited Mar 1 2019

I tried several blogs, but I'm obviously missing a step here ..

I have two interactive grids on my page. My idea is that you should selected one row from each grid and I want to do some processing on that (without actually submitting the page).

So as soon as you select a row, I want to store a value from the selected row.

I tried adding a dynamic action on APEX$ROW_SELECTOR with event Selection Change (interactive Grid). But how should I program the Action?
I tried SetValue with Javascript Expression (among other things)

apex.item ("P2_SELECTED_MB").setValue ("...")

(First with a static value to see if anything happens at all. After that I wanted to figure out how to pass a value from the grid.

I know you can select more records, so this will not work if you select multiple records, but it should work at least when you select one. I found several things on other blogs like

https://ruepprich.wordpress.com/2017/03/23/bulk-updating-interactive-grid-records/

But that should fire when you save I guess? So I created a button with a dynamic action with the javascript. Again .. at first I simply hardcode a stringvalue, but still nothing seems to happen (at least the page item is not showing any values on the page).

I also tried printing a message just to see if anything happens

apex.message.clearErrors();

apex.message.showPageSuccess ("At least something happens!");

But that also does not appear .. I'm sure what I want to achieve is pretty simple, so I hope you gurus may help me out here ..

pastedImage_1.png

This post has been answered by Franck N on Feb 25 2019
Jump to Answer
Comments
Post Details
Added on Feb 25 2019
7 comments
10,602 views