Master Details Template
When click on Master[list]
it will navigate to detail page with table data, suppose four column are there and an "Add" Button in the last column.
Now what I want is, on click that "Add" button that row data will bind direct in cart view.
I tried using local storage, but how to call local stored data in cart view.
Cart view is on Master page with icon
On click cart icon view page is this
onPress: function(evt){
localStorage.setItem('user', JSON.stringify({
a : evt.oSource.oParent.mAggregations.cells[0].mProperties.src,
b : evt.oSource.oParent.mAggregations.cells[1].mProperties.text,
c : evt.oSource.oParent.mAggregations.cells[2].mProperties.text,
d : evt.oSource.oParent.mAggregations.cells[3].mProperties.text
}));
user = JSON.parse(localStorage.getItem('user'));
}