Audit Trail On Delete Record Using Custom Delete Button Not Working on FS Inventory Transaction BC

(Doc ID 2296828.1)

Last updated on AUGUST 14, 2017

Applies to:

Siebel Tools - Version 8.1.1.14.16 [IP2014] and later
Information in this document applies to any platform.

Symptoms

 Audit trail on deleting a record using custom delete button is not working from FS Inventory Transaction BC.

Changes

Steps:

1. Navigate to the Administration - Audit Trail screen.
2. In the Audit Trail Buscomp list, create a new record, and complete the necessary fields as below:

BC: FS Inventory Transaction
Delete

3. In the Field list, create a new record for the field you want to audit.
4. Save the changes.
5. Go to FS Inventory Transaction List Applet and delete an record using delete button
Save the changes
6. Go to Audit Trail Screen and see that records exists.

7. Go to Tools and Create an New Custom Button Control (TestDelete) in "FS Inventory Transaction List Applet"
Method: Test

Code in

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == "Test")
{
CanInvoke = "TRUE";
return (CancelOperation);
}
return (ContinueOperation);
}

---------------------

function WebApplet_PreInvokeMethod (MethodName)
{
if (MethodName == "Test")
{

var BO = TheApplication().GetBusObject("FS Inventory Transaction");
var BC = BO.GetBusComp("FS Inventory Transaction");
with (BC)
{
ClearToQuery();
ExecuteQuery(ForwardOnly);
if(FirstRecord())
{
DeleteRecord();
}
return(CancelOperation);
}
}
}

Save changes and compile to srf.

8. Go to FS Inventory Transaction List Applet and delete an record using “TestDelete” button
Save the changes

No audit Trail Changes recorded.

Same works fine in any other BC. Tried in opportunity BC and it worked with OOTB button and custom delete button. Its not working only in FS Inventory BC.

 

Note: Above Scripts provided by Siebel Technical Support are for example only and are not expected to be able to be used as a finished production level script.

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