Repetitive containers handle data in "detail" format. Multiple items can be grouped and added or deleted.
Figure 1 shows a screen prepared with repeating containers.
Repeat containers can be added in groups (rows).When you click "Add" button, it will be added under the current line.(FIGS. 1 and 2)
You can insert a line by pressing the "insert" button.(FIGS. 3 and 4)
You can delete a line by pressing "Delete" button.(FIG. 5, FIG. 6)
First of all, we prepare repetitive container type items.
After that, define the items included in the repeating container continuously.The item ID is as follows.
Container ID + "/" + Item ID
Be sure to prepare the "repeating container ID" directly under the repeated container type item.In Figure 7, "No" is equivalent to this.
If there are many columns, depending on your browser, up to 4 columns may be displayed and the 5th and subsequent column displays may be collapsed. Adjust the appearance by specifying the width of each column.
The "repeating container ID" item is absolutely necessary.Also, this item can not be hidden.The "Add" and "Delete" buttons are displayed on the registration/update screen.
You can hide Container ID values "1", "2", ....For details, please read "Hide Container ID".
Repeat containers are divided into separate tables.(It will be 1: N relationship.Therefore there is no upper limit on the number of data that can be registered.
The name of the generated table is "model name $ (repeating container) item name".The naming convention for this table is fixed.
Columns named "<container name> jshid" are prepared by default as "repeating container ID".Type is integer type.
You can specify the physical column of this "repeating container ID".