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;

  1. Create the independent tables (PRODUCT and CART)
  2. Then, create the (N:N) table (PRCAR - Product in a cart)

product cart

assoationtable

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:

menutree

Implementation

  1. Insert a simple menu to label the menu entry;
  2. 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;

menumarkitems

  1. After saving the menu, add a new menu type "List" in this new menu branch; a. Add the card list;

menulist

Browser rendering

  • Product selection
  1. Select the products that you want.

browserproducts

  • Products placing on cart
  1. Select the specific cart to place the products a. (You can see the selected products listed below carts)
  2. To place the products on the selected cart, click the "Apply" button.

browsercarts