Symptom
Smart Variant does not load when first run, hitting refresh then displays variants
Environment
- SAPUI5 1.60.14
- Chrome Version 75.0.3770.80 (Official Build) (64-bit)
Reproducing the Issue
-
Load Fiori application with intent directly, do not go through Fiori Launchpad Home
- Select WBS elements and then select variants
- Observe no variants
- Refresh and observe variants
Cause
Issue is caused by user code and application not correctly registering Dialog control.
Resolution
A dialog control must be added as dependent to the appropriate view for the smart variant feature to work correctly.
With this adaption the smart variants work in both scenarios of navigation from home page and direct application access.
For more information about SAPUI5 dependents, please take a look at the following documentation articles:
- https://sapui5.hana.ondemand.com/#/topic/aeb86c181b9742a2bf88049abf9ccb95
- https://sapui5.hana.ondemand.com/#/topic/4da72985139b4b83b5f1c1e0c0d2ed5a
See Also
Keywords
variant dialog missing , KBA , CA-UI5-COR , Core and Runtime , Problem
Product
SAP S/4HANA Cloud 1905