Browser script not get triggered (Doc ID 546694.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools - Version 7.5.3 [16157] and later
Oracle Solaris on SPARC (64-bit)
Product Release: V7 (Enterprise)
Version: 7.5.3 [16157]
""Checked for Relevance on 17-APR-2015""
Database: Oracle 9.2.0.2
Application Server OS: Sun Solaris 8
Database Server OS: Sun Solaris 8

This document was previously published as Siebel SR 38-1649649997.


Symptoms

We have a requirement to export SRs in eService standard interactivity mode and display the records in browser.   We have a button to trigger workflow process to generate HTML file. The workflow has been built to generate XML and call XSLT business Service. The output file is HTML format on the server. We want to display the HTML directly in the IE browser. Siebel suggested to use symbolic URL and "GotoURL" method, but it can't be done to call workflow and display HTML page within one button.

I had tried to use browser script to call workflow and get output parameter, then use window.open() method to open HTML file. The browser didn't get triggered.

function Applet_PreInvokeMethod (name, inputPropSet)
{
     if (name == "Test")
     {
     alert("Test button!");
     var svc      = TheApplication().GetService("Workflow Process Manager");
          
     var input      = TheApplication().NewPropertySet();
     var output      = TheApplication().NewPropertySet();
     input.SetProperty("ProcessName", "NeuSupport Export Write SR to XSLT");
     ar ret = svc.InvokeMethod("RunProcess",input,output);
     var myURL = output.GetProperty("HTMLfileName");
     window.open(myURL, "_blank");
     svc     = null;
     input      = null;
     output      = null;
     return ("CancelOperation");
     }
}



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms