<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multi Re-Use component in single UI application. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13985856#M2038276</link>
    <description>&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Unfortunately, I had to change the design wherein I am using the same component instance twice using a switch.&lt;/P&gt;&lt;P&gt;Maybe you can try this approach instead of manually creating the views/controller where the component is initialized?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/docs/ABAP_PLATFORM_NEW/468a97775123488ab3345a0c48cadd8f/d869d7ab3caa48b2a20dc20dfa248380.html?locale=en-US" target="_blank"&gt;https://help.sap.com/docs/ABAP_PLATFORM_NEW/468a97775123488ab3345a0c48cadd8f/d869d7ab3caa48b2a20dc20dfa248380.html?locale=en-US&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2025 03:07:00 GMT</pubDate>
    <dc:creator>rahullohia</dc:creator>
    <dc:date>2025-01-15T03:07:00Z</dc:date>
    <item>
      <title>Multi Re-Use component in single UI application.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/311985#M4339</link>
      <description>&lt;DIV class=""&gt;Hello Experts,&lt;BR /&gt;&lt;BR /&gt;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 &amp;amp; used by Variant Management control (VM).&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Works Fine:&lt;/STRONG&gt;&lt;BR /&gt;If single instance of re-use component is implemented.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Does Not Work:&lt;/STRONG&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;:&lt;BR /&gt;Duplicate ID issue for the columns. In for the re-use component.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Analysis:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;The component always generates runtime ID’s like “_Component0” ,&amp;nbsp; “_Component1"&amp;nbsp; etc. So we cannot rely on this ID in the consuming application.&lt;/LI&gt;&lt;LI&gt;We are unable to fetch any context for setting standard ID to the component.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;Many Thanks,&lt;BR /&gt;Srinivas&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jan 2024 06:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/311985#M4339</guid>
      <dc:creator>ssrinivas</dc:creator>
      <dc:date>2024-01-16T06:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Re-Use component in single UI application.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13757381#M2029035</link>
      <description>&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;I have a similar issue where the re-use component initializes with a stable id. Hence, we cannot have multiple usages of the same. Were you able to resolve this issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 01:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13757381#M2029035</guid>
      <dc:creator>rahullohia</dc:creator>
      <dc:date>2024-07-11T01:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Re-Use component in single UI application.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13982183#M2038250</link>
      <description>&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/125644"&gt;@rahullohia&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I don't have a solution yet, but I'm currently trying to get in touch with the Component Control team. I'll update the POST as soon as I have more information.&lt;/P&gt;&lt;P&gt;By any chance, have you come across any alternative approaches in the meantime?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Srinivas&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 05:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13982183#M2038250</guid>
      <dc:creator>ssrinivas</dc:creator>
      <dc:date>2025-01-10T05:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Re-Use component in single UI application.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13985856#M2038276</link>
      <description>&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Unfortunately, I had to change the design wherein I am using the same component instance twice using a switch.&lt;/P&gt;&lt;P&gt;Maybe you can try this approach instead of manually creating the views/controller where the component is initialized?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/docs/ABAP_PLATFORM_NEW/468a97775123488ab3345a0c48cadd8f/d869d7ab3caa48b2a20dc20dfa248380.html?locale=en-US" target="_blank"&gt;https://help.sap.com/docs/ABAP_PLATFORM_NEW/468a97775123488ab3345a0c48cadd8f/d869d7ab3caa48b2a20dc20dfa248380.html?locale=en-US&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 03:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13985856#M2038276</guid>
      <dc:creator>rahullohia</dc:creator>
      <dc:date>2025-01-15T03:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Re-Use component in single UI application.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13990408#M2038311</link>
      <description>&lt;P&gt;Hello Rahul,&lt;BR /&gt;&lt;BR /&gt;Thanks for sharing the info.&lt;BR /&gt;I tried adding the&amp;nbsp;&lt;STRONG&gt;autoPrefixId="true"&amp;nbsp;&lt;/STRONG&gt;property and i was able to fetch these id's in the consuming application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;core:ComponentContainer
        id="comp1"
        usage="someComponent"
        manifest="true"
        async="true"
        autoPrefixId="true"
    /&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Inside &lt;STRONG&gt;Component.js&lt;/STRONG&gt; of consuming application,try checking the value in onBeforeRendering.&lt;/P&gt;&lt;PRE&gt;onBeforeRendering: function(){
  console.log(this.getId()); 
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2025 04:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13990408#M2038311</guid>
      <dc:creator>ssrinivas</dc:creator>
      <dc:date>2025-01-20T04:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Re-Use component in single UI application.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13997508#M2038359</link>
      <description>&lt;P&gt;This works just for standalone application. When integrated to FLP the getId() doesn't work&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 06:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-re-use-component-in-single-ui-application/m-p/13997508#M2038359</guid>
      <dc:creator>ssrinivas</dc:creator>
      <dc:date>2025-01-27T06:49:22Z</dc:date>
    </item>
  </channel>
</rss>

