Siebel Public Sector Guide > Setting Up Cases > Disabling Automatic Serialization >

Disabling Serial Number Buttons


This task is a step in Process of Setting Up Cases.

By default, buttons can be pressed as often as the user likes. However, in the case of a Serial Number button, this behavior would result in multiple serial numbers being generated for the same item. To create new serial numbers, the Regenerate and Regenerate All buttons should be used—see Generating New Serial Numbers for Cases, Leads, and Evidence for more information. To disable Serial Number buttons when the field is not null, use the following server script.

NOTE:  There is no server script supplied out of the box to disable the buttons.

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)

{

if( MethodName == "SerialNumber" )

{

if(BusComp().GetFieldValue("Serial Number")=="")

{

CanInvoke = "TRUE";

return( CancelOperation );

}

else

{

CanInvoke = "FALSE";

return( CancelOperation );

}

}

return (ContinueOperation);

}

Siebel Public Sector Guide Copyright © 2008, Oracle. All rights reserved.