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?