cancel
Showing results for 
Search instead for 
Did you mean: 

How to use USHELL API in SAP WORKZONE

woongkipark
Participant
0 Kudos
240

Im developing a UI Integration Card in SAP WORKZONE Adv. version.

There seem to be two following issues, and if anyone knows well, please help.

1. Creating an app using a smart table on my card. In that app, I want to use use VariantManagement to provide Variant Storage.. VariantManagement doesn't work.

It works well if you make it into a UI5 freestyle app and deploy it, but it doesn't work on Workzone Card.

2. On the card, when you try to use sap.ushell.container (SHELL API), an error occurs. When you check from the console, there is no sap.ushell.container object on the Workzone Card.

The above two causes are assumed to exist in a different context than Workzone Shell because the workzone card is serviced in the form of iframe, and therefore the varaint personalization and the husell API cannot be used because of the lack of access to the husell service.

Accordingly, is there any other way to use USHELL?

Additionally, I found someone with a similar problem to me, and this person seems to be calling the API with postMessage

https://community.sap.com/t5/technology-blogs-by-members/multi-tenant-cap-application-integration-in...

Is there any other way other than that?
SAP Build Work Zone, advanced edition 
@

Accepted Solutions (0)

Answers (1)

Answers (1)

woongkipark
Participant
0 Kudos
aleks_acbaltica
Discoverer
0 Kudos
Thank you. I am familiar with using cross-navigation in the low-code development paradigm by working with the manifest.json and Configuration.js files. My question is about implementing navigation correctly in pro-code development for UI Integration Cards. Since UI Integration Cards are part of the SAPUI5 framework, I’ve developed our Integration Card as a standalone SAPUI5 application, incorporating advanced business logic using Component.js, Controller.js, and View.xml. For navigation, I’ve followed the approach demonstrated here: https://sapui5.hana.ondemand.com/test-resources/sap/ui/integration/demokit/cardExplorer/webapp/index.... However, I’m encountering an issue where the sap.ushell.Container (SHELL API) is undefined. When I inspect this in the browser console, the sap.ushell.container object does not exist in the Workzone environment. Could you provide guidance on how to handle navigation in this scenario?