I want to refresh a view in siebel on a button click

user2131376 picture user2131376 · Mar 25, 2013 · Viewed 21.8k times · Source

I am using siebel v 8.0.

I would like to refresh the view when button in an applet is clicked.

When the button is clicked, I need some code in browser script that can refresh the view.

I have tried

1. this.BusComp().InvokeMethod("RefreshRecord");
2. this.BusComp().InvokeMethod("RefreshBusComp");
3. theApplication().InvokeMethod("RefreshBusComp"); 
4. theApplication().GetService("FINS Teller UI Navigation").InvokeMethod ("RefreshCurrentApplet", theApplication(). NewPropertySet(), theApplication().NewPropertySet());

But none of them worked. But i need entire view to be refreshed instead of current applet.Please help. .

Answer

Ranjith R picture Ranjith R · Mar 26, 2013

While using BS:FINS Teller UI Navigation, try passing the parameter "Refresh All" as true.

var svcUI = TheApplication().GetService("FINS Teller UI Navigation");
var psIn = TheApplication().NewPropertySet();
var psOut = TheApplication().NewPropertySet();
psIn.SetProperty("Refresh All","Y");
svcUI.InvokeMethod("RefreshCurrentApplet",psIn,psOut);

If that still does not work for you, you can try javascript to refresh the view, assuming your App is in high interactivity. Use window.location.reload() in javascript to refresh the entire view.