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