Siebel Applications Administration Guide > Signature Capture > Process of Creating the Applet for Signature Capture >

Adding Server Script to the Applet


In Creating Buttons for Saving and Clearing Signatures, you specified methods for the buttons you created. You must add server script to the applet to allow the methods to be called; that is, the server script enables the buttons to function.

This task is a step in Process of Creating the Applet for Signature Capture.

To add server script to the applet

  1. In Siebel Tools, right-click the applet object, then choose Edit Server Scripts.
  2. Select the WebApplet_PreCanInvokeMethod event.
  3. Write the script to enable the custom methods that are called from the buttons created in Creating Buttons for Saving and Clearing Signatures.

    For example, you might write server script similar to the following example:

    function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)

    {

    if (MethodName=="StoreSignature" || MethodName=="ClearInk")

    {

    CanInvoke="TRUE";

    return (CancelOperation);

    }

    else

    {

    return (ContinueOperation);

    }

    }

  4. Choose File > Save.
Siebel Applications Administration Guide Copyright © 2009, Oracle and/or its affiliates. All rights reserved. Legal Notices.