2 Replies Latest reply on Jan 22, 2010 6:41 AM by reidabel

    commit(); - generated or not?

    reidabel Level 1

      I'm working through an example I found at:

       

      Managing ColdFusion data with Adobe Flash Builder 4 beta

       

      http://www.adobe.com/devnet/flex/articles/fcf_managing_data_05.html

       

      ... and while I'm using a Delphi 2007 web service, it is mostly working fine for me. However, one thing in the article that doesn't work is where the author uses

       

      service.commit();

       

      ... to update every record of a datagrid, and states

       

      The commit() function is a built-in function of the data service that will run the service that you defined as the update operation in the Data Management wizard. In this case, it is running the updateItem() function once for each record in the DataGrid control.

       

      In the service FB4b2 made for me, however, commit() doesn't seem to exist. I have defined an Update operation and it works fine when called separately. I'm wondering if I will just have to add code to loop through the datagrid and call the Update operation on each record. If so, is it possible to just have it update the records that have changed, rather than all of them?

       

      Thanks for any suggestions ...