1 //设置控件的属性
2 var obj = document.getElementById(layer_id) ;
3 var requestStr = "";
4 var svrIP = __global_analyIP;
5 var port = __global_analyPort;
6 var bookXmlUrl = titleXml.getAttribute("bookXmlUrl");
7 var tempXmlUrl = layerXml.childNodes(0).getAttribute("tempXmlUrl");
8 var queryID = layerXml.childNodes(0).getAttribute("queryID");
9 var mode = layerXml.childNodes(0).getAttribute("mode");
10 try {
11 obj.ServerIP = svrIP;
12 obj.ServicePort = port;
13 obj.GetOLAPResult(tempXmlUrl, requestStr);
14 obj.DisplayStyle = 2;
15 obj.Subscribe(mode, queryID, bookXmlUrl);
16 } catch(ex) {
17 alert("请安装正确的控件。");
18 alert(ex);
19 return;
20 }