Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3347

Dynamic Binding of Smart Table

$
0
0

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 loaded but if I refresh the page then the new data is loaded.

 

Below is my code :

onCallBackRouteMatched: function(oEvent) {

  if (oEvent.getParameter("name") !== "secondPage") {

  return;

  }

  entity= oEvent.getParameter("arguments").entitySet;

  oTable1.setEntitySet(entity);

  oTable1.setHeader(entity);

}

 

Please help me with this.

 

Thanks,

Mansi


Viewing all articles
Browse latest Browse all 3347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>