Results 1 to 3 of 3

Thread: Missing before configuration in route

    Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-7899 in Architect 4.2.3.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    69

    Default Missing before configuration in route

    It would be good if the before property could be added when configuring a route. This should work in a similar way as the action property (ie a function is created automatically in the controller with the correct arguments, including the action argument). Obviously this can be done manually using a custom property and custom function but then why use SA...

    SA 4.2 + ExtJS 6.5 classic

  2. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795

    Default

    Hello

    Thank you for the report. We are already tracking this issue. We have it marked as critical and I hope we will be able to deliver fix soon.

    Regards
    Petr

  3. #3
    Sencha Premium User
    Join Date
    Jun 2017
    Posts
    1

    Default

    I am adding my 'Before' route configuration in initConfig as a workaroud.
    routes: {
    'route-one': 'onRouteOne',
    'route-two/:id': {
    action: 'onRouteTwo',
    conditions: {
    ':id': '([%a-zA-Z0-9-]+)'
    }
    }

    ...
    /*Notice some routes like route-one with just a 'named method' in the original routes config will have to have an object assigned, for others such as route-two...the handler already has an object we just need to add the 'before' property.
    */
    initConfig: function() {
    let routes = this.config.routes;
    routes['route-one'] = {before:"onBeforeRouteOne", action:"onRouteOne"};
    routes['route-two/:id'].before = 'onBeforeRouteTwo';
    this.config.routes = routes;
    this.callParent();
    },

Similar Threads

  1. before-route-action parameter missing
    By BKrones in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 5 Jan 2015, 1:57 AM
  2. Missing pluginId configuration in plugins
    By richard.harrison in forum Sencha Architect 2.x: Help & Discussions
    Replies: 1
    Last Post: 2 Mar 2012, 2:34 PM
  3. [FIXED] disableSelection configuration missing in List
    By PranKe01 in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 15 Feb 2012, 2:42 PM
  4. [FIXED] [1.1.0] Missing configuration options?
    By jobjo in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 5 Jul 2011, 5:50 PM
  5. missing configuration information
    By nokia786 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 3 Feb 2009, 3:58 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
  •