0

I have created tabs using lightning tabset. I wanted to refresh the component whenever the tab is changes. I tried using $A.get("e.force:refreshView").fire(); in tabset onselect event. But it is not working as expected. Can someone help me how to refresh the component whenever tab is changed... Thanks in Advance.

Here is the tabs I am using

2 Answers 2

0

I believe these are custom Aura component inside the lightning:tabset.

And you want to fetch new data from database on select of the active tab? If this is the case, firing $A.get("e.force:refreshView").fire(); wont help. This just refreshes the standard components data.

What you can do is <lightning:tabset onselect="{! c.handleSelect }" variant="scoped"> use onselect to fire your apex action again, orelse you can have a refresh button to call the apex action again to refresh the data in the custom aura component.

1
  • Thanks for your help...
    – User2805
    Jul 8, 2021 at 12:36
0

"onselect" is not possible atm. Try "onactive" attribute for lightning:tabset.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .