My Oracle Support Banner

Virtual Business Component : Field Values Updates Via User Are Not Getting Reflecting At Server Side (Doc ID 2552729.1)

Last updated on OCTOBER 30, 2019

Applies to:

Siebel CRM - Version 18.12 and later
Information in this document applies to any platform.

Symptoms

On : 18.12 version, Client Functionality


Virtual Business Component : Field values updates via User are not getting reflecting at server side


 
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Configure VBC (Test VBC) with four fields(Field1,Field2,Field3,Field4).Calss : CSSBCVExtern
Add "Test VBC BS" in the above BC user properties
2. Configure Applet(Test VBC Applet) based on above Business Component and display all 4 fields in UI
3. Configure custom button(test) on the above applet
4. Add Can Invoke user property to enable the custom button
5. Add following code in applet preinvoke method
function WebApplet_PreInvokeMethod (MethodName)
{
if(MethodName == "Test")
{
TheApplication().RaiseErrorText("Field1 : " + this.BusComp().GetFieldValue("Field1") + " /n " +"Field2 : " + this.BusComp().GetFieldValue("Field2") + " /n " +"Field3 : " + this.BusComp().GetFieldValue("Field3") + " /n " +"Field4 : " + this.BusComp().GetFieldValue("Field4"));
return (CancelOperation);
}
else
return (ContinueOperation);
}
6. Add below Code in "Test VBC BS"
A)
function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
var iReturnVal = ContinueOperation;

switch (MethodName)
{
case "Init":
Init(Inputs, Outputs);
iReturnVal = CancelOperation;
break;

case "Query":
Query(Inputs, Outputs);
iReturnVal = CancelOperation;
break;

case "Update":
// Do nothing
iReturnVal = CancelOperation;
break;
}

return (iReturnVal);
}

B)
function Init(psInArgs, psOutArgs)
{

try
{

psOutArgs.SetProperty("Field1", "");
psOutArgs.SetProperty("Field2", "");
psOutArgs.SetProperty("Field3", "");
psOutArgs.SetProperty("Field4", "");
}

catch (e)
{
throw (e);
}
finally
{

}
}


C)
function Query(psInArgs, psOutArgs)
{

try
{

var psRow = TheApplication().NewPropertySet();
psRow.SetProperty("Field1", "");
psRow.SetProperty("Field2", "");
psRow.SetProperty("Field3", "");
psRow.SetProperty("Field4", "");


psOutArgs.AddChild(psRow);

}
catch (e)
{
throw e;
}
finally
{

psRow = null;

}
}



6) Display this applet in any view

==> Login to application --> Navigate to view in which we displayed the VBC based applet
enter field values for all 4 fields
click on custom button, it will give popup with all the field values

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
References


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