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!

Setting IG column value through activating edit mode

Eslam_ElbyalyDec 14 2019 — edited Dec 19 2019

Apex 18.2.

Hi,

I have an IG and a button(Open Dialog) which opens a dialog. The dialog has a button(Set Price) that when clicked should add a new row on the IG, activate Edit mode and set the PRICE column's value.

Code....

apex.region("DTL").widget().interactiveGrid("getActions").invoke("selection-add-row"); 

$s("PRICE","5");

Scenario,

- Open dialog> click "Set Price" button> a row is added> Edit mode is activated> The PRICE column's value is not set.

- when I repeat the same scenario for the second time, the price's value is set successfully.

Edited:

I noticed that it works only when there is a row in the IG but does not when no rows!

Why does not it work when there is no rows?

Comments
Post Details
Added on Dec 14 2019
6 comments
870 views