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!

Dynamic action - Execute Javascript - wait for complete?

RalphLRAug 14 2014 — edited Aug 15 2014

Hi,

Apex 4.2

I have a Dynamic action that has two true actions

1) Executes some javascript code which in turn calls a plsql process to populate a hidden chart xml field.

2) Refreshes the chart.

Now the javascript call is apparently made in an asynchronous manner, meaning that the chart is being refreshed before the pl/sql has had time to populate the chart_xml data.

I understand that some Dynamic actions have a "wait for result" execution option, but this is not available with Execute JavaScript Code. I know next to nothing about Javascript, but I imagine that this code:

apex.server.process('P3_UPDATE_CHART_XML',{

f01:$.map($('[name="f01"]'),function(e){return $(e).val()})

},{

dataType:"text",

  success:function(pData){}

});

Can be adjusted to wait for the pl/sql process to complete?

Out of my depth.

Thanks

Ralph

This post has been answered by Tom Petrus on Aug 14 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2014
Added on Aug 14 2014
2 comments
3,125 views