0
votes

I want to call a second View via the Targets function in my Detail View and also pass Data throught the first to the second View.

onListItemPressed: function(evt){
            var id = evt.getSource().getBindingContext().getProperty("PoNumber");
            this.getOwnerComponent().getTargets().display("MaterialDetailView", {
                data: id
            });
        } 

This works fine.

But I don't know how to get the passed Data in the second view and bind the data to the View. I can only find how to do it with a Route but I want to stick with the Target.

Any sugesstions?

1

1 Answers

0
votes

you can pass the data in the onRouteMatched function after you call the second view. And read the data than..