Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

datagrid refresh after pop up window closed


Level 1

I am pretty new to Flex. I have a simple question which I
think someone can certainly help.

So basically my main page contains a datagrid that maps to a
XMLListCollection that tied to a php backend (this php script
queries a db table). From the main page, I can invoke a pop up
window which displays a form. Once the form is submitted(the same
table is updated correctly), how can I refresh the datagrid?

Any help would be greatly appreciated!

Here is the code sample:

----in the main page

<mx:HTTPService id="ds" url=""
method="GET" resultFormat="e4x"/>

<mx:XMLListCollection id="xmlList"
source="{ds.lastResult.People}" />

<mx:DataGrid id="peoplelist" initialize="ds.send()"


<mx:DataGridColumn dataField="ID" />

<mx:DataGridColumn dataField="Name" />



-- action script to handle submit action

public function submit():void


srv.send(); //this send HTTP POST request which is executed





2 Replies


Level 2
try moving these two statements



to the result event of the underlying HTTPService that's
being used at srv.send();


Level 1
why this is not working inside submit function? Conceptually,
putting them inside the HTTPService event result function is the
same as this one, you still havce to call these two lines.