...
Since 2020.02 it is possible to edit sample values directly from the sample viewer. To enable this the sampleViewer needs it its own configuration file with <enableEditor>true<with <enableEditor>true</enableEditor>. It is also possible to set a permission on the editing of sample data.
Code Block | ||||
---|---|---|---|---|
| ||||
<sampleDisplay xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/sampleDisplay.xsd"> <enableEditor>true</enableEditor> <permissions> <editorPermission>beheerders</editorPermission> </permissions> </sampleDisplay> |
Make sure to also point towards this display in the explorer tasks with the same display config file name als the Sample Display config:
Code Block | ||||
---|---|---|---|---|
| ||||
<explorerTask name="Monsterweergave"> <iconFile>sample.png</iconFile> <mnemonic>M</mnemonic> <displayConfigFileName>SampleDisplay</displayConfigFileName> <toolbarTask>true</toolbarTask> <menubarTask>true</menubarTask> <accelerator>ctrl M</accelerator> <loadAtStartup>false</loadAtStartup> </explorerTask> |
When this is configured correctly there will be an extra right mouse menu option to delete a row from the sample:
And also extra also an extra right mouse menu option to edit either the value of the time series or edit the value of a valueProperty:
...
An important thing to keep in mind is that deleting a value from the sample viewer cannot be undone via the sample viewer, but setting the value to a missing will.
Since 2022.01 the option "Delete selected record until reimport" has been added, that also gives the possibility to reimport (an updated value of) this record.
Delete samples
Since 2021.02 samples can be deleted via the right mouse menu, this will also delete all values belonging to the sample.
...
The comment column will appear automatically when at least 1 comment is present.
Flags
Since 2021.01 flags are automatically shown (if present) in the Quality column, unreliable values are shown as missing in the Sample Viewer, but the value (if not a real missing) can be exported from the database:
History
Since 2021.01 the option to show the history of a value is also added to the right mouse menu
...