Results 1 to 5 of 5

Thread: Refresh stores after submit

  1. #1
    Sencha User wkh7777's Avatar
    Join Date
    Jun 2014
    Posts
    26
    Answers
    1
    Vote Rating
    -1
      0  

    Default 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
    228
    Answers
    29
    Vote Rating
    27
      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
    26
    Answers
    1
    Vote Rating
    -1
      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
    228
    Answers
    29
    Vote Rating
    27
      0  

    Default

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

  5. #5
    Sencha User wkh7777's Avatar
    Join Date
    Jun 2014
    Posts
    26
    Answers
    1
    Vote Rating
    -1
      0  

    Default

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

Tags for this Thread

Posting Permissions

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