23
Views
3
Comments
Solved
How to filtering agregate based on Navigation tab selected
Question
Application Type
Reactive

Hi!!

Please, I have an agregate of Tasks. I would like to use only this one on my screen (if is possible). My idea was refresh it considering navigation tab selected.

I created a local variable and I'm setting a value to filter on my agregate. But it doesent working. Inside agregate is working, but on my navigation, no result is returning.

Is it possible to work with only one agregate or do I need an agregate for each tab?



ConfigurationNavTAB.png
2022-07-22 08-49-20
Laura Fidalgo
Solution

Hi @Elaine Guimaraes ,

You should be able to use only 1 aggregate for this, yes.

Are you certain that your aggregate is being refreshed, and that your local variable is changing values when you change tabs?

Did you debug to see what's happening?

Cheers!

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi @Elaine Guimaraes,
 
Yes, you can use one aggregate for this.
Just make sure the local variable(which is used in aggregate as filter) is assigned & the aggregate is refreshed after assignment at OnTabChange.

Regards
Krishnanand Pathak


2022-07-22 08-49-20
Laura Fidalgo
Solution

Hi @Elaine Guimaraes ,

You should be able to use only 1 aggregate for this, yes.

Are you certain that your aggregate is being refreshed, and that your local variable is changing values when you change tabs?

Did you debug to see what's happening?

Cheers!

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi @Elaine Guimaraes,
 
Yes, you can use one aggregate for this.
Just make sure the local variable(which is used in aggregate as filter) is assigned & the aggregate is refreshed after assignment at OnTabChange.

Regards
Krishnanand Pathak


2023-06-17 23-16-53
Elaine Guimaraes

It works! 

Thanks guys, my mistake wan on StartIndex of agregate. It was on 1.


Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.