Hi Experts,
I have a view with radio buttons and a submit button. My requirement is that when I choose one radio button and click on Submit, the relevant entity should be loaded in Smart Table. So for that I have created a Smart Table in a view and in the handle route matched method, used setEntitySet method with the entity that is being sent from first view's selected radio button. Now my problem is that it works for the first time but when I change the radio button still it shows the old data, some how new entity is not being refreshed.
Below is my code :
onCallBackRouteMatched: function(oEvent) {
if (oEvent.getParameter("name") !== "secondPage") {
return;
}
entity= oEvent.getParameter("arguments").entitySet;
oTable1.setEntitySet(entity);
oTable1.setHeader(entity);
}