I guess I found how to achieve this. Start the SimpleXML dashboard with all the needed fields (so my initial search would indeed contain that category field - the last pipe would read | table _time, product, cost, amount, total, category ). Export the dashboard into HTML. Then find the TableElement you want to modify - looks like this:
var element2 = new TableElement({
"id": "element2",
"count": 10,
"dataOverlayMode": "none",
"drilldown": "cell",
"rowNumbers": "false",
"wrap": "true",
"managerid": "search2",
"el": $('#element2')
}, {tokens: true, tokenNamespace: "submitted"}).render();
and add a property named fields , like this:
var element2 = new TableElement({
"id": "element2",
"count": 10,
"dataOverlayMode": "none",
"drilldown": "cell",
"rowNumbers": "false",
"wrap": "true",
"managerid": "search2",
"fields": "_time, product, cost, amount, total",
"el": $('#element2')
}, {tokens: true, tokenNamespace: "submitted"}).render();
Voilà - the displayed fields are the _time, product, cost, amount, total, but the event contains both e.data.row.category and e.event.rowContext.row.category properties! (In addition to everything else)
... View more