<< Click to Display Table of Contents >> Get all Datasets and DataSet folder lists in the product |
![]() ![]() ![]() |
Request address |
http://ip:port/bi/api?action=updateQueryTree&token=xxxx |
|
Request message |
Request parameter |
required parameter:xmlData (required) <?xml version="1.0" encoding="UTF-8"?> <info> <user>admin</user> </info> |
parametric description |
user(optional) For the target user you want to view. |
|
Sample |
function updateQueryTree () { var xml = getXml(); $.post("http://" + ip + ":" + port + "/" + project + "/api?action= updateQueryTree&token=xxxx ", {xmlData:xml}, function(result) { writeXml(result); }); } |
|
Response message |
Response result
|
1)Successful operation <?xml version="1.0" encoding="utf-8"?> <results> <assetref> <name>test2</name> <type>excel</type> <path>query1/query2/test2</path> </assetref> <assetref> <name>test</name> <type>excel</type> <path>query1/query3/test</path> </assetref> <assetref> <name>query1</name> <type>queryfolder</type> <path>query1</path> </assetref> <assetref> <name>query3</name> <type>queryfolder</type> <path>query1/query3</path> </assetref> <assetref> <name>query2</name> <type>queryfolder</type> <path>query1/query2</path> </assetref> 2)Operation failure <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level><message>Incorrect login name or password.</message> </result> </results> or <?xml version="1.0" encoding="UTF-8"?> <results> <result><level>6</level> <message>You have no access to other's data.</message> </result> </results> |
Result description |
The response result information is xml. direct parse. 1) under assetref, there is a name type path for each query or query folder, respectively. 2) level return type, different values represent different return status, see Appendix. 3 ) If the non - administrator user wants to view the data information of other users , the operation failure is returned . |