The method this.BusComp().NextSelected() does not work

(Doc ID 824099.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools, SPE - Version 7.7.2.8 [18379] to 8.1.1 [21112] [Release V7 to V8]
Information in this document applies to any platform.
Checked for Relevance on 07-Nov-2013


Symptoms

When trying to use the NextSelected() method to move to the next available record, it does not work.

STEPS To Reproduce
-----------------------
The following code is used behind a button to delete records
WebApplet_PreInvokeMethod (MethodName)
{
switch(MethodName)
{
case "MassDeleteContact":
var bcContact = this.BusComp();
var isRecord = bcContact.FirstSelected();
while(isRecord)
{
bcContact.DeleteRecord();
isRecord = bcContact.NextSelected();
}
}
return(CancelOperation);
break;
default:
break;
}
return (ContinueOperation);
}



The loss of functionality
This behavior only occurs using a customized srf file. And the loss refers to the inability to delete records using a script

The significance of loss
This loss does not affect the operation as a whole. It impacts only using a custom script to delete records

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