I using a grid layout to layout my form. but i have to set the field’s label again by manual, i want the field’s label value is the corresponding entity attribute’s local name.
How can i do it?
I expect set a field label value by below way:
Way 1:
<rows>
<row>
<label value="<b>msg://com.xx.entity.EntityX.field1</b>" />
<textField property="xs" datasource="zGDs" ></textField>
<label property="mz" datasource="zGDs"></label>
<textField property="mz" datasource="zGDs"></textField>
</row>
</rows>
Way 2:
<rows>
<row>
<label <b>property="xs" datasource="zGDs" getName="true"</b>/>
<textField property="xs" datasource="zGDs" ></textField>
<label property="mz" datasource="zGDs"></label>
<textField property="mz" datasource="zGDs"></textField>
</row>
</rows>
Way 3:
<rows>
<row>
<label <b>forField="xs"</b>/>
<textField <b>id="xs"</b> property="xs" datasource="zGDs" ></textField>
<label property="mz" datasource="zGDs"></label>
<textField property="mz" datasource="zGDs"></textField>
</row>
</rows>
Hi,
At the moment you can use full message id in a value of Label:
<label value="msg://com.company.demo.entity/Client.title"/>
It has the following format: msg:///.
And i thank the best way is Way3.
Thanks very much!