01_user_documentation:05_object:06_references:03_datasets
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:05_object:06_references:03_datasets [2025/08/15 16:47] – [Cleaning] Tim | 01_user_documentation:05_object:06_references:03_datasets [2025/08/15 18:20] (current) – [Add several values to one cell] Tim | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| ===== Adding data ===== | ===== Adding data ===== | ||
| + | Adding data to the referenced dataset can be done in two different ways, either by using java functions or with overloaded operators. | ||
| + | With java a row is added with addRow and then the data for the cells is defined with set(< | ||
| + | |||
| + | <code java> | ||
| + | dataset(" | ||
| + | dataset(" | ||
| + | </ | ||
| + | |||
| + | Additionally with getRow(< | ||
| + | |||
| + | |||
| + | The other way to do this would be to use the << operator to push data in to the dataset: | ||
| + | |||
| + | <code java> | ||
| + | dataset(" | ||
| + | dataset(" | ||
| + | </ | ||
| + | |||
| + | In this way the first pushed value is added to the first column and so on. | ||
| + | |||
| + | ==== Add several values to one cell ==== | ||
| + | |||
| + | To add more values(up to three) to one cell the set function can be used with more values: '' | ||
| + | |||
| + | Or using the operator: | ||
| + | |||
| + | <code java> | ||
| + | dataset(" | ||
| + | </ | ||
| + | |||
| + | ===== Exporting ===== | ||
| + | |||
| + | Using rgg datasets can only be exported to csv like formats using the export function: | ||
| + | |||
| + | <code java> | ||
| + | dataset(" | ||
| + | </ | ||
| + | |||
| + | By default this creates a file with white spaces as separators, if another separator are needed it can be defined as a second parameter '' | ||
| + | |||
| + | An additional version of the two function exists with a StringBuffer as a first parameter. | ||
| + | |||
| + | |||
01_user_documentation/05_object/06_references/03_datasets.1755269263.txt.gz · Last modified: 2025/08/15 16:47 by Tim
