Hi,
I am getting list of products by using the below url.
https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZCD204_EPM_DEMO_SRV/Products?sap-ds-debug=true
When I click on selected Product I am getting the Product Detailed Information along with the Image.
Below is my code to navigate to detail page when click on selected Product.
productListTap : function(oEvent){
var oBindingContext = oEvent.getSource().getBindingContext();
var sTitle = oEvent.getSource().getTitle().split(" ").join("");
sap.ui.getCore().getEventBus().publish("nav", "to", {
viewName: "view.Product_Details",
viewId: "detail." + sTitle,
data: {
bindingContext: oBindingContext
}
});
},
Below code is to display Details
I am getting the image of the product when doing like this.
Please suggest me to get the Product Id dynamically without doing Hard code which is mentioned in box in image.
Thanks&Regards
Sridevi