Hello,
I am getting Code 2.37.9 Invalid value 'read' in Param/Type for 'togglebutton' from the DIS Validator. According to https://skylinecommunications.github.io/Skyline.DataMiner.CICD.Validators/checks/Validator/Protocol/Params/Param/Measurement/Type/CheckTypeTag/Validator_2_37_9.html this should be set to 'write' or 'writebit'.
I have read and write Params for each togglebutton, for example in the screenshot, Param ID 44 is the setter for Param ID 43.

DIS Validator however reports that Param/Type>read</Type is an invalid value for Param ID 43.

A Param of Measurement/Type togglebutton with Param/Type 'write' is also considered invalid if the read parameter is missing. For your information, I did add these togglebuttons using the Snippet Wizard.
What am I missing?
Thanks for the support!
Hi,
A togglebutton type is only intended for a write parameter. The read parameter should have the measurement type discreet. Both read and write parameters are linked together because the value needs to be able to 'toggle' e.g., swich between values "Enabled" and "Disabled". A write parameter of measurement type togglebutton without a matching read parameter will not work because the read parameter value is needed.
Regards,
Hi Laurens,
just tried it out and indeed the Param is valid.
Thanks
The DIS validator is correct. It is mentioning that the read parameter has the measurement type togglebutton, which is only intended for write parameters. The measurement type of the read parameter should be discreet. An example of read and write parameter syntax with a togglebutton can be found here: https://docs.dataminer.services/develop/devguide/Connector/UIComponentsToggleButton.html
Hi Laurens,
Do you mean something of the sort
<Param id="43">
<Name>AuthScopesInUse</Name>
<Description>Include in Request (AuthScopes)</Description>
<Type>read</Type>
…..
<Measurement>
<Type>discreet</Type>
</Measurement>
</Param>
<Param id="44" setter="true">
<Name>AuthScopesInUse</Name>
<Description>Include in Request (AuthScopes)</Description>
<Type>write</Type>
…..
<Measurement>
<Type>togglebutton</Type>
</Measurement>
</Param>