I'm trying to do something simple which is to clear the value of a parameter when the value of another parameter changes.
I want the parameter to be "Not initialized" rather than empty therefore i don't think this is possible from a Qaction.
I'm currently calling a trigger with two actions a "clear" and "clear on display"
After this executes the value of the parameter is set to "Not initialized" both in the client and server since if i do a GetParameter at this point null is returned.
The issue now occurs if i restart the element since this parameter has the save="true" the values before the clear come back and it shows both in the client and server.
Is there something else i need to do to clear the values in the database??
If the value does not need to be persisted between element restarts, then you should simply remove the save="true" from the element. This way the value will only be kept in memory but will not be saved to database.
Be careful with removing the save option on a parameter for a protocol with an existing element. This means that new value updates will no longer be pushed towards the database. The old/last value will still be in the database. On element (or DataMiner) restart the old/last value will still be returned and pushed back.
To overcome this, you can recreate your element. That way you start with a clean elementdata workspace for your element.
Another way is to manually remove the record from the ElementData table in the database. (Be careful when removing data from the DB)
Hi Brent, I do need the value to stay in case of a restart, I should have mentioned that.
I only want to set that parameter to “Not initialized” when another parameter changes and if I restart it should stay as “Not initialized”. I still want the original values to stay if a change was not detected, but an element restart takes place.