В Siebel CRM есть 4 варианта отображения Popup Applet. У каждого из них есть свои плюсы и минусы.
| Name | Value | Comments |
|---|---|---|
| Popup | <Applet Name> | Name of the popup applet |
| Mode | <Mode> | Base, Edit, Edit List |
| Popup Dimension | <Height> X <Width> | Eg: 300 X 300 |
Используя Server Script используя business service : “SLM Save List Service”, Method: LoadPopupApplet
var oBSSLM = TheApplication().GetService("SLM Save List Service"); var psInp = TheApplication().NewPropertySet(); var psOut = TheApplication().NewPropertySet(); psInp.SetProperty("Applet Height", "400"); psInp.SetProperty("Applet Mode", "1"); // 1 - List Applet, 2 - Form Applet//1=Base, 2=New, 3=Edit, 5=Query, 6=EditList psInp.SetProperty("Applet Name", "Applet Name"); psInp.SetProperty("Applet Width", "400"); oBSSLM.InvokeMethod("LoadPopupApplet", psInp , psOut);
function Applet_InvokeMethod (name, inputPropSet) { if(name == "ButtonClick") { inputPropSet.SetProperty("SWEMethod", "ShowPopup"); inputPropSet.SetProperty("SWETA", "Applet Name"); inputPropSet.SetProperty("SWEW", "300"); inputPropSet.SetProperty("SWEH", "100"); inputPropSet.SetProperty("SWESP", "true"); inputPropSet.SetProperty("SWEM", "Mode"); // Base, Edit, Edit List this.InvokeMethod("ShowPopup", inputPropSet); } }
| Name | <Any name you want to give to Command> |
| Method | GotoApplet |
| Method Argument | ShowMode=<Mode>, Applet = <Applet Name> |
| HTML Popup Dimension | 200 X 200 (Height X Width) |
| ShowPopup | True |
| Target | Server |
— wiki_admin 2014/10/31 13:36 Popup Applet