Hi,
My client wanted me to create something that allows certain
DataGrid to display to allow users to edit and update the database
records. The only dilemma I am having here is how to actually
create something from Flex's end to allow users update several rows
of the database at once. Since everything in my datagrid would be
defined as selectedItem whenever a user accesses the entry, how can
I get Flex to recognize each of the updated variables while I
update the database?
Another question is, if I do something like
dg2.selectedItem.id, it would only display the "selectedItem," and
since I intend to loop every single one of the values as such in
the datagrid to be updated, is it possible to do something like dg.
.id? I tried to do this, and I kept on getting errors.
If anyone could refer me to some examples on how to get this
to start, it would be great.
Thanks in advance.
Alice
This is the current code I have:
<mx:HTTPService id="save_scenario" method="POST" url="
http://localhost/save_scenario.php"
useProxy="false">
<mx:request xmlns="">
<scenario_name>{scenario_name}</scenario_name>
<id_no>{dg2.selectedItem.id}</id_no>
<region_name>{dg2.selectedItem.region_name}</region_name>
<population>{dg2.selectedItem.population}</population>
<market>{dg2.selectedItem.market}</market>
</mx:request>
</mx:HTTPService>