I’m sorry if this is a really, really basic question. I am looking for a simple template view (i.e. read-only) screen for an Entity that I can alter the layout of the fields displayed. Is there a simple way of adding one like there is for edit/create?
Switch to the Data Model section in Studio and select the Entity
Click New -> Generic UI screen
Select Entity editor template
If you already have an editor created, the Resolve conflict window will appear
In this window replace “edit” by “view”: myentity-view.xml, com.company.demo.web.myentity.MyEntityView, demo$MyEntity.edit. The new screen will be created.
Open this screen for editing and set editable=false for the fieldGroup element in the screen XML descriptor. Thus, the fields will become read-only.
To change the order of fields on the screen, select fieldGroup in the components hierarchy, on the properties panel select fields and click Edit
Change the order of properties using the arrow buttons in the table on the left
It all looks more complicated on the text than in Studio. Please let us know if it’s not what you asked for.
Hi Olga,
I have the exactly the requirement as above. I’ve created the View Screen, everything is fine. But i want to know, how to add the view action in the browser screen,