Hello everyone,
I am looking to enhance my application's functionality by implementing a dropdown tag feature to add multiple roles to an employee where applicable. Currently, an employee has one mandatory role when added to the database, but some employees can have multiple roles.
To achieve this, I have been using two dropdowns to allocate the roles, but I believe it would be more streamlined and easier to manage if I could use a dropdown tag feature instead. This would also make it easier to add additional roles in the future without the need to modify the form.
I would appreciate it if someone could advise me on whether this feature is available out-of-the-box in OutSystems or if I need to use a component from the Forge.
To help with understanding my requirements, I have attached a simple OML file.
Thank you for your assistance.
I believe I have found a solution that suits my needs. After spending several hours experimenting and trying out different methods, I am pleased to report that it is now working as intended.
For those who may be interested in pursuing a similar project, I have attached the OML file for reference.
I want to express my gratitude to everyone who provided their assistance and advice along the way. Thank you all.
Hi André Smit,
Please check this link and develop your case.
https://www.outsystems.com/forums/discussion/66978/adding-multiselect-feature-in-dropdown/
Thanks,
Ramesh
Hello André Smit,
OutSystems UI provides you a dropdown tags widget. I believe you don't need to use any component of the forge. You can check the following documentation links:
If you need to control how many tags you need to display, follow the suggestion explained in this idea:
Best regards,
Ana
Hi @Ramesh Subramanian and @Ana Agostinho, thank you for your helpful replies.
However, I have reviewed the example you provided and it does not fully meet my requirements.
I need the following functionality: if a user has selected two roles and two tags, both of the corresponding attributes (Primary Role and Alternative Role) in the entity should be populated with the selected values.
But if a user has only selected one role, then only the Primary Role attribute should be assigned a value in the entity, while the Alternative Role attribute should be null.
I hope this clarifies my requirements. Thank you for your assistance.