Form Personalization - problem in applying date condition [message #511169] |
Thu, 09 June 2011 23:49 |
chenny
Messages: 10 Registered: May 2010 Location: India
|
Junior Member |
|
|
Hi!!
I've to incorporate a rule while 'releasing' (from WIP status) and 'closing' a batch that the actual completion date will be in the same month as that of actual start date, i.e. if actual start date is '14-APR-2011' then actual completion date has to be within '30-APR-2011'. I've been trying this with Form Personalization wher i'm writing :
:CNTRL_EVENT.ACTUAL_COMPLETION_DATE between :CNTRL_EVENT.ACTUAL_DATE and last_day(:CNTRL_EVENT.ACTUAL_DATE)
in condition where CNTRL_EVENt is the trigger and trigger event being WHEN-VALIDATE_RECORD
but the condition evaluates to false.
Can anyone please help in resolving.
Regards,
AD
|
|
|
|
|
|
|
|
Re: Form Personalization - problem in applying date condition [message #511830 is a reply to message #511527] |
Wed, 15 June 2011 05:11 |
chenny
Messages: 10 Registered: May 2010 Location: India
|
Junior Member |
|
|
Hi Arian,
Well, the former, i.e. it should prompt the user to enter date between the start & end of the same month, this would go with a message.
I'm enclosing the screenshots and the personlaization code I had tried. The fist pic is when I choose to 'Complete' the batch from it's 'WIP' status. It gives the 2nd pic where the user have to enter the completion date and here I want to make the check work. 3rd pic is the snippet of code I tried , but it's working out being 'FALSE'.
Hope this would help you all to understand where I'm stuck with.
Regards..
-
Attachment: pic1.JPG
(Size: 55.93KB, Downloaded 1105 times)
[Updated on: Wed, 15 June 2011 05:15] Report message to a moderator
|
|
|
|
|