Skip to Content

How to use class in another UI5 BSP application

Dear colleagues,

I have 2 UI5 applications. Let's say A and B. And A depends on B. They have been deployed as BSP applications on netveawer server.

My question is the js files in B can't be loaded into A on the server.

What's the UI5 reference loading policy? or how to deploy these 2 appliations then those dependent js files can be loaded?




Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 10, 2014 at 07:47 PM

    sapui5 uses require() & declare() concept for reference..

    you need to declare a call using"com.test.something.other");

    you can then use this class in another place, by"com.test.somthing.other");

    make sure you do not do a cyclic dependency, as this would put them in an infinite loop

    if they are in different applications, you can concept to remotely load js classes..

    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.