Symptom
- A custom RAP based Fiori app has been developed to display the list report and object page in either display or edit mode.
- The editFlow = "direct" is used in the list report to open the object page in edit mode.
- The same app needs to be opened in display mode as well.
- An attempt was made to make the editFlow flag in manifest.json dynamic by declaring a model in component.js (onAfterRendering) method with property editMode ("direct" or "display") and binding this model property "editFlow" in manifest.json.
- After this modification, the list report shows navigation without the edit icon (pencil icon).
- The requirement is to make the editFlow property (in manifest.json) dynamic so that when it opens in edit mode the edit icon (pencil icon) is displayed, and when it opens in display mode it is shown without the edit icon (pencil icon).
Read more...
Environment
Fiori elements v2.
Product
SAP S/4HANA foundation all versions
Keywords
RAP based Fiori app, editFlow property, manifest.json, dynamic, display mode, edit mode, list report, object page, component.js, onAfterRendering method, editMode property, pencil icon. , KBA , CA-UI5-ST , Fiori elements v2 , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.