Databases Reference
In-Depth Information
<text>Legend</text>
<font family="Arial" size="10" color="0x000000" />
</title>
<font family="Arial" size="10" color="0x000000" />
<items><item source="thresholds"/></items>
</legend>
Saving the chart and running the APEX page should give you the result shown in Figure 2-62.
If you have Asynchronous Update set to Yes, you will also need to change the Region and replace
#CHART_REFRESH# with some custom JavaScript; instead of calling APEX's procedure to refresh the data, it
needs to call your own. One way of doing that is by copying the Dynamic Action and assigning it to the
change event of P18_CHART_XML .
Right-click the Dynamic Action - Copy
Event: Change
Selection Type: Item(s)
Item(s): P18_CHART_XML
Click the Copy Dynamic Action button
In the JavaScript you would trigger the change event on that item, so the Dynamic Action fires.
Following JavaScript code does that:
<script type="text/javascript" language="JavaScript">
var chartName = '#CHART_NAME#';
chartName = chartName.substring(1);
function chart_r#CHART_NAME#_InitRefresh(pNow) {
setTimeout("chart_r#CHART_NAME#_InitRefresh(true)",5000);
if (pNow){
apex_RefreshFlashChart (&APP_PAGE_ID., chartName, 'en-us');
$('#P18_CHART_XML').trigger('change');
}
}
apex_SWFFormFix('#CHART_NAME#');
addLoadEvent(chart_r#CHART_NAME#_InitRefresh(false));
</script>
To get it working, replace the #CHART_REFRESH# token you find in the Region Definition of the chart
by the above JavaScript.
Search WWH ::




Custom Search