Hi Experts,
I am trying to implement table personalization by using the TablePersoDialog but i am not able to achieve it , and it is giving an error TablePersoDialog is not a function
How can i over come it...
if there is any Relevant example on TablePersoDialog please share the link
myCode:
View:
press: function() {
var oDialog = new sap.m.TablePersoDialog({
persoService: [],
showSelectAll: false,
showResetAll: false,
confirm: function() {
alert("buttonpressed");
},
cancel: function() {
alert("buttonpressed");
},
});
oDialog.open();
Controller:
var oMetaData = oModel.getServiceMetadata();
var oEntityRef = oMetaData.dataServices.schema[0].entityType[0];
var oListProperties = oEntityRef.property;
for (a = 0; a < oLength; a++) {
var oColumnName = oListProperties[a].name;
oDialog.setInitialColumnState(oColumnName);
}