Hello All,

I am able to filter my aggregate based on the multiple options in the listbox and display the outcome using a record list in my screen. But, I couldn't find the way the maintain/remain/persist the selected options in the listbox from being cleared by the screen's Preparation / the Reset action. I have tried making it into a Session variable of List data type and also making it into a local variable but they are not I wish to have. 


Can anyone suggest a way of achieving it? Kindly refer the attached oml for your reference.

Thank you very much :)


Scenario 1: Filtering based on multiple listbox options works well, no issue. Refer scenario 2 for the issue.


Scenario 2: Listbox options gone when clicking the same screen from the menu bar / reloading the screen.


Solution

Hi ZQ,

Using an index() function within the Aggregate node is not a good practice: https://www.outsystems.com/forums/discussion/53735/how-do-i-perform-in-operator-in-aggregate/#Post215098


Check this:  MoviesMultiSearch Demo Screen

- Observe the GetMoviesList aggregate boolean ad-hoc attribute logic

- Observe the GetMovies aggregate filter section


PFA - includes .oml solution file


Hope this helps you!


Regards,

Benjith Sam

Solution

Benjith Sam wrote:

Hi ZQ,

Using an index() function within the Aggregate node is not a good practice: https://www.outsystems.com/forums/discussion/53735/how-do-i-perform-in-operator-in-aggregate/#Post215098


Check this:  MoviesMultiSearch Demo Screen

- Observe the GetMoviesList aggregate boolean ad-hoc attribute logic

- Observe the GetMovies aggregate filter section


PFA - includes .oml solution file


Hope this helps you!


Regards,

Benjith Sam

Hi Benjith,


Nice demo there ! Thank you for your suggestion :)

 


ZQ wrote:

Hi Benjith,

Nice demo there ! Thank you for your suggestion :)

You are welcome, ZQ :)

Glad I could be of help!


Regards,

Benjith Sam