This is a migrated thread and some comments may be shown as answers.

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

0 Answers 32 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oscar A.
Top achievements
Rank 1
Oscar A. asked on 08 Nov 2017, 05:14 PM

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?

Tags
General Discussion
Asked by
Oscar A.
Top achievements
Rank 1
Share this question
or