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

Adding Server Script to the Applet


When you create buttons for saving and clearing signatures, you specify methods for the buttons you create. You must add a server script to the applet to allow the methods to be called. The server script enables the buttons to function.

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

To add server script to the applet

  1. In Siebel Tools, right-click the applet object, then select Edit Server Scripts.
  2. Select the WebApplet_PreCanInvokeMethod event.
  3. Write the script to enable the custom methods that are called from the buttons that you create for saving and clearing signatures.

    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. Select File, then Save.
Siebel Applications Administration Guide Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.