I have a QAction that clear some tables but also need to clear some single parameters (= put back on Not Initialized). How can I achieve this?
Hi Jens
This can be done by using the protocol.CheckTrigger() method. This will trigger the Trigger which will run 2 actions.
<Trigger id="20">
<Name>Clear Parameter 1</Name>
<Type>action</Type>
<Content>
<Id>20</Id>
<Id>21</Id>
</Content>
</Trigger>
<Action id="20">
<Name>Clear Parameter 1</Name>
<On id="1">parameter</On>
<Type>clear</Type>
</Action>
<Action id="21">
<Name>Clear On Display Parameter 1</Name>
<On id="1">parameter</On>
<Type>clear on display</Type>
</Action>
Note that you can also use the action to clear the table as well.
For clearing tables, there is no need to do a “Clear On Display” as we need for single parameters.
It is possible and allowed to clear both the table and the standalone parameter with the same Clear Action. You can simply refer to both by using parameter
Please have a look at the DDL for more information: Clear:
https://help.dataminer.services/development/DataMinerDevelopmentLibrary_Customer/part3MarkupLanguage/MARProtocolActions/Protocol_Actions_Action_Type.htm?rhhlterm=Actions.ActionClear&rhsyns=#XREF_63215_clear
And to reference multiple parameters in the same action: Attributes ID:
https://help.dataminer.services/development/DataMinerDevelopmentLibrary_Customer/part3MarkupLanguage/MARProtocolActions/Protocol_Actions_Action_On.htm?rhhlterm=Onid101214parameterOn&rhsyns=