use
use-when=quot;closedquot;.equals(StatusId)
or
use-when=${groovy: 'closed' == StatusId}
But ant, prefer sur use statusId instead Of StatusId for your variable name
Nicolas
Le 16/01/2015 09:36, Mandar K a écrit :
Hello All,
I have created a practice component in hot-deploy
and am trying
Hello All,
I have created a practice component in hot-deploy
and am trying to use the use-when in form field.
Situation:
Show Name as text input,
But When status == 'closed', show Name as Display only.
Kindly let me know where is the issue. This is a form of type single and
Status value
Hi all,
I want to have a button only visible (with use-when on a field widget in a
form) in an overview when following conditions are met:
1. when thruDate is null or empty
2. when thruDate is great or equal to now.
I can get the first one going, but the second and thus the combo
Try this for second condition use-when=${thruDate gt; nowTimestamp}.
HTH
Regards,
Ankit Jain
On Mon, May 7, 2012 at 12:31 PM, Pierre Smits pierre.sm...@gmail.com wrote:
Hi all,
I want to have a button only visible (with use-when on a field widget in a
form) in an overview when following
Thanks Ankit Jain,
It worked, but with a side effect. When only your suggestion
(use-when=${thruDate gt; nowTimestamp}) it shows the button when
thruDate is null.
Regards,
Pierre
2012/5/7 Ankit Jain ankit.i...@gmail.com
Try this for second condition use-when=${thruDate gt; nowTimestamp
Try this :
use-when=${thruDate == void @or thruDategt; nowTimestamp}
Nicolas
Le 07/05/2012 11:33, Pierre Smits a écrit :
Thanks Ankit Jain,
It worked, but with a side effect. When only your suggestion
(use-when=${thruDategt; nowTimestamp}) it shows the button when
thruDate is null.
Regards
Pierre,
I have already mentioned that its for second condition and for first
its already working for you so combine both the condition like this.
use-when=${thruDate==null || (thruDate gt; nowTimestamp)}
Regards,
Ankit Jain
On Mon, May 7, 2012 at 3:03 PM, Pierre Smits pierre.sm...@gmail.com
Nicolas, Ankit Jain,
Thanks to both of you.
The suggestion of Nicolas ( use-when=${thruDate == void @or thruDategt;
nowTimestamp} ) still showed the button even when thruDate nowTimestamp.
The suggestion of Ankit Jain ( use-when=${thruDate==null || (thruDate gt;
nowTimestamp)} ) works
Not sure if it's what you are looking for, but have you tried
separate-columns=true (form attribute)?
http://markmail.org/message/wk2ri2f3arryhfrr
Jacques
From: Ravindra Mandre raviof...@gmail.com
hi all,
Is there any other way of using , use-when tag in multi form so that the
form should
Ravi,
Check this
use-when=statusId.equals(quot;MARKquot;)
I think this will resolve your problem .
The problem seems to me in your statement (use-when=${statusId!='MARK'}) is
first it resolves statusId=='MARK' to true/false and then ${true/false} tries
to get the value of true/false from
Hi ,
I am facing problem while using the use-when tag inside the multi form,
I have to following form
form name=CommonForm type=multi list-name=displayList
use-row-submit=true
separate-columns=true target=updateSomething
odd-row-style=alternate-row default-table-style=basic-table hover
Hi Shereen,
Thanks for your reply but I am fine with this if I am using with single form
, I want to use this in multi form (form Type = multi) , btw I also tried
the way you suggested but It does not gave me any good luck, If you came
across this situation while using multi form , please share.
hi all,
Is there any other way of using , use-when tag in multi form so that the
form should not insert extra spaces between columns.
Ravi
On Tue, Dec 28, 2010 at 8:20 PM, Ravindra Mandre raviof...@gmail.comwrote:
Hi Shereen,
Thanks for your reply but I am fine with this if I am using
You must put actions before al-target (if you use an XML content aware editor you should see that). You can use use-when in an
alt-target.
Unfortunatley due to some inconsistence still in OFBiz, when you use use-when you actually use underneath a BSH syntax and not a
Groovy syntax. So inside
It seem I don't have enough infoirmation about use-when attribute. does
anyone have?
everything goes right when I use it to check if something is null or not but
when I do further checking it deosn't go right
the use-when is widely used in ofbiz to check if something is null or not or
the map
this message in context:
http://ofbiz.135035.n4.nabble.com/comparing-two-dates-using-use-when-tp306p3074040.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Hi All
Please all I need help on using the use-when attribute
I've made a product status field in the form and I want to check for that
field this field s string and I can't use use- when with strings
what I have done is this:
actions
set field=productStatus value
Remove the $ and curly brackets.
-Adrian
--- On Sun, 12/5/10, Shereen sheri_ash...@hotmail.com wrote:
From: Shereen sheri_ash...@hotmail.com
Subject: Re: comparing two dates using use-when
To: user@ofbiz.apache.org
Date: Sunday, December 5, 2010, 6:54 AM
Hi All
Please all I need help
sheri_ash...@hotmail.com wrote:
From: Shereen sheri_ash...@hotmail.com
Subject: Re: comparing two dates using use-when
To: user@ofbiz.apache.org
Date: Sunday, December 5, 2010, 6:54 AM
Hi All
Please all I need help on using the use-when attribute
I've made a product status field
Thanks a lot for your replies
Unfortunately both solutions didn't work for me
Any more suggestions?
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/comparing-two-dates-using-use-when-tp306p3074040.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Hi all,
I have problem of comparing two dates using use-when.I am
working in a list form where a field is needed to do multiple task
according to the condition set in use-when.
Now i am trying to compare the startDate with the current date
in another field which serves multiple
I haven't used the groovy sysntax yet, instead I use java (actually
beanshell) syntax.
In your case it should be something like:
use-when=${currentDate.after(startDate)}
HTH
Bilgin
quot;Nquot;.equals(isPosted)
On Tue, Nov 9, 2010 at 9:00 AM, soumya jyoti guru somu.gur...@gmail.comwrote:
Hi
back.Please
reply back if there is any other way out.
On Tue, Nov 9, 2010 at 2:58 PM, Bilgin Ibryam bibr...@gmail.com wrote:
I haven't used the groovy sysntax yet, instead I use java (actually
beanshell) syntax.
In your case it should be something like:
use-when=${currentDate.after
details in my
earlier question.
Thanks again, for replying back.Please
reply back if there is any other way out.
You can do the conversion from date to timestamp first and then compare.
Conversion can be done inside use-when, or you can add a row-actions and
prepare your
again, for replying back.Please
reply back if there is any other way out.
You can do the conversion from date to timestamp first and then compare.
Conversion can be done inside use-when, or you can add a row-actions and
prepare your data there (this actions will be executed once for each
this message in context:
http://www.nabble.com/use-when-form-field-based-on-permission-tp24268053p24268053.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Chris,
you can achieve this by the use-when attribute of the field tag, before it
you may call your permission service in the action tag of the Form or Screen
containing the form.
Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.
On Tue, Jun 30, 2009 at 1:56 PM, snowch sno
-when
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;Jackquot;)
display also-hidden=true description=${name} /
/field
But there isn't variable name in the context and so
.
.
actions
set field=contextVariable value=commonValue/
actions/
field use-when=contextVariablename.equals(quot;commonValuequot;)
name=name
display /
/field
field name=submitButton title=${uiLabelMap.CommonRemove}--gt;
use-when=contextVariablename.equals(quot;commonValuequot;)
submit
In form widgits I am trying to use the use-when attr. to
present the user with an edit field when the status is NEW and
a display only field when the status is anything else.
I tried use-when=quot;LICST_NEWquot;.equals(statusId)
but that gave me a exception.
thanks
--
It is MDT, Inc's policy
Philip,
It is probably worth supplying the stacktrace from your log file and the
code snippet from your file. I can't see a problem what is below.
-Al
On 2/27/07, Philip W. Dalrymple III [EMAIL PROTECTED] wrote:
In form widgits I am trying to use the use-when attr. to
present the user
31 matches
Mail list logo