Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Navigation from master view to detail view

$
0
0

Hi Experts,

 

I have a requirement where on click of list on Master view i have to display its details on Details view.

 

My Master view is XML file and its code is as follows:

<List id="list"

  mode="{device>/listMode}"

                select="_handleSelect"

                items="{/AppointmentSet}">              

                <items>              

  <ObjectListItem

  type="{device>/listItemType}"

  press="onSelect"

  intro= "{Description}"

  number="{City1}"

  numberUnit="{Street}" >   

  <attributes>

     <ObjectAttribute text="{

  path: 'StartTime',

  formatter: 'com.fOne.util.Formatter.StartTime' 

  }" />

  <ObjectAttribute text="{

  path: 'StartDate',

  formatter: 'com.fOne.util.Formatter.StartDate' 

  }" />

........

 

Here, on press i have given onSelect for which in masterController.js i have given following code:

 

onSelect:function(Evt){

  debugger;

// this.app.To("AppointmentDetail");

  },

 

But, on execution when I click on list neither it never stops at debugger nor does it navigates to given view name (AppointmentDetail).

 

Please help me with this.

 

Thanks.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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