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

ε祈祈猫儿з 提交于 2019-12-24 11:05:19

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/15610342/i-want-to-refresh-a-view-in-siebel-on-a-button-click

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!