Hello,
I am currently working on an OutSystems Web App and have the following scenario:
I have three entities:
Product – contains general information about the product.
ProductCategory – each category belongs to exactly one product, but a product can have multiple categories.
ProductCategoryFeature – each feature belongs to exactly one category, but a category can have multiple features.
My goal is to display the following on the Product Detail page:
A list of all categories for the selected product.
Directly under each category, the associated features should be displayed, creating a nested list (Category → Features).
Additionally, I want to allow:
Adding new categories directly via a button.
Adding new features under the respective category via a button.
After creation, the new categories/features should appear immediately without reloading the page.
Switching the positions of the features with arrows
My question: How would you best model this nested structure with features per category in OutSystems ODC? Are there any best practices for performance, especially if there are many categories and features?When I tried to do it with an aggregate and a filter, witch filters the current CategoryId, it just displayed the features of the first list item under every list item.Thank you!
--Benni
Hi @Benjamin SalaAs per my understanding ,implement your requirement with accordion widget and try to build in block.
i refer link related to Accordion.
https://success.outsystems.com/documentation/11/building_apps/user_interface/patterns/using_traditional_web_patterns/content/accordion/?
Hi @Benjamin Sala ,
If you need to display a list within another list, you can use a block for the inner list. The main list would show the categories, and inside each list item, you would insert a block with the current category ID as an input parameter. Inside that block, you can use an aggregate to fetch and display the features filtered by the CategoryID.
Thanks. It works now!! :)