Skip navigation
DashawnPD242
Currently Being Moderated

Flex 4.6 Commit Changes

Mar 29, 2013 1:52 PM

Tags: #flash #data #flex #mysql #flex-4.6 #flex4.5 #php/mysql #flex4.6

I am using the code below to commit changes to a xml datagrid, which is suppose to push to mySQL database. The code commits the changes which shows up in the DataGrid but if i refresh the app nothing is saved. Do i need to edit my PHP file that i use to pull my database and turn it into xml, to allow this to update or insert into the database? I need to find a way to update MySQL database in this popup window...anyone got any ideas?

 

getting the Update & Save button in flex to work

 

private function UpDateChanges():void{

 

                                        // update mysql database

                                        dgb.chauffeur = chauffeur.text;

                                        dgb.chauffeurtime = chauffeurtime.text;

                                        dgb.typeofvehicle = typeofvehicle.text;

                                        dgb.cost = cost.text;

                                        dgb.gratuity = gratuity.text;

                                        dgb.vehiclewasuse = vehiclewasuse.text;

                                        dgb.numberofpassengers = numberofpassengers.text;

                                        dgb.passengernames = passengernames.text;

 

updateBookingsResult.token = bookingsService.commit();

 

 

                                        // close the window

                                        closeWindow();

                              }

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points