OPALE - 10.0 - Usage

Dynamic tables

De MappingDoc
Révision datée du 17 juillet 2019 à 11:44 par Alestoquoi (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Autres langues :
English • ‎français

STEP BY STEP GUIDE: HOW TO CREATE A DYNAMIC TABLE

A dynamic table is a table which adjusts it size according to its content. The content increases or decreases depending on the input spooled file.

In the following example, the table you want to create displays the data of the table that is in the spooled file. The latter looks like the one below:


    ! Name                         !  Ref.  !  Quantity  ! Unit price excluding tax !  Price excluding tax  !                                                                                                                                                                                                                                                                                        
    ----------------------------------------------------------------------------------                                                                                                                                                                                                                                                                                        
    ! MuVo V200 - 1024 (white)     ! 004708 !        4   !                   154,00 !     616,00   !                                                                                                                                                                                                                                                                                        
    ! Stores up to 16 hours (3240 t!        !            !                          !              !                                                                                                                                                                                                                                                                                        
    ! Radio included with 32 preset!        !            !                          !              !                                                                                                                                                                                                                                                                                        
    ! Composed of two modules, with!        !            !                          !              !                                                                                                                                                                                                                                                                                        
    ! Flash drive 2.0              !        !            !                          !              !                                                                                                                                                                                                                                                            
    ! Microphone integrated to reco!        !            !                          !              !                                                                                                                                                                                                                                                                                        
    ! LCD screen blue backlighting !        !            !                          !              !                                                                                                                                                                                                                                                                                        
    ! Customed 5 tapes equaliser   !        !            !                          !              !                                                                                                                                                                                                                                                                                        
    ! Capacity: 1 Go               !        !            !                          !              !
                                                                                                                                                                                                                                                                                                                  ----------------------------------------------------------------------------------------                                                                                                                                                                                                                                                                            
 
    

GENERAL PRINCIPLES

  • Always use spaces BEFORE by default
  • Put spaces AFTER only if you want extra space below the line
  • The size of vertical lines and rectangles must be: space BEFORE + space AFTER
  • Small vertical lines must be shifted in ordinate, Y: "- space BEFORE"
  • Rectangles must be shifted in ordinate, Y: "+ space AFTER"

CREATING A VARIABLE GROUP

First create a variable group which defines the beginning and end lines of the table. (The beginning line contains the word "name" and the end line contains the characters "-" and "!" line -1 and "!" line -2).

Create a variable group:


BEGINNING CONDITION

In the group properties, select "type of stop condition" in "Condition". A drop down menu will appear in the group conditions: "Beginning of the group" and "End of the group"

END CONDITION


The data page included in the group is displayed in blue below:


DISPLAYING THE CONTENT OF THE TABLE

At this point, the group has a beginning and end, but it does not display anything because no zone was placed inside of it.


ALL THE LINES OF THE GROUP

Here is a preview of the table:


MANAGING HORIZONTAL LINES

On the preview above, horizontal lines are discontinuous. To solve this issue, add a horizontal line that is conditioned according to the presence of the line in the input file. This line should only appear if you are on the dashed line.

Here are the properties of the horizontal line you created:

3.jpg


Here is a preview of the table:


MANAGING VERTICAL LINES

Columns are missing on the preview above. To add some, add a vertical line, with height space before + space after, which is applied to all lines with the condition "none" and an ordinate shift, Y "- height of the line"


This preview shows that the line above each horizontal line is missing. To add it, add a vertical line and apply the horizontal line condition "LINE" (Copy-paste the lines above and apply the condition "LINE")


Here is a preview of the table at this point:


MANAGING THE HEADER LINE

To highlight the header of this table you want to underline it in grey and format the content so that it is in bold. To do so, draw a rectangle with a height space before + space after and condition it according to the header line (Condition: HEADER).


Here is a preview of the table once this is done:

The column names are missing. The only objects that display the content of the spooled file are the zones (blue), and these zones are conditioned to "None". The line now "belongs" to the condition "HEADER". To solve this problem, add zones conditioned according to "HEADER".

You now need to delete the extra line which is coloured in yellow here. This line comes from the vertical lines conditioned according to the horizontal lines. We still need these to manage vertical lines linked to the horizontal lines in the center of the table (the latter are coloured in yellow below).

However, you must not take the first horizontal line into account (in red here). This line is displayed no matter what because of the rectangle.

To do so, create a zone that does not display anything, with 0cm space before and after. The line will disappear (be overwritten).

The line LIGNE_SUPPR is configured as follows:

20.JPG

All there's left to do is align numbers to the right.  

OUTCOME

Page 1:

20.JPG

Page 2:

18.jpg

Page 3:

19.jpg

This table is completely dynamic as it adapts to its content.