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 }
1 <%
2 String variantID = request.getParameter("category");
3 try {
4 //通过 variantID 获取变量Collection
5 Map varMap =
6 UMUtils.getVarMgrLocal().getVariant(variantID);
7 VariantModel vm = new VariantModel();
8 %>
9 <root>
10 <%
11 Iterator it = varMap.entrySet().iterator() ;
12 while(it.hasNext())
13 vm = (VariantModel)it.next();
14 {
15 System.out.println("<var id="+vm.getId() +" value="+ vm.getValue() +"/>" );
16 }
17 }catch(Exception e){
18 e.printStackTrace();
19 logger.wtriteLog(e);
20 }
21 %>
22 </root>