Set default values of input arguments before call

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
C.Thilo
Hero Member
Hero Member
Posts: 24
Joined: 12 Jan 2018, 13:22

Set default values of input arguments before call

Post by C.Thilo »

Hey!

I want to make a method easier to use by prefilling the arguments with values,
so that if the user uses "call" in e.g. UaExpert on that method,
the dialog is prefilled and the user can driectly click "call" and the values would be fine.

Is there a way either before dialog open or whenever a default value would have changed to set it for the user?

Cheers,
Thilo

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

Re: Set default values of input arguments before call

Post by Support Team »

Hello Thilo,

there are discussions about the feature to have optional method arguments or default parameters. But that feature is currently not jet specified or released.
So there is not generic way to do that at the moment. If you have control of client and server side you can easily do that by adding a property to the method that gives the client that information.
Best regards
Unified Automation Support Team

Post Reply