I want to replace the URL parameter of an HTTPService and refresh a 
datagrid.

Here is what I have so far:

Script section;
-------------------------------------------------------
public function autoClickHandler(event:Event):void
{
                                sanData5.url 
= "http://my.lehman.com/PLT/Pilot/DataXTrans?xml=<action%
20format='cdf'%20datasource='AM_GAE_ITSCORECARD'><sql>select%
20*%20from%20NEMO.MY_ORG_LIST%20where%
20MGR='per_bdoyle'</sql></action>&format=cdf";
                                sanData5.send();
                                AutoArray.refresh();
}

[Bindable]
private var AutoArray:ArrayCollection;

private function sanDataHandler5(event:ResultEvent):void
{
AutoArray = sanData5.lastResult.responses.data.record;
}

---------------------------------------------------------


<HTTPService id="sanData5" result="sanDataHandler5(event)" 
showBusyCursor="true" makeObjectsBindable="true"/>


<DataGrid width="100%" height="100%" dataProvider="{AutoArray}" 
id="autoGrid">


        

Reply via email to