Scripting Issue, When Creating New Record Using "NewRecord(NewAfter)" Getting Error (Doc ID 2225266.1)

Last updated on JANUARY 20, 2017

Applies to:

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

Symptoms

STATEMENT OF ISSUE/ ACTUAL BEHAVIOR:
==============================
The customer states that after adding script in Contact/Account BC they encounter an error.

REPLICATION STEPS:
==================
The issue can be reproduced at will with the following steps:

Prerequisite: there should be code in BusComp_ChangeRecord event, doesn't matter if its a dead code.

1. In List Applet expose an custom button and enable it.
2. Write code in WebApplet_PreInvokeMethod as below(snippet):

var boActive = TheApplication().ActiveBusObject();
var bc = boActive.GetBusComp("Account"); //if you are writing code for Account's Applet
var bc = boActive.GetBusComp("Contact"); //if you are writing code for Contact's Applet
with(bc)
{
 NewRecord(NewAfter);
 TheApplication().RaiseErrorText("Hi.. Cursor is moved from NewRecord(NewAfter)");
}
3. Click on that button at UI, error comes at NewRecord(NewAfter) step itself that: "Unhandled Exception: Function expected NewRecord can't call as a function".

ERROR
====================
"Unhandled Exception: Function expected NewRecord can't call as a function"

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