cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Build Work Zone (standard) and visibility using {ui>/editable} and {= !${ui>/editable}}

PetraMi
Explorer
0 Likes
683

Dear experts,

In our Fiori List report app, I would like to hide and show some of the Object Page fields and sections depending on whether the page is in Creation or Display mode. I have used Fiori Tools Page editor:

PetraMi_0-1738093654040.png

 

which resulted in JSON like so:

 

 

 

 "sections": {
        "A": {
            "form": {
                "fields": {
                    "ShortText": {
                        "visible": "{ui>/editable}"
                    },
                    "Desendtmstp": {
                        "visible": "{= !${ui>/editable}}"
                    },
                    "CreatedOn": {
                        "visible": "{= !${ui>/editable}}"
                    }
                }
            }
        },
        "D": {
            "visible": "{ui>/editable}"
        },

 

 

 

This works as intended in SAP BAS preview and from BTP subaccount HTML5 Apps. But from SAP Build Work Zone (standard edition) site and on the mobile devices everything is visible in both Create and Display mode.

What could be the problem and how can I fix it?

Thanks, BR Petra

Accepted Solutions (1)

Accepted Solutions (1)

PetraMi
Explorer
0 Likes

Resolved with help of SAP Support team.

It turned out that that the UI5 version used in the workzone was different than version set up as minimal in the app.  This somehow made the visibility properties and other stuff defined in the fiori tools come out  scrambled. 

SAP Support brought to our attention KBA 0003242190, which advises how to to change the SAPUI5 version for the custom SAPUI5 apps that are running in the CF Portal service or CF Work Zone. As per instructions, we added the following in the manifest file:

 

"sap.platform.cf": {
"ui5VersionNumber": "same version as the SAPUI min version of the app"
},

 

This resolved our issue.

Answers (0)