Need to add apex field with value calculated with an if statement
I've added a new field called QMED Sale Date to a visual force page which will have a single value.
I want to add a column for Sale Date which will either use the same dates that are shown in the schedule date or will use the QMED sale date for all the values if the QMED Sale date is populated.
Currently I have the column available for the Sale date, but have only been able to populate it with the schedule date. I'm not sure how to manipulate it to perform my if statement.
I can provide a screen shot that better explains my requirements.
I'm a newbie. Any help would be appreciated.
FREE Real-time Salesforce Developer Support Pilot
Salesforce.com Support is currently running a pilot where certified Salesforce experts will answer your Apex or VisualForce questions in a secure, real-time, cloud-based environment. If you are interested in trying out this service at no charge, please contact Brad Davis (email@example.com), and please provide your phone number and the Apex or VisualForce question that you would like to be answered.
Please note that Salesforce.com has the right to revoke this pilot at any time, and participation is not guaranteed.
Manager, Developer Support