Siebel Public Sector Guide > Administering Siebel Public Sector > Disabling Automatic Serialization >

Disabling Serial Number Buttons


By default, users can click buttons as often as they like. However, clicking a Serial Number button multiple times results in multiple generated serial numbers for the same item. To create new serial numbers, use the Regenerate and Regenerate All buttons. For more information, see About Generating New Serial Numbers.

To disable Serial Number buttons when the field is not null, use the following server script:

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
   if(MethodName == "SerialNumber")
   {
     if(BusComp().GetFieldValue("Serial Number")=="")
     {
        CanInvoke = "TRUE";
        return(CancelOperation);
     }
     else
     {
        CanInvoke = "FALSE";
        return(CancelOperation);
     }
   }
   return (ContinueOperation);
}

NOTE:  No server script is preconfigured to disable the buttons.

Siebel Public Sector Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.