I came across a requirement in Master Detail template that when the user press an item in master page, item details should come in the smart table.

I have implemented the same scenario with sap.m.List and smart table controls using Northwind OData service to share with you in our community.

view.xml

controller.js

Initially I am fetching all the item details through the entityset binding in smart table. When the user presses the order number, I am doing this.getView().byId(“LineItemsSmartTable”).rebindTable(true); in onListItemPress which calls the onBeforeRebindTable method written in the controller above.

Output:

Hope this helps someone around the community.

Thank you!!
BR// Dhanasupriya Sidagam

#EnhanceLearning

Tags: SAPUI5
Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x