ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo Matarazzo <matarazzoang...@gmail.com>
Subject Questions about form list and use-when
Date Sun, 09 Nov 2008 21:04:37 GMT

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(&quot;Jack&quot;)">
			<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(&quot;commonValue&quot;)"
name="name">
			<display />
		</field>

<field name="submitButton" title="${uiLabelMap.CommonRemove}--&gt;"
use-when="contextVariablename.equals(&quot;commonValue&quot;)">
			<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.


Mime
View raw message