Fellow Members - Custom UI5 application configured into the Fiori Launch Pad and able to launch successfully first time. However, when user click on "Home" button on the Custom Application to navigate back to launch pad and re-launch same application, application end up with error - "Adding element with duplicate id". Seem like some reason Controls don't get destroyed when application destroyed.
Was spent time looking into the issue and was end up with no luck.The error is simple and make sense but don't know the fix 😞
I am looking for thoughts & direction to fix the issue.
Happy Friday..
Tags edited by: Michael Appleby
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Not sure on about the root cause of the issue. But changing the application type from LPD_CUST to SAPUI5 in launchpad admin page should fix this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mike,
No, the change I had mentioned is to be done in the Fiori Admin page where you had created the custom catalog & groups. Here where you have the option to provide the custom UI5 application as a direct link(SAPUI5) or as LPDCUST entry.
But that is just a workaround, which fixed the same issue I had before. Its better to upgrade the UI5 libraries and also check if there are any issue in the UI5 application.
Hi Mike,
I dont have access to the system right now to send a screenshot. But you should be able to find this option in Fiori Admin -> Target Mapping -> Target. In target, if you have the latest UI5 library version, then you should be getting the option to select either LPDCUST or SAPUI5 (radio button). But if you are using older library version then your only option is to use the LPDCUST.
Please make sure that you have applied all notes in below link.
Hi Aakash,
Thanks a lot for you efforts.
I have to use the LPD_CUST variant though, due to the way the roles are being assigned here.
It also fits in with all the other standard Fiori apps that are being used.
Like you say, that would only be a workaround anyway.
I will try to restructure the app to eliminate the problem.
Mike
Hi Christoph,
changing the code to use createId etc. did not work for me, I still got the same "duplicate ID" errors, when calling the App from the Fiori Launchpad.
What method are you using to navigate between the views?
All my problems disappeared, when I switched from the old "event-bus/navigation" model to the newer "routing" model.
I have no further duplicate ID issues, even if I use fixed IDs for some elements.
Hope this helps, as the issue is (I know) very frustrating.
Regards,
Mike
Hello Cristoph,
Thanks, actually I changed all my app to Router approach, and the error disappear, may be could I ask you something else, I don't want to handle bookmarking in routing so I would like to hide the hash that appears in url without changing my patterns, do you know if this can be possible?.
Thank you very much in advanced.
Best regards.
Jhon Jairo.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.