Siebel eService Administration Guide for Siebel Open UI > Configuring Siebel eService > Setting Up the Applet for Twitter >

Displaying the Twitter Widget in Siebel eService


After you obtain the Twitter widget from Twitter, you display that widget in a form applet in Siebel eService.

To display the Twitter widget in Siebel eService

  1. Create a Web template file with a name of Twitter.swt and an empty div element.

    The file content follows:

    <!-- Template Start Twitter.swt -->

    <div>

    </div>

    <!-- Template End Twitter.swt -->

  2. Complete the following steps to enter content in the empty div element:
    1. Enter the following script tag in the empty div element:

    <script>

    twtr=document.get.ElementById ("widgetID")

    if(twtr){

    twtr.remove();

    twtr=null;

    }

    </script>

    where:

    widget ID is the widget ID that you note in Step 7 of Obtaining a Twitter Widget.

    1. After the script tag, copy and paste the generated code that appears when you complete Step 6 of Obtaining a Twitter Widget.
  3. In Siebel tools, create a new Web template with a name and a filename of Twitter.swt.
  4. Create an empty form applet with a name of Twitter, and complete the followings steps for this applet:
    1. Set the class name to CSSFrameBase.
    2. In the Base mode of the applet Web template, set the Web template to Twitter.swt.
    3. Add the applet to the view where you want Tweets to appear.
  5. Compile the changes in the Step 3 and Step 4 into the Siebel Repository File.
  6. Clear the browser cache, and re-start Siebel eService.
Siebel eService Administration Guide for Siebel Open UI Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.