My Oracle Support Banner

Siebel Open UI NewRecord invoking from Presentation Model (Doc ID 2532353.1)

Last updated on OCTOBER 29, 2019

Applies to:

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

Symptoms

On : 8.1.1.11.15 [IP2013] version, Siebel VB / eScript / COM
Siebel Open UI NewRecord invoking from presentation model

Customer is using Siebel Open UI and created new applet related presentation model.
Upong trying to invoke NewRecord method from PM its not working as intended.
They used the function “OnFieldChange” and during the process tried to create new record in another business component, existing on the same view, but unsuccessfully.

They tried it twice.
1. Applet was empty before invoking NewRecord(), then they called the function NewRecord() from PM expecting that new record is going to be created , but unsuccessfully.
They added after call of NewRecord() – the “SetFieldValue()” command expecting to set some fields after newly created record, but nothing happened because record has not been created yet.

2. Applet contains a single record. They also used function “SetFieldValue” to set some values to newly created record, after invoking NewRecord(). New record wasn’t created and SetFieldValue() function did set field on the only existing record in the applet.

Example of script, they used.

function OnFieldChange(control, value){
    var controlName = control.GetName();
    SiebelJS.Log(controlName + "-->" + value);
    if(value === "18"){
        switch (controlName){
            case 'CT - New':
                var sActiveBO = SiebelApp.S_App.GetActiveBusObj();
                var sAdditionalInfoBC = sActiveBO.GetBusCompByName("TB Segmentation Additional Information");
                sAdditionalInfoBC.NewRecord();
                break;
        }
    }
}
 

ERROR
-----------------------
New record is not getting created.


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


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