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

2019-08-06 11:13发布

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. .

2条回答
做自己的国王
2楼-- · 2019-08-06 11:52

Intercept the button click event on Browser Side Script on Applet and Invoke customized Business Service from Browser Side Script. On the Server Side Script of Business Service use

TheApplication().GoToView("Name Of View to Refresh");

Pass 'View Name' and other parameter from Browser to Server side to maintain context this will make it generic and reusable. At last you will have refreshed View.

查看更多
不美不萌又怎样
3楼-- · 2019-08-06 11:59

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.

查看更多
登录 后发表回答