Hi Dojo,
is there a way to clear element's data and set everything to the initial protocol settings (clear saved data, set parameters to protocol defined default values, etc.)?
Thanks
Hi Alija, Can you please elaborate on the use-case for this? In which situations do you want to “clear” all data?
As Miguel suggest, the manual route would indeed be to duplicate and remove the original one.
Recreating element is of course one of the available options. In my case, it would mostly be used for a testing purposes, and the most frequent case in which I needed this so far was to find if data present in element is only a saved data, or it is fetched from the data source represented there, that in case of corrupted/unexpected data entries, confirms whether the data is there due to protocol failure to clean it or corrupted data received from the device.
Hi,
As far as I am aware there is no out-of-the-box way of "resetting" an element.
The only way I could see to do this would be to use the action of type clear | DataMiner Docs on all parameters but it would require you to specify every parameter as a target of this action.
If this is just a development need the easiest way would be to just duplicate the element.
However, if this is something that is needed for a production scenario and it is something that would be done somewhat frequently I would advise reworking the connector and potentially implementing a QAction or Automation Script that would serve as a template to apply to the element and work as a clean slate.
Not actually needed for production scenario, except for checking data consistency, so it is not an option to go for a custom solution for a certain protocol. Anyway, custom Automation Script could be an option for this as well, as it can be applicable for any protocol.
To check for data consistency you should probably do something like IDP configuration management where you can have a “golden configuration” that you can then compare to your running configuration and know whether or not it is in a good state.
See: https://community.dataminer.services/courses/kata-26/
Also, regarding the script approach you will either need to have some files that you manually configure or try to do a “smart script” that parses the protocol for the element in question and does the correct commands for each parameter.
Hi Alija,
Is it an option to recreate the element? You could duplicate the existing element and remove the original one.