Hello everyone,
I'm a prety new on OutSystems development and I'm facing some difficulties implementing certain features in my application. Specifically, I have two main questions:
I believe I've set up the one-to-many relationship correctly between my tables, but how can I save the selected options from a multi-select dropdown search (in this case, the 'Repository') and display them concatenated or listed in the same row on the main screen table?
Additionally, could someone guide me on how to implement an "Advanced Filters" feature on my initial screen that allows filtering the table based on multiple simultaneous selections from the dropdown searches of 'Repository', 'Commentary', and 'Email', if necessary?
Also, my Client Actions are practically empty because I am not sure what logic or parameters I should pass inside them.
I would greatly appreciate any guidance or examples. I've attached the OML file to this post for your reference.
Thank you very much in advance!
Ok.
I changed a few things.
First, I changed the database to be like the diagram. Then I fixed all the errors by pointing to the new attributes. Now, to the dropdowns.
You are using the Commentaries table to feed the dropdown, you need dedicated Aggregates for each, with Distinct.
And variables to store the selected filter OnChanged.
You then use all those filters on the main aggregate.
Nuno, thank you so much for all your help so far.Just one last question: how can I display the multiple selected repositories on the main page?
I would make a block for it. You pass the CommentaryId, obtain all the Repository labels.
You can then display it in tags in a horizontal list.
Hello and welcome.That's a lot of questions! But lets start from the beginning.Your diagram is a N-N relationship. A Repository can have multiple Commentaries and vice-versa.
You need to change a few things. You want all the information to be on the commentary and allow multiple Repositories?
Thanks for the reply, Nuno.
Yes, that’s exactly it, I need to have multiple repository records linked to a single commentary. I didn’t express myself clearly before.