<mx:ColumnChart id="columnChart" dataProvider="{queryTask.executeLastResult.attributes}" visible="{queryTask.executeLastResult != null}"> </mx:ColumnChart>
function queryOnClick():void { /** execute your query, then add the following: */ columnChart.dataProvider = queryTask.executeLastResult.attributes; if(queryTast.executeLastResult != null) { columnChart.visible = true; }else{ columnChart.visible = false; } }
var myAnyTypeObject:* = null; var somePr:* = myAnyTypeObject.someproperty; // returns TypeError: Error #1009: Cannot access a property ... myAnyTypeObject.executeSomeFunction();// returns TypeError: Error #1009: Cannot access ... method ...
function queryOnClick():void { if(queryTask.executeLastResult != null) { columnChart.dataProvider = queryTask.executeLastResult.attributes; columnChart.visible = true; }else{ columnChart.visible = false; } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.