function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chuckwalleychuckwalley 

Validating ScheduleDate

Is there a way to validate the ScheduleDate from the OpportunityLineItemSchedule object, other than creating a VF page. My current process calls /oppitm/scheduleedit.jsp, but I have no idea how to manipulate (or validate) the data associated with that jsp. 

 

thanks, 

 

Chuck

sandeep@Salesforcesandeep@Salesforce

here Pelase let me know meaning of validation of ScheduleDate. do you want to compare it or want to put any condition please elaborate. 

 

chuckwalleychuckwalley

The ScheduleDate is the date associated with the OpportunityLineItemSchedule. In the "Edit Schedule" process of the Opportunity Product, the /oppitm/scheduleedit.jsp page is displayed, polulated with each line in the schedule. (each OpportunityLineItemSchedule associated with the OpportunityLineItem.) 

 

Depending on the product, I want to ensure the ScheduleDate is a Sunday. 

 

if (product associated with the OLI = 'xxxxx')

{

    if (day of OLIS.ScheduleDate <> Sunday)

    {

         OLIS.ScheduleDate has an error

    }

}

 

I'm trying to figure a way to manipulate the /oppitm/scheduleedit.jsp page because I would rather not rewrite the functionality. 

 

Any thoughts are greatly appreciated. 

 

Thanks, 

 

Chuck