Question

1
Replies
854
Views
deepak shahi (deepaks2275)
Capgemini
Associate Consultant
Capgemini
IN
deepaks2275 Member since 2017 11 posts
Capgemini
Posted: May 16, 2019
Last activity: May 22, 2019
Posted: 16 May 2019 13:42 EDT
Last activity: 22 May 2019 13:43 EDT
Closed

Custom Edit Validate

I have following requirements:

1. Creating Edit validate rule and comparing 2 dates using java code. The 2 dates are properties in application. I am unable to use other property in Edit validate rule( as 1 property can be used as 'theValue')

2. the 2 dates are in a pagelist for ex pyWorkPage.TestPage (every page in list contain 2 dates) whic needs to be compared in the edit validate rule.So my question is will this edit validate rule work in a repeating grid if not how can i address this requirement.

Below is my custom edit validate:

if (theValue.trim().length() == 0) {
return false;
}
java.util.Date theDate = tools.getDateTimeUtils().parseDateTimeString(theValue);
return (theDate != null && theDate.after(NEED THE OTHER DATE PROPERTY HERE);

Thasks alot in advance!!

Case Management
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.