Hi, i dont have a cube or an olap Server, just the json file I generate, Is there a way to export the pivot grid without those object?
this is my Code cshtml file
<div id="PivotGrid1" style="height: 350px; width: 100%; overflow: auto">
<script>
function VentaNF() {
var f1 = document.getElementById("DatePick").value;
var f2 = document.getElementById("DatePick2").value;
$.ajax({
url: '@Url.Action("JsonVUxClientes", "Test")',
type: "POST",
data: {
d1: f1,
d2: f2,
fto: 'NF',
},
success: function (result) {
var formatData = ej.parseJSON(result);
$("#PivotGrid1").ejPivotGrid({
dataSource: {
data: result,
rows: [{
fieldName: "ClientGroup",
fieldCaption: "ClientGroup",
sortOrder: ej.PivotAnalysis.SortOrder.Ascending
}, {
fieldName: "ClientName",
fieldCaption: "ClientName",
}],
columns: [{
fieldName: "Mont",
fieldCaption: "Month"
}],
values: [{
fieldName: "Sales",
fieldCaption: "Sales",
format: "currency",
formatString: "{0:c2}"
}, {
fieldName: "SalesUnits",
fieldCaption: "SalesUnits",
},
{
fieldName: "ProfitPrct",
fieldCaption: "Profit %",
format: "percentage",
formatString: "{0:P2}"
}],
},
enableGroupingBar: false,
enableCollapseByDefault: true
});
}
});
}
</script>