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!

Issue with apex.item().setValue(); not working

Jake4321Jan 17 2022

Hi all,

I am currently working with version APEX 19.1.2.
I am struggling to get this actually very simple JavaScript to work from an OnChange DA but it does not work. I am trying to populate a page item with a value I calculated by using the apex.item().setValue(); function. I also tried the $v("Px_ITEM ", value); function but it does exactly the same. It does not populate.
I've been through quite a few questions and discussions on the site but everything is telling me this should work fine. For the sake of testing, I've stripped my code to the bare bone just to get the thing to work but nothing doing. The page item just does not populate. If I use the Set Type Static, and give it the same value it works fine, but not wit the JavaScript expression or a JavaScript Action.
What am I not getting? What am I doing wrong? Any help, comments, suggestions greatly appreciated as usual;
Thanks,
Jake
Below are my settings:
Identification
Action: Set Value
Settings
Set Type: JavaScript Expression
JavaScript Expression: apex.item("226_TOTAL_BORDEREAU").setValue("99");
Suppress Change Event: No
Affected Elements
Selection Type: Item(s)
Item(s): P226_TOTAL_BORDEREAU
Execution Options
Sequence: 20
Event: OnChangeQtePrix
Fire When Event Result Is: True
Fire on Initialization: No
Stop Execution On Error: Yes
Wait For Result: Yes

This post has been answered by fac586 on Jan 18 2022
Jump to Answer
Comments
Post Details
Added on Jan 17 2022
4 comments
2,704 views