Results 1 to 3 of 3

Thread: Calling a Route a second time

  1. #1
    Sencha Premium User
    Join Date
    Jun 2017
    Posts
    4
    Vote Rating
    0
      0  

    Default Calling a Route a second time

    I have a MVVC architecture. Ext JS 6.5
    from the home view panel I am calling the homeviewcontroller which routes button clicked to the neccessary views. The first time it works; and the appropriate panel get opened.

    however it is not working it if I get back to the home panel and re-click the button. I have this.redirect('routeName',true);

    Any suggestions/ideas?

    Thank you!

  2. #2
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    443
    Vote Rating
    226
      0  

    Default

    Any errors in console? Could you create a simple fiddle with the problem?
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  3. #3
    Sencha User
    Join Date
    Oct 2014
    Posts
    9
    Vote Rating
    1
      0  

    Default

    Did the route change in between? If the hash is still the same you need to force the router to react to your call. The docs mention the second param to be a configuration object so when you pass {force: true} it might work.

Similar Threads

  1. Project build breaks in SA 4.2.1 after upgrading to 6.5.x / Ext.app.route.Route
    By rmaliborski in forum Sencha Architect 4.x: Bugs
    Replies: 2
    Last Post: 21 Jul 2017, 2:25 AM
  2. after calling redirectTo route execute twice
    By jamesdesouza in forum Ext 6: Q&A
    Replies: 3
    Last Post: 15 Jan 2017, 5:25 AM
  3. Replies: 1
    Last Post: 14 Oct 2015, 2:25 PM
  4. Replies: 1
    Last Post: 2 Sep 2015, 11:27 AM
  5. EditorGrid inactive after calling it the second time
    By pi_wo in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 17 Dec 2009, 1:35 AM

Posting Permissions

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