1. #1
    Sencha User wkh7777's Avatar
    Join Date
    Jun 2014
    Posts
    25
    Vote Rating
    -1
    Answers
    1
    wkh7777 is an unknown quantity at this point

      0  

    Default Unanswered: Refresh stores after submit

    Unanswered: Refresh stores after submit


    How can I refresh stores of form after submit a form?

    There is no method to refresh a form.

    Thanks in advance...

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Gainesville, FL
    Posts
    217
    Vote Rating
    20
    Answers
    29
    fischer1121 will become famous soon enough

      0  

    Default


    Are you trying to refresh the "form" or the "stores"? You're saying both in this question. If you want to refresh a store:
    Code:
    Ext.getStore('UnqualifiedNameOfYourStore').load();

  3. #3
    Sencha User wkh7777's Avatar
    Join Date
    Jun 2014
    Posts
    25
    Vote Rating
    -1
    Answers
    1
    wkh7777 is an unknown quantity at this point

      0  

    Default


    I want to refresh form actually. Otherwise I cant use form.reset() method. because it is giving old value(before submit) when I reset the form.

  4. #4
    Sencha User
    Join Date
    May 2011
    Location
    Gainesville, FL
    Posts
    217
    Vote Rating
    20
    Answers
    29
    fischer1121 will become famous soon enough

      0  

    Default


    You can refresh a form with:
    Code:
    formInstance.setRecord(modelInstance);

  5. #5
    Sencha User wkh7777's Avatar
    Join Date
    Jun 2014
    Posts
    25
    Vote Rating
    -1
    Answers
    1
    wkh7777 is an unknown quantity at this point

      0  

    Default


    Thank you for quick response. I'll try and let you know.

Thread Participants: 1

Tags for this Thread