We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33969
    • 60 Posts
    I am building a simple client management CMP to track time on client contracts. There are three tabs - 'Client', 'Contact' and 'Jobs'.

    Each 'Job' is associated with a 'Contract' and a 'Contract' can have multiple jobs. As time is charged to a job the balance remaining on the contract is reduced.

    When I update the 'Hours Worked' for a 'Job', in the 'Job' tab, I also update the 'Balance' in the 'Contract' tab. The backend code works all the database fields are update and the 'Job' tab refreshed to show the new values with a simple listener that I got from the tutorials.

    ,listeners: {'success': {fn:this.refresh,scope:this}


    The problem is I need the 'Contract' tab to refresh to show the new 'Balance'. The 'Contract' tab is 'ClientManager.grid.Contracts'.

    Is there any way to refresh that from the listener in the 'Jobs' tab?
      Michael Regan
      TIMR Web Services
      Phone: 250.218.5284
      Eamil: [email protected]
      Website: timr.ca
      • 4172
      • 5,888 Posts
      you can try to get the grid-object by id and fire its refresh-method.

      grid = Ext.getCmp('yourGridID');
      grid.refresh();
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 33969
        • 60 Posts
        Thanks - that worked perfectly smiley
          Michael Regan
          TIMR Web Services
          Phone: 250.218.5284
          Eamil: [email protected]
          Website: timr.ca