In my dashBoard,i edit a table in sampleXML,then, The table is converted from sampleXML to HTML. and Converted code
var element3 = new TableElement({
"id": "element3",
"count": 50,
"drilldown": "cell",
"refresh.display": "progressbar",
"totalsRow": "true",
"managerid": "search2",
"el": $('#element3')
}, {tokens: true, tokenNamespace: "submitted"}).render();
so,I wang to know How do I get data from the tableelement, such as taking the first row of the table?
beside, the way I have tried
var myTable = mvc.Components.get('element3');
// Programmatically change a property in the Events table
myTable.getVisualization(function(tableView) {
console.log("tableView ",tableView); //can get value
//console.log("rowExpansionRendererCollection ",tableView.rowExpansionRendererCollection.item(0));// cannot get value
var arraydata = tableView.getRowExpansionRenderers;
console.log("getcell",arraydata); //result is
// [Log] getcell – function (){
// return this.rowExpansionRendererCollection.pluck("renderer")}
// but not array
please help me to find method of table data
thanks very much
@flzhang132, since the search search2
populates the data in your table, you should actually be coding search2 results with .on("data", function() {...}
Refer to documentation: http://dev.splunk.com/view/webframework-developapps/SP-CAAAEU6
@flzhang132, since the search search2
populates the data in your table, you should actually be coding search2 results with .on("data", function() {...}
Refer to documentation: http://dev.splunk.com/view/webframework-developapps/SP-CAAAEU6