<< Click to Display Table of Contents >> 1.21 获得仪表盘中所有组件名称 |
请求地址 |
http://ip:port/bi/api?action=getElems&token=xxxx |
|
请求消息 |
请求参数 |
请求参数:xmlData(必填) <?xml version="1.0" encoding="UTF-8"?> <info> <dbpath>test</dbpath> </info> |
参数描述 |
参数为节点信息: 1)dbpath(必填):仪表盘的路径(示例为根目录下的test仪表盘) |
|
示例 |
function getElems() { var xml = getXml(); $.post("http://" + ip + ":" + port + "/" + project + "/api?action=getElems&token=xxxx", {xmlData : xml}, function(result) { writeXml(result); }); } |
|
响应消息 |
响应结果 |
1)操作成功 <?xml version="1.0" encoding="UTF-8"?> <elems> <elem><name>仪表1</name><type>Gauge</type></elem> <elem><name>网页1</name><type>Webpage</type></elem> <elem><name>填报参数1</name><type>FormTable</type></elem> <elem><name>文本1</name><type>Text</type></elem> <elem><name>提交1</name><type>Commit</type></elem> <elem><name>图片1</name><type>Image</type></elem> <elem><name>列表过滤1</name><type>FilterList</type></elem> <elem><name>列表参数1</name><type>ListParam</type></elem> <elem><name>树状过滤1</name><type>FilterTree</type></elem> <elem><name>文本参数1</name><type>TextParam</type></elem> <elem><name>选项卡1</name><type>Tab</type></elem> <elem><name>图表1</name><type>Chart</type></elem> <elem><name>表1</name><type>Table</type></elem> <elem><name>自由式表格1</name><type>Exploded</type></elem> <elem><name>日期过滤1</name><type>Calendar</type></elem> <elem><name>交叉表1</name><type>Pivot</type></elem> <elem><name>下拉参数1</name><type>ComboParam</type></elem> <elem><name>范围过滤1</name><type>Range</type></elem> </elems> 2)操作失败 <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level> <message>D:\bihome\dashboard\test1.db (系统找不到指定的文件。)</message> </result> </results>
|
结果描述 |
|