The URL parameter value should be an ID of the variant that exists in the target app. Ensure that the variant name is not passed as the URL parameter.
To find the variant ID, find the instance of the control for the control
level variant, and the instance of the filter bar for the page level variant. For example, find
Element.getElementById
where Element
is required from module
sap/ui/core/Element
, which is the stable ID of the control, and call getCurrentVariantId()
,
which is the API on the control instance. This gives the variant ID to be used in the source app's manifest.
You can choose to pass a page variant or a control variant using these parameters:
sap-ui-fe-variant-id: Page variant ID you want to set
https://abc.com/ui#SalesOrder-analyze_deliv_perf?sap-ui-fe-variant-id=id_1542011587281_980_page
sap-ui-fe-filterbar-variant-id: Parameter for the filter bar control variant
https://abc.com/ui#SalesOrder-analyze_deliv_perf?sap-ui-fe-filterbar-variant-id=id_1542011587281_230_page
sap-ui-fe-chart-variant-id: Parameter for the chart control variant
https://abc.com/ui#SalesOrder-analyze_deliv_perf?sap-ui-fe-chart-variant-id=id_1574157179885_675_chart
sap-ui-fe-table-variant-id: Parameter for the table control variant
https://abc.com/ui#SalesOrder-analyze_deliv_perf?sap-ui-fe-table-variant-id=id_1574157179595_331_table
When both the chart variant and table variant are passed:
https:/abc.com/ui#SalesOrder-analyze_deliv_perf?sap-ui-fe-chart-variant-id=id_1574157179885_675_chart&sap-ui-fe-table-variant-id=id_1574157179595_331_table
If you add both a page variant and a control variant to a URL:
The page variant-based analytical list page or list report ignores the control variant ID and applies the page level variant
The control variant-based analytical list page or list report applies the control variant ID. If the control variant ID is missing, the page variant ID applies to the control
If the variant ID passed is invalid, the default or standard variant is considered.
Adding the variant ID to the URL overrides the user's default variant ID