Skip to Content
0
Dec 19, 2022 at 08:40 PM

FIori elements building blocks: readOnly property is not working

94 Views

Hi community,

I've been playing around with flexible programming model sample app below.

https://github.com/SAP-samples/fiori-elements-v4-cap-advanced/tree/fpmVideos/app/travel_processor/webapp/ext/view

Here, in a freestyle page Form building block is used. the form has readOnly property set to true.

            <Page id="reviewPage" title="Review New Travel">
                <content>
                    <macros:Form readOnly="true" metaPath="@com.sap.vocabularies.UI.v1.FieldGroup#Review" id="reviewGeneral" />
                    <MessageStrip class="sapUiSmallMarginBottom" type="Warning" text="By clicking on Create New Travel you accept you read and accept our internal travel guidelines." showIcon="true" />
                    <Button text="Create New Travel" press="createTravel" type="Emphasized" />
                </content>     
            </Page>

However, form fields are still editable.

image.png

Is this a bug, or am I missing something?

Best regards,

Mio Yasutake

Attachments

image.png (26.0 kB)