Multi Re-Use component in single UI application.

Hello Experts,

We are currently working with a UI5 application that serves as a reusable component for integration into other UI5 applications. The consuming applications can seamlessly incorporate our reusable component.Within our re-use component, we employ sap.m.Table, where in we use Stable-ID’s for the columns so it’s picked & used by Variant Management control (VM).

Works Fine:
If single instance of re-use component is implemented.

Does Not Work:
Facing issue when our consuming application try to implement multiple re-use component instance in single ui5 application (Single Page/View) under different IconTabBar container.

Error:
Duplicate ID issue for the columns. In for the re-use component.

Analysis:

  1. The component always generates runtime ID’s like “_Component0” ,  “_Component1″  etc. So we cannot rely on this ID in the consuming application.
  2. We are unable to fetch any context for setting standard ID to the component.
Many Thanks,
Srinivas
Scroll to Top