Category-SubCategory

0
Good evening, team! I have an entity called "Category" that includes multiple sub-categories. In this scenario, I have a main category (A) with sub-categories named b, c, d, e, and so on. Now, I want to create a new category called "Category (B)" and have the main category (A) and its sub-categories placed under Category (B). I have implemented logic to fetch all sub-categories, but I am encountering difficulties in getting the main category (A) to appear under Category (B). Do you have any suggestions to help me with this issue?
asked
1 answers
0

Hi Selcuk,

 

You can do this bt creating a self reference. 

https://docs.mendix.com/refguide/query-over/

 

The Category_Overview page I created

 

 

With the following settings:

The outer Grid2:

 

The inner Grid2:

 

The DS_Category:

 

 

The Action:

 

Result:

 

Go Make It

answered