It would be helpful if you explained what problem you are seeing and
what you tried as solutions.

 

Everything I see looks ok, but calling refresh() after send won't work
since send() is asynchronous.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jovialrandor
Sent: Sunday, October 14, 2007 3:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService: replacing the URL

 

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%
<http://my.lehman.com/PLT/Pilot/DataXTrans?xml=&lt;action%25> 
20format='cdf'%20datasource='AM_GAE_ITSCORECARD'&gt;&lt;sql&gt;select%
20*%20from%20NEMO.MY_ORG_LIST%20where%
20MGR='per_bdoyle'&lt;/sql&gt;&lt;/action&gt;&amp;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