Mark/Unchecks items from a list to another list
This pattern allows you to add or remove items to another list when they belong to tables (N: N). This means you can insert multiple records between tables whose relationship is N: N.
Topics
First of all, you should implement the model into Genio;
- Create the independent tables (PRODUCT and CART)
- Then, create the (N:N) table (PRCAR - Product in a cart)
After the model implementation, you can take advantage of the (N: N) relationship to implement the menu control.
Goal: We want to select or uncheck products from all products list and insert them into the selected cart. The menu structure should be similar to the image below:
Implementation
- Insert a simple menu to label the menu entry;
- Then, insert a new menu and choose the "Mark items From List to" or "Uncheck items From List to" (depending on the goal purpose);
a. Add the product list;
b. Add the list (N: N) in the field for this purpose;
c. Add desired columns;
- After saving the menu, add a new menu type "List" in this new menu branch;
a. Add the card list;
Browser rendering
- Select the products that you want.
- Select the specific cart to place the products
a. (You can see the selected products listed below carts)
- To place the products on the selected cart, click the "Apply" button.