I am working on SD 4.5 with Serv pack 23. I want to restrict the user from manually changing Customer Due Date and for this I have created one UI rule which works fine. But unfortunately it checks the difference only with respect to Days,month or year and is unable to track difference if user changes the hour,
say my CDD is 12/12/2007 12:30 PM and user changes it to 12/12/2007 10:30 PM then in this case tool is unable to check this difference.
is it something wrong on my end or just a limitation of the Tool.
A simple way round would be to have a custom date time field (say call it Copy of CDD) and have 2 rules.
1. When a value has changed, condition Copy of CCD is empty (with the "evaluate ..." box CLEAR) AND CDD is not empty (with the box set) Action : data update: Copy of CCD set to CCD
2. When a vlaue has changed When a value has changed, condition Copy of CCD is NOT empty (with the "evaluate ..." box CLEAR) AND CDD is not empty (with the box set), Action: data update set CCD to copy of CCD and possinly user notification message to say what has been done.
Thanks for your reply, actually here I have two fields: 'Customer Due Date' and 'Copy Customer Due Date'.
I copy value from CDD to Copy CDD when an existing item opens thru one rule.
Another rule checks if CDD is not equal to Copy CDD before saving and shows error message if both are different. It works fine if I make a change like this: '12/12/2007 12:30 PM' changed to '13/12/2007 12:30 PM' where dates are different.
But it fails to track the difference in the following scenario: '12/12/2007 12:30 PM' changed to '12/12/2007 10:30 PM' where the difference is between time stamp, and dates are same.
Please tell me if you need more clarification on this.