Hi team,
after apply button click i want selected value from row , column,filter and values so i can use any other place
Hi! Please, check the datatable API.
For example, you can use such methods as getSelectedItem(), getSelectedId, getFilter() and some other depending on your needs.
can you explain through exact code
Yep, here’s the snippet: http://webix.com/snippet/7da6934c
i am working on pivot so get row column value using below code but i want to get row,column, filter values after apply button click on popup
$$(“pivot”).attachEvent(“onPopup”, function(popup){
var rows = popup.$$(“rows”);
var fields = popup.$$(“fields”);
var filters = popup.$$(“filters”);
var columns = popup.$$(“columns”);
// …
});
Object with the selected structure is passed into onApply event handler. And you can get structure object via getStructure() method:
$$("pivot").attachEvent("onPopup", function(popup){
popup.attachEvent("onApply", doSomething);
});
function doSomething(structure){
var str = webix.copy(structure);
// your code
}
Hi maria,
whenever i pass parameter on filter block i am getting below error
Uncaught TypeError: n.attachEvent is not a function
webix.ui({
popup:{
width:800, height:400
},
view: "pivot",
container: "gridContainer",
id: "pivot",
data: pivot_dataset,
structure: {
columns :"Sector",
rows: Entity,
values: [
{ name:"Wallet" , operation: "sum"}
] ,
filters:"SOW"
}
});
kindly give me a solution