My Oracle Support Banner

Confirm Box Opens 3 Times When invoked Via Field Change From PM/PR (Doc ID 2521402.1)

Last updated on APRIL 21, 2019

Applies to:

Siebel CRM - Version 16.19 [IP2016] and later
Information in this document applies to any platform.

Symptoms

On : 16.19 [IP2016] version, Siebel VB / eScript / COM

ACTUAL BEHAVIOR
---------------
Confirm Box opens 3 times when the popup is invoked via Field Change from PM


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
Test Case:
============
1) Create a new PM file = SISAccountListAppletPM.js with below code

if (typeof(SiebelAppFacade.SISAccountListAppletPM) === "undefined") {

SiebelJS.Namespace("SiebelAppFacade.SISAccountListAppletPM");
define("siebel/custom/SISAccountListAppletPM", ["siebel/listpmodel"],
 function () {
  SiebelAppFacade.SISAccountListAppletPM = (function () {

   function SISAccountListAppletPM(pm) {
    SiebelAppFacade.SISAccountListAppletPM.superclass.constructor.apply(this, arguments);
   }

   SiebelJS.Extend(SISAccountListAppletPM, SiebelAppFacade.ListPresentationModel);

   SISAccountListAppletPM.prototype.Init = function () {
    SiebelAppFacade.SISAccountListAppletPM.superclass.Init.apply(this, arguments);
               this.AddMethod( "FieldChange",  OnFieldChange, { sequence : true, scope: this } );
   }
               function OnFieldChange (control,value)
               {
                               confirm("Test");
                               
               }
   SISAccountListAppletPM.prototype.Setup = function (propSet) {
    SiebelAppFacade.SISAccountListAppletPM.superclass.Setup.apply(this, arguments);
   }

   return SISAccountListAppletPM;
  }()
 );
 return "SiebelAppFacade.SISAccountListAppletPM";
})
}


2) Navigate to Administration - Application >> Manifest Files and create a new record with below details

siebel/custom/SISAccountListAppletPM.js

3) Navigate to Administration - Application >> Manifest Administration  and a new record

Type = Applet
Usage Type = Presentation Model
Name = SIS Account List Applet

Files

Name = siebel/custom/SISAccountListAppletPM.js

4) Relogin to the application 

5) Go to Account Screen

6) Change the status of any account  

Result: The confirm box shows up 3 times



Changes

 

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
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.