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!

Call javascript to redirect a url and set page item value

Jian-cdoJun 21 2016 — edited Jun 24 2016

Hello,

I have a dynamic action to execute PL/SQL code for a save button, then after that another dynamic action to set one of page item value to null , then refresh the page.  somehow I can't set value to that page item successfully.  Say, I tried to assign the value within PL/SQL code (seems I can only do it in pre-rendering stage), I tried to call javascript function to set value, none of them works.  Anyone has other solution?  Thanks very much.

And here is the simple javascript function:

    function setItemV(){

        var v_item = null;

        $x('P6_MASTER_CONTACT_ID_2').value=v_item;

    }

I also tried this, which didn't work either:

javascript:apex.submit({request:'TEST',set:{'P6_MASTER_CONTACT_ID_2':null}});

Page item 'P6_MASTER_CONTACT_ID_2' is hidden and unprotected.

Regards,

Jian

This post has been answered by Jian-cdo on Jun 24 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2016
Added on Jun 21 2016
15 comments
9,040 views