ClearLOVCache Method for a Business Component

The ClearLOVCache method clears the cache for the list of values (LOV) in the object manager, In works in a way that is similar to the Clear Cache button that Siebel CRM displays in the List of Values view of the Administration - Data screen. This method does not return any information.

The ClearLOVCache method clears only the object manager cache. It does not clear the session cache.

Format

BusComp.InvokeMethod("ClearLOVCache")

No arguments are available.

Used With

To use this method, you can use a BusComp.InvokeMethod call with the following interfaces:

  • Browser Script

  • COM Data Control

  • COM Data Server

  • Siebel Java Data Bean

  • Mobile Web Client Automation Server

  • Server Script

Examples

The following Siebel eScript example is for Server Script:

function WebApplet_PreInvokeMethod (MethodName)

{

if (MethodName == "TestMethod") {

  var lov_bo = TheApplication().GetBusObject("List Of Values");

  var lov_bc = lov_bo.GetBusComp("List Of Values");

  lov_bc.NewRecord(NewAfter);

  lov_bc.SetFieldValue("Type", "ACCOUNT_STATUS");

  lov_bc.SetFieldValue("Name", "Hello");

  lov_bc.SetFieldValue("Value", "Hello");

  lov_bc.SetFieldValue("Order By", "12");

  lov_bc.SetFieldValue("Translate", "Y");

  lov_bc.WriteRecord();

  lov_bc.InvokeMethod("ClearLOVCache");

  lov_bc = null;

  lov_bo = null;

  return (CancelOperation);

  }

  return(ContinueOperation);

}