4
Views
2
Comments
Solved
Block is not refresh when Tabs changed

I have a page to show different status in tabs group, which will call block with task filter by status.

It have All tickets (calling otherwise), New, In Progress and completed

Default is All tickets and going to different tab in this order work , Complete > In Progess > New

But if I go to New or Inprogress first, block does not load. As you can see in the screenshot local value did get updated.  I really couldn't figure out why. Could someone help?

I have attached oml file. 

TaskManagement.oml

Rank: #86
Solution

Hello Constance,

Hope you're doing well.


Checking on your code, you have a mismatch between TabsHeaderItem widgets (4) and TabsContentItem widgets (3):

Usually, when you're using Navigation\Tabs, you should have the same number of TabsHeaderItem widgets and TabsContentItem widgets, so they can match with each other (a TabHeaderItem corresponds to a TabContentItem).


Another thing that I can see is that your TaskTable Block is only inside the Content placeholder for the first TabsContentItem. The others are empty, so it's normal that it doesn't appear when you change Tab.


In your scenario, the correct usage of this Pattern would be indeed to add a TabsContentItem widget (in order to match them with the Headers) and place your TaskTable Block (or the content that you pretend) inside of each of the TabsContentItem's Content placeholder:


Please refer to attached OML with these changes.


Hope that this helps you!


Kind regards,

Rui Barradas

TaskManagement.oml

Rank: #6955

Thanks so much. It's now working. 

I actually thought different content is actually to add other info...