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 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 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")



    return (CancelOperation);




    return (ContinueOperation);



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