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

List Sorting and Broken Navigation

$
0
0

Hi All,

 

I have a xml split view app that works correctly. However when I add Sorting to the Master List XML I start to see the error "Uncaught TypeError: Cannot read property 'getPath' of undefined"

 

 

The sorting was added like this, and it displays correctly when I run the app,

items="{

  path : '/Carriers',

  sorter : {

  path : 'Category',

  group : true

  }

 

 

The error in the code appears here:

 

showDetail: function(oItem) {

// If we're on a phone device, include nav in history

var bReplace = jQuery.device.is.phone ? false : true;

 

 

this.getRouter().navTo("detail", {

from: "master",

entity: oItem.getBindingContext().getPath().substr(1),

tab: this.sTab

}, bReplace);

 

 

},

 

Thanks,

Stuart


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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