Hi
Is there a way that we can set the parameter value back to UNINITIALIZED? (using action or qaction or anything else?)
Thanks
Mark
Hi,
It depends on what needs to be set to "Not Initialized".
-If it's a single parameter then execute the Actions of Type "clear" and also "clear on display" on the parameter.
-If it's the cell of a table then from a QAction perform a NotifyProtocol NT_FILL_ARRAY_WITH_COLUMN (220) with a null value for that specific table cell. Note that then the column type of that parameter needs to be of type "retrieved"
Hi Miaio,
The protocol Action should be able to do what you want. Inside the action, you need to use the Protocol.Actions.Action.Type set to clear and Protocol.Actions.Action.On set to parameter.
An important note in the DataMiner Development Libary is:
If you perform a “clear” action on a parameter, you must also perform a “clear” action on the response in which that parameter is used. In case of a table parameter, the memory is also cleared client-side. There is no need to add a “clear on display” to see the result. If the parameter is not a table parameter, the memory is not cleared client-side. In that case, the extra action will be needed.
Example
<Action id="899">
<Name>ClearParameter</Name>
<On id="800">parameter</On>
<Type>clear</Type>
</Action>
As I think your question is about a stand-alone parameter, and not a table parameter, I just want to add the following example to Jarno's answer (which should be fine if you are working with table parameters):
In case of a stand-alone parameter you'll want to add the following action too. Otherwise, you won't see the result of the clear action:
<Action id="899">
<Name>ClearDisplayParameter</Name>
<On id="800">parameter</On>
<Type>clear on display</Type>
</Action>