Wednesday, March 16, 2011

A Service Request cannot be closed without filling in comments in the Summary control.

Before I start about the following post, I would like to extend my deep sympathy towards the Japanese people who are stuck by the disaster and am continuously keeping them in my prayers.

 Requirement : A Service Request cannot be closed without filling in comments in the Summary control. An error message should be thrown "Please enter Summary information before closing the Service Request."


Solution:
We solve this problem by using PreWriteRecord event which is called before a row is written to the database.
The event can perform any final validation necessary before any internal record-level validation is performed.

function BusComp_PreWriteRecord ()

{

 var Status=this.GetFieldValue("Status");

var Abstract=this.GetFieldValue("Abstract");

if (Status == 'Closed')

{

if (Abstract=='')

{

TheApplication().RaiseErrorText("If Status is closed then Summery must be entered");

}

}

}

1 comment:

  1. Hi ,

    This is Sekhar, have experience in Siebel CRM for 6 years...
    i would like to give SIebel CRM And SIEBEL EAI Online Training and tech support.
    if you need any help please contact me @ sekhara2yaragudi@gmail.com

    Thanks
    Siebel Sekhar

    ReplyDelete

Followers

Search This Blog