How to open a view from other view in other folder?

1 posts, 0 answers
  1. Oscar A.
    Oscar A. avatar
    1 posts
    Member since:
    Jun 2017

    Posted 08 Nov 2017 Link to this post

    My problem is this:

    I have myproject tree files like this:

    components 
      │
      └ pantallas
           │
           ├─PRO
           │    └ production_view.html
           │
           └─QUA
                  └ quality_view.html

    I am in a kendo view #production_detail in "PRO" folder (components/pantallas/PRO/production_view.html)

    <div data-role="view" id="production_detail" data-show="..."
       data-title="Reporte Detallado"                  data-model="..."
       data-layout="..."                                           data-init="..."
       data-use-native-scrolling="true"             data-before-show="...">
     

        <a onclick="app.mobileApp.navigate('\\#quality_detail?Chasis=#:ID_Chasis#');">#= Go to#</a>

    </div>

     

    And I want to go to other view #quality_detail in "QUA" folder (components/pantallas/QUA/quality_view.html)

    <div data-role="view" id="quality_detail" data-title="Reporte Detallado" data-model=      "..."
       data-layout="lDetalle"                                                                                        data-init=       "..."
       data-use-native-scrolling="true"                                                                    data-before-show="..."
       data-reload="true"                                                                                                data-show=       "...">

     

     </div>

     

    • The code that makes the view "quality_detail" open from "production_detail" works.
    • But when you access to the application for first time, it throws an 404 error, this is because the init event in "quality_detail" doesn't execute.
    • When you enter first manually to "quality_detail for first time, and then you try to open it from "production_detail" it works, open "quality_detail" very well.

    How can I open the view "quality_detail" from "production_detail" without it throws 404 error?

Back to Top