'OnClick' Browser Script and SetProfileAttr and using "confirm" in the SI client . (Doc ID 482152.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools - Version 7.0.4.210 SIS [14165] and later
z*OBSOLETE: Microsoft Windows 2000
Database: Oracle 8.1.7.2
Application Server OS: Microsoft Windows 2000 Advanced Server SP 2
Database Server OS: Microsoft Windows 2000 Advanced Server SP 2

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

””Checked for Relevance on 03-12-2012””
**Checked for Relevance on 26-MAY-2014**

Goal

The requirement was to use the Javascript "confirm" function in the SI client. Browser Script Confirm() functionality is used and code is placed on the 'OnClick' event of a custom button.

The code should set a profile attribute depending on if the user clicks OK or CANCEL. Server Script will then check this Profile Attribute to determine whether or not to execute certain functionality.

Code looks like this (button_onClick):

 



Then, using the PreInvokeMethod (server script) - we should be able to check the value of the Hobby Profile Attribute to determine if the user clicked OK or CANCEL.

The above code works in that the confirm msgbox is displayed, however, is does not set the profile attribute.

Questions:

What syntax is necessary to set a Profile Attribute in Control level Browser Script?
Below methods were tried:
Top().theApplication().SetProfileAttr("Hobby", "NO");
theApplication.SetProfileAttr("Hobby", "YES");
top._swe._sweapp.S_App.theApplication().SetProfileAttr("Hobby", "YES");


Is there a work around for this issue?

Solution

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