Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

TablePersoDialog is not working

$
0
0

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);

                }


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>