When using the client test tools using a GetParameterMessage I get this message back for a parameter with the parameter in the xml with these tags:
<Type>read</Type>
<Interprete>
<RawType>other</RawType>
<LengthType>next param</LengthType>
<Type>string</Type>
</Interprete>
<Display>
<RTDisplay>false</RTDisplay>
</Display>
<Measurement>
<Type>string</Type>
</Measurement>
</Param>
Does anyone know what's causing the error below?
Hi Ryan,
I noticed that your parameter has RTDisplay false. As far as I know the Client Test Tool can only retrieve data for parameters which have RTDisplay true
Only when RTDisplay is equal to true.
The attribute onAppLevel is something that we add to parameters that have RTDisplay equal to true but aren’t part of a table or have no position assigned. The reason behind this is that the DIS Validator complains about parameters with RTDisplay equals to true while it has no position (when used as standalone parameter) or isn’t added to a table (when used as column parameter). In that case we add the onAppLevel equals true attribute so that the DIS Validator will ignore the RTDisplay equals true on this parameter.
For more info: https://help.dataminer.services/development/#t=DataMinerDevelopmentLibrary_Customerpart2CodingGuidelinesCODProtocolLoading_parameters_in_SLElement.htm
Hi Ryan,
Please could you let us know the type of the parameter where are you trying to get the value (single parameter or a column parameter)? Please find below an example for a single parameter:
As Jens mentioned, could it be the case that you are using an incorrect ID?
Thank you for you example. I am trying to get the value of a single parameter
Hi Ryan,
If this is the case, can you check first if you are pointing to an existing element?
When you right click on an element and select ‘Properties’, you will find the ID in the format DMAID/EID. The first number corresponds to the DMAID and the second number corresponds to the element ID. Can you try with these IDs and let us know if it works?
One of the cases that causes this exception is when the ParameterId property of the GetParameterMessage does not exist.
The parameter does exist, I believe it is a case of it not being a displayed parameter as mentions by Jens Vandewalle
Would I be able to retrieve the data for an element with the Display tag set to:
onAppLevel to true