DatalogGrid
With the aid of this component it is possible to display the values of one or more Datalogs in the memory in a grid, scrolling the content using buttons positioned at the side.It publishes the following properties:
- fontGrid: font used for data inside the grid
- fontTitles: font used for the titles of the grid
- nrows: number of rows to display in the grid (default = 10)
- colSizes: allows to control the displayed columns width (default: width divided in even parts). Insert here the width percent for each column, comma separated. Example: 10,30,50,10,5 Note: the last column always takes the residual space, from the sum of the previous columns width. On the other way, it’s possible to use the exact size (in pixels) for each column, by specifying the character ‘#’ before the list. This way could be convenient in case of use of the property hScrollSize. Example: #80,70,135,28,115
- hScrollSize: allows to specify the width of the internal area, dedicated to the table visualization (in pixels). If greater than the real available size, a horizontal scrollbar will be displayed, allowing to get visible the desired table portion.
- datalogs: list of the Datalogs to display as columns in the grid
- datalogsTitle: list of titles to assign to the columns. Note: the columns are always “number of datalogs” + 2, insofar as the first two columns on the left will contain “date” and “time”. Consequently, the titles to specify in this property must have 2 strings more in the first 2 positions, to display “date” and “time”.
- refreshTime: automatic time for refreshing the grid, in seconds. If = 0 is deactivated and the grid is drawn the first time only. The data contained can be updated by pressing the “refresh” button (the central button of the scroll bar) or by scrolling up/down.
- sortMode: allows to select the data ordering mode (ascending = older first; descending = newer first)
- formatDateID: allows you to customise the sampling date format, using a formatting string. Customisation takes place through a string with dynamic parameters. Default value (used with value “[none]”): %14/%15/%8 (example: 15/07/2010) The following parameters are available: %6 : is replaced by the indication of the day [1..31] %7 : is replaced by the indication of the month [1..12] %8 : is replaced by the indication of the year in four figures %9 : is replaced by the indication of the year in two figures %14: like %6 but with zero to the left if necessary %15: like %7 but with zero to the left if necessary %16: like %9 but with zero to the left if necessary
- formatTimeID: allows you to customise the sampling time format, using a formatting string. Customisation takes place through a string with dynamic parameters. Default value (used with value “[none]”): %10:%12:%13 (example: 22:51:48) The following parameters are available: %1 : is replaced with the hour [0..23] %2 : is replaced with the hour [0.12] %3 : is replaced with AM or PM %4 : is replaced by the indication of the minutes [0..59] %5 : is replaced by the indication of the seconds [0..59] %10 : like %1 but with zero to the left if necessary %11: like %2 but with zero to the left if necessary %12: like %4 but with zero to the left if necessary %13: like %5 but with zero to the left if necessary
- startMarker: string to be used when it is necessary to indicate the sampling START moment in the report. Default value (used with value “[none]”): “START”
- stopMarker: stringa da utilizzare quando nel report è necessario indicare l’istante di STOP del campionamento. Default value (used with value “[none]”): “STOP”