Siebel Advisor API Reference > Siebel Advisor API Examples >

Example of Creating a Custom Output Target


The code in the following example defines a "button" output target. Clicking the HTML button defined by the output target launches a JavaScript alert window. The alert window contains a string that varies depending on the current configuration.

function BuildSecretButtonTarget(winObj,name)

{

   // Register that this element must be refreshed when
   // results change

   ISS.RegisterUIElement(name, winObj, true);

   var secretStr = ISS.GetResultsValue(name);

   if (secretStr == "") return "";

   var retStr = '<INPUT TYPE="button" value="My Secret" onclick="alert(\''+secretStr+'\')">';

   return retStr;}

Siebel Advisor API Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.