Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: sap.m.table

$
0
0

Hello Maksim,

 

the sorter is part of the problem.

I changed the code to

 

 

var oEscalation_Head = new sap.m.Table(

  { 

  showNoData: false,

  // mode : "SingleSelectMaster",

  columns : [

        

                              

         new sap.m.Column({ width : "5em",   header: new sap.m.Label({ text: "{i18n>BP_ESCALATION_ROLE}"}),

                        mergeDuplicates : true ,

         }),

        

  new sap.m.Column({width : "10em", header : new sap.m.Label({  text : "{i18n>BP_ESCALATION_USERNAME}"}) }),

 

 

  ],

  items : {template : oEscalationContacts_ColumnTemplate} ,

 

  

                 }).addStyleClass("sapUiSizeCompact").addStyleClass("myAlign"); 

 

  // ****************************************************************************************************************

 

 

/// Model Escalation Contacts

 

 

var oEscalationContactsSorter = new sap.ui.model.Sorter("/GetCustomerById/EscalationContacts/RoleId",false);

 

  

oEscalation_Head.setModel( sap.ui.getCore().getModel("Cust_By_Id"));

oEscalation_Head.bindAggregation("items", "/GetCustomerById/EscalationContacts/", oEscalationContacts_ColumnTemplate, oEscalationContactsSorter);

 

 

That works for the merging of the column.

The remaining problem that i have is that the sorter i applied seems to do nothing.

The sorting always the same if i set descending true or false.

Can you give me an advice what i do wrong here?

 

Regards

 

Dirk


Viewing all articles
Browse latest Browse all 3354

Trending Articles



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