I have a list view and a detail view. My list view is populated by the following code...
for (var i = 0, l = e.results.length; i < l; i++) { var result = e.results[i]; var row = Alloy.createController('appRow', result).getView(); data.push(row); } $.tbl.setData(data);Then I have the following event listener
$.tbl.addEventListener('click', function (evt) { showDetail(evt); });which invokes the detail view
//Invoked by task record click function showDetail(event){ Alloy.createController('appRowDetail', event.row).getView().open({modal:true, fullscreen: true}); };This all works fine from the application UI.
My app also receives and displays push notifications from the server whenever a given row is updated. Currently, when a user clicks the push notification, I can trap the event (logging to the console for now).
We need to be able to navigate the user to the detail view when they click the notification for a given record update. How do I accomplish that?
I am sending in the detail record id (and can send other data elements or some sort of a URI), but since my detail record view is expecting a fully formed object, I am not sure how to make this happen.
I would appreciate any insight / guidance that the community can offer me. I have been searching around and have not found anything relevant so far. Thanks.