Does UA Expert support default values for input arguments?

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
pauli
Jr. Member
Jr. Member
Posts: 1
Joined: 03 Feb 2022, 08:55

Does UA Expert support default values for input arguments?

Post by pauli »

I'd like to clarify if UA Expert shows default values for input arguments in the "Call Method" dialogue.

On my server I implemented the HasArgumentDescription ReferenceType, but nothing changes in the dialogue. Therefore, I'm not sure if it is a bug in my server or if UA Expert just does not show the default values.

Image

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Does UA Expert support default values for input arguments?

Post by Support Team »

Hi,

no, the UaExpert can not display the default values of input arguments.

The default value is more a server side feature. Server applies the default values if the input argument was missing when the method was called. If no devault value exists in the server, it returns invalid-arg on empty arguments. However, when the Client gives input argument, they will be used over the default values. Therefore for most clients there is no good reason to display the default, just hope for the best.
Best regards
Unified Automation Support Team

Post Reply