Creating a table

 

Creating a table

We are now going to create a table containing the name and description of the associations for which the current class has a navigable role.

 

This procedure is illustrated in Figures 48 to 52.

 

Steps:

1.      Select the “Class chapter” section.

2.      Click on the  icon.

3.      Select “Table” from the list of possible production nodes and confirm by clicking on “OK”.

4.      Change the name of the new table by simply selecting it, clicking on it once and entering the name “Table of navigable associations”.

5.      Define the “Title” property of the new table by entering the following information in the “Value” field associated with the “Title” property: "Associations" (please note that the double quotes are mandatory). For more information on entering J code, please see “Inserting J code”.

 

Figure 48. Creating a table

 

Continue by carrying out the steps shown in Figure 49.

 

Steps:

1.      Select the “Table of navigable associations” table.

2.      Click on the  icon.

3.      Select “Group” from the list of possible production nodes and confirm by clicking on “OK”.

4.      Define the “Number of columns” property of the new group by entering the following information in the “Value” field associated with the “Number of columns” property: "2" (please note that the double quotes are mandatory).

 

Figure 49. Creating a group

 

The next steps in the creation of our table are illustrated in Figures 50, 51 and 52.

 

Steps:

1.      Select the “Group” group.

2.      Click on the  icon.

3.      Select “Table body” from the list of possible production nodes and confirm by clicking on “OK”.

 

Figure 50. Creating a table body

 

Creating the first line of the table

Steps:

1.      Select the “Table body” table body.

2.      Click on the  icon.

3.      Select “Row” from the list of possible production nodes and confirm by clicking on “OK”. This will create the header line.

 

Figure 51. Creating a row

 

Steps:

1.      Select the “Row” row.

2.      Click on the  icon.

3.      Select “Cell” from the list of possible production nodes and confirm by clicking on “OK”.

4.      Define the value of the “Value” property by entering the following information in the “Value” field associated with the “Value” property: "Name" (please note that the double quotes are mandatory).

5.      Repeat steps 1-4, but this time enter the following information in the “Value” field associated with the “Value” property: "Description".

 

Figure 52. Creating cells

 

Creating the other lines of the table

Continue by carrying out the steps shown in Figure 53, and then finally the steps listed after this figure.

 

Steps:

1.      Select the “Table body” table body.

2.      Click on the  icon. The “Create a navigation node” window then appears.

3.      In this window, select “Navigable roles” from the list and confirm by clicking on “OK”.

 

Note:      Don't forget that in the "Navigation" dialog box, some elements in the tree can have sub-elements.  This is the case for the "Roles" element, which contains the "Navigable roles" sub-element.

 

Figure 53. Creating the “Navigable roles” navigation node

 

Continue by carrying out the following steps:

1.      Select the “Navigable roles” navigation node that you created in Figure 53.

2.      Click on the  icon.

3.      Select “Row” from the list of possible production nodes and confirm by clicking on “OK”.

4.      Select the “Row” row you have just created.

5.      Click on the  icon.

6.      Select “Cell” from the list of possible production nodes and confirm by clicking on “OK”.

7.      Define the “Value” property of the cell by entering “Name” in the “Value” field associated with the “Value” property. Please note that “Name” should be entered without double quotes before and after it. For more information on entering J code, please see “Inserting J code”.

8.      Repeat steps 4-7, but this time enter the following information in the “Value” field associated with the “Value” property: getNoteContent ("description"). For more information on entering J code, please see “Inserting J code”.

 

The result of all these operations is shown in Figure 54 below.

 

Figure 54. The documentation template we have built so far