Hi,
I'm studying use-when tag in list-forms and I have a few questions:
1)I would like to do
<field name="name" title="${uiLabelMap.CommonName} "
use-when="name.equals("Jack")">
<display also-hidden="true" description="${name}" />
</field>
But there isn't variable "name" in the context and so use-when doesn't
work.
How can I display the specific value of "name" only if it is Jack?
2)Also
<form name="ListName" type="multi" >
.
.
<set field="contextVariable" value="commonValue"/>
.
.
.
<field use-when="contextVariablename.equals("commonValue")"
name="name">
<display />
</field>
<field name="submitButton" title="${uiLabelMap.CommonRemove}-->"
use-when="contextVariablename.equals("commonValue")">
<submit button-type="button" />
</field>
The field "submitButton" unlike "name", is always displayed Why?
Thank you for your time.
--
View this message in context: http://www.nabble.com/Questions-about-form-list-and-use-when-tp20410825p20410825.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
|