Skip to Content

Calling View from One package to another

Hi,

I have problem in calling view from one package to another package but its showing failed to laod resource error.In the below code i'm trying to get the view from one of my another package and load it from my package

ex:

jQuery.sap.registerModulePath("Demo", "/Package_name/WebContent/Folder_name");

var view = sap.ui.view({id:"id",viewName:"Demo.Proj", type:sap.ui.core.mvc.ViewType.JS});

it shows 404 not found error

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 02, 2014 at 04:22 PM

    Raghu,

    When you see 404 not found, goto Network tab in Chrome Dev tools and have a close look at the URI which UI5 is using. That will give you a hint on the right URI.

    regards

    Krishna

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.