Enum within an enum with the help of checkboxes

0
I am trying to achieve the following :   There are 3 groups : A, B, C  (the idea is to create these groups using Enums and use them as checkboxes in Mendix)   If the user selects group A, then all the subitems (A1, A2, A3) within group A should be selected by default. These items should appear only if a group is selected.    Q1: How do we add checkboxes for group A, B, C ? ( since these are enums, is it possible?) Q2: If suppose group A is selected, How do we display the values (A1, A2, A3, A4) from group A as another set of checkboxes.   I would like the UI to be seen as below:  
asked
2 answers
0

Hi Greshma,

 

A workout might be as follows:

 

1- On a page put dataview of the main entity ( Product group in your case )

 

2- Layout grid of 4,4,4

 

3- List view to each other with xpaths of enum ( for each grid one of the groups can be shown) , adjust the list view as you want

 

4- Under each list view put a checkbox

 

5- Add an attribute named isShown etc. boolean  (default false) to the second entity (Product in your case)

 

6- Check box change event > call microflow > retrieve the products of that enum and change all isShown to true.

 

7- Put another list view of the second entity under the 4,4,4 grid with an xpath of isShown true.

 

8- If you want to use checkboxes with the second entity, just repeat the steps (with different events)

 

Here you are, I hope that works for you.

 

 

answered
0

Hi Greshma,

Please see this quick example, each list view should have an xpath to shown expected enumeration of product groups.  You can adjust the contents of the listviews and add on change event to the check boxes.

 

Ferhat

 

 

 

answered