cancel
Showing results for 
Search instead for 
Did you mean: 

Same fragments in different apps

sanjoy0308
Active Participant
0 Kudos

Hi,

How can we reuse same xml fragments in different apps. So we will not have same fragments locally in each app.

Regards,

Sanjoy

Accepted Solutions (0)

Answers (1)

Answers (1)

Chantele
Active Participant
0 Kudos

Hi sanjoy,

You wouldn't normally reuse a fragment across multiple apps.

Fragments and even dialogs are intended to be used across mutiple views in the same app.

OpenUI5 SDK - Demo Kit

The problem you would face in this instance is that the fragment would sit outide of the name space for one or more of the apps, so you would be unable to find it using your controller.

Especially as fragments don't have a controller of their own.

sanjoy0308
Active Participant
0 Kudos

Hi Chantele,

There is no namespace in fragments, only folder structure we refer and we can access from controller/views of any namespace, I wanted to know that is there any standard way of doing this. We can keep fragments xmls in a location and access?

Regards,

Sanjoy