Hello,
i try to use the visualize-option but my response is not been used and I do not know why…
My response looks like this as pretty:
{
"resultSet": {
"results": [
[
"200",
55123
]
]
},
"metaData": {
"cols": [
[
"Bezeichnung",
12
],
[
"ANZAHL",
4
]
]
},
"sql": "SELECT BEZ as Bezeichnung, Count(BEZ) as ANZAHL\n\nFROM DB.DBnew\n\nGROUP BY BEZ",
"uuid": "1f313663-9543-5ed0-af85-cad5e9a23a8d",
"done": true,
"started": 1545635049552
}
and i inserted the following code in the Test-Tab:
ar template = <table bgcolor="#CCCCCC"> <tr> <th>BR</th> <th>Anzahl</th> </tr> {{#each metaData}} <tr> <td>{{Bezeichnung}}</td> <td>{{ANZAHL}}</td> </tr> {{/each}} </table>
;
// Set visualizer
pm.visualizer.set(template, {
// Pass the response body parsed as JSON as data
response: pm.response.json()
});
All that I get as visualization is the table-header, but no input…
and although there should be only one table-row; 6 rows (but empty) are displayed…