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!

Oracle APEX 20.2 apex.item().setValue()

Srini-SJan 11 2022 — edited Jan 11 2022

I would like to make a page item null when clear button is pressed and refresh all contents so that user can start afresh, leaving aside whatever was entered so far in many page items. All page items derive their values from main page item PX_MAIN and so clearing this should make all other page items null too.
I am using apex.item().setValue() to set the value as a null in the page using DA when a button is pressed. The value disappears and all dependent items show blank too. After this, I have location.reload() which is to reload the page. However, I see that when I reload the page, the value reappears in the page item. Basically setValue has not set the value permanently. What should I do to make it null so that I see a blank page item when I reload it?

This post has been answered by fac586 on Jan 11 2022
Jump to Answer
Comments
Post Details
Added on Jan 11 2022
9 comments
4,421 views