My Oracle Support Banner

Unable to Open an Url in a New Window from Custom Button on Home Page Applet (Doc ID 484091.1)

Last updated on AUGUST 02, 2018

Applies to:

null
z*OBSOLETE: Microsoft Windows 2000
Product Release: V7 (Enterprise)
Version: 7.5.2.200 [16053]
Database: Oracle 8.1.5
Application Server OS: Microsoft Windows 2000 Advanced Server SP 2
Database Server OS: Microsoft Windows 2000 Server

This document was previously published as Siebel SR 38-928725751.
Checked for Relevance on AUG-05-2103

Symptoms

I am trying to add a button to a Home page applet

Applet name : Aventis Specialty Contact List Applet (My Personal Contact)
Project        : Siebel Universal Agent
BC        : Contact

Spep 1
======

I Drag and drop button into empty placeholder on WebLayout (In the Blue Bar next to Cancel(Query)) and made the following changes

Caption = AVENTIS
HTML Display Mode = EncodeData
HTML Only = FALSE
HTML Type = MiniButton
MethodInvoke = OpenUrl
Runtime = TRUE
Visible Language Override = TRUE

Step - 2
=========
Server Scripts
---------------

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
    if (MethodName =="OpenUrl")
    {
        CanInvoke ="TRUE"           
        return (CancelOperation);
    }    
    else
        return (ContinueOperation);
}

Step - 3
=========

Browser Scripts
---------------

function Applet_PreInvokeMethod (name, inputPropSet)
{
    if ( name == "OpenUrl" )
    {
        window.open("http://www.Aventis.com");    
        return ("CancelOperation");    
    }
       else
                  return ("ContinueOperation");
}

STEP - 4
=========

Compile

Step - 5
========

Run genbscript.exe.



When I lauch my application, I can see the Aventis Button on the applet. But when I click
this Button I got the following message

"We detected an Error which may have occurred for one or more of the following reasons:

The specialized method 'OpenUrl' is not supported on Business Component 'Contact'
used by Business Object 'Life Sciences Home'. - SBL-DAT-00222"

I did the same thing for SIS Account Entry Applet and the button is working fine in that applet
and I can launch aventis web site from that applet.

Is there any limitation that Siebel does not allow to write specialize method on Home Page.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.