try doing this DgAnggotaRetrieve.invalidateList()
----- Original Message ---- From: Harry Saputra <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, January 23, 2008 1:45:50 PM Subject: [flexcoders] Refreshing DataGrid Automatically when submit a record ( use two HTTPService ) Dear All, I try to build simple insert and showing data with two HTTPService like that ( sorry for long source code ) : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" xmlns="*" creationComplete="anggotaRetrieve. send(); createListener( );" layout="absolute"> <mx:Script> <![CDATA[ import flash.events. MouseEvent; public function createListener( ):void { btnSubmit.addEventL istener(MouseEve nt.CLICK, refresh); } public function refresh(e:MouseEven t):void { anggotaRetrieve. send(); } ]]> </mx:Script> <mx:HTTPService id="anggotaInsert" url="insert.php" useProxy="false" method="POST" > <mx:request xmlns=""> <username>{txtUserName. text}</username> <password>{txtPassword. text}</password> <email>{txtEmail.text}</email> </mx:request> </mx:HTTPService> <mx:HTTPService id="anggotaRetrieve" url="retrieve.php" useProxy="false"> </mx:HTTPService> <mx:Form width="400" height="150" left="10" top="10"> <mx:FormItem label="Username"> <mx:TextInput id="txtUserName" /> </mx:FormItem> <mx:FormItem label="password"> <mx:TextInput id="txtPassword" /> </mx:FormItem> <mx:FormItem label="Email"> <mx:TextInput id="txtEmail" /> </mx:FormItem> <mx:FormItem label=""> <mx:Button id="btnSubmit" label="submit" click="anggotaInsert. send()" /> </mx:FormItem> </mx:Form> <mx:Panel x="10" y="168" width="500" height="250" layout="absolute" title="Tabel Anggota - POSTGRESQL"> <mx:DataGrid id="DgAnggotaRetrieve" dataProvider="{anggotaRetrieve. lastResult. anggota.row}" width="100%" height="170"> <mx:columns> <mx:DataGridColumn headerText="username" dataField="username" /> <mx:DataGridColumn headerText="password" dataField="password" /> <mx:DataGridColumn headerText="email" dataField="email" /> </mx:columns> </mx:DataGrid> </mx:Panel> </mx:Application> It’s Working Done, but need to click a btnSubmit twice to shown an update data on DataGrid…. How to create “just one click” and I can get a result on DataGrid ? I have try to build with one HTTPService, and it’s working. But I can’t build with two HTTPService. . Help me to solving this problem. Thanks for attention ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs