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!

Set Page item value to null using JavaScript expression

user5108636Jun 13 2018 — edited Jun 14 2018

Hi All,

     Using APEX 5.1.3 with universal theme.

I have a normal page which opens up a dialog page. The dialog page has a cancel button and few page items.

On cancel  button click I need to set the value of two page items to null and cancel the dialog. Seems like a walk in the park, not to be.

I create a dynamic action for cancel button click and true actions of 1) set value and 2) cancel dialog.

In the set value action I choose JavaScript expression and use below expression

$s("P40_TEST",null);

with page items included in affected elements

After this the dialog appears blank, because it does not like something in the JavaScript.

The program seems to work normally if I replace the above JS expression with alert('hi');

Please advise, how to solve this.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2018
Added on Jun 13 2018
2 comments
2,268 views