Skip to Content
0

Best practise for consuming a Multiple Origin Composition service?

Mar 08, 2017 at 04:14 PM

123

avatar image
Former Member

Hello fellow developers,

is there a Best Practise documentation available, how to design and develop a custom SAPUI5 application consuming a Multiple Origin Composition (MOC) service?

Ideally the application should be independent from the activation of MOC - if that's possible.

As activating the MOC option will add the additional key SAP__Origin, a typical routing pattern like

{
  "pattern": "detail/{KEY}",
  "name": "detail",
  "target": [
   "detail"
  ]
}

will break, as the new key SAP__Origin won't be supported.

I'd strive for a generic approach, i.e. inside the application I'd like to avoid a differentiation whether we're running in the MOC scenario or not. Copying the source code into a second application seems wrong to me.

So what is the best practise or your recommendation:

  • develop two version of the UI5 application?
  • use an optional parameter in the routing?
  • ...?

Thanks in advance for any hints or tips.

Cheers,

Christian.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Krishna Kishor Kammaje
Mar 17, 2017 at 04:16 AM
0

I would suggest you to look at "My Inbox" app, as I remember it supports both MoC as well as single origin.

Share
10 |10000 characters needed characters left characters exceeded
Krishna Kishor Kammaje
Mar 17, 2017 at 04:47 AM
0
Share
10 |10000 characters needed characters left characters exceeded