Results 1 to 3 of 3

Thread: Cleaning isDirty() status after binding

  1. #1

    Question Cleaning isDirty() status after binding

    Hi all,

    My problem is :
    I get datas in BaseModel object from Mysql (using RPC) that I bind to a FormPanel with a FormBindin.bind() method

    When I've done that, I would like to consider that the binded values in each Fields are now the Original ones in order to use isDirty() method on each field

    Why?
    Because I only want to update my DataBase with updated values, and track the changes in a history table

    Thanks for help

  2. #2
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188

    Default

    you have to set the original value of each field after binding. so add a listener to the formbindings bind event and then go through all fields and update the fields original value with the fields value.
    Last edited by takayser; 16 Oct 2009 at 7:15 AM. Reason: formbindings bind event (not formpanels bind event)

  3. #3

    Default

    thanks ! It works !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •