+ Start a Discussion
soasoa 

Validation Rule to hava a system generated field

Hi,

 

I am creating an Application called Defect Tracking System. I need to add validation rules in it.

 

My first rule is :

1. I need to get the Defect number as soon as a new Defect is added.that is the defect number should be system generated.

this I shall do with the help of Before Insert Trigger.

Can you please suggest how shall I do it.

 

I have a defect object which has defect ID, ProjectID(which it takes from the Project object)

As soon as the user will press the save button in the defect form a Defect Number Field should be added automatically to this form.

 

Please tell me how to accomplish this..I am stuck.

 

Regards

Diti