Property validation

Forum Forums Visual Components 4.0 .NET Addon Programming Property validation

This topic contains 2 replies, has 3 voices, and was last updated by Jay Jay 11 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6258
    adrian.schyja
    adrian.schyja
    Participant

    Hi,

    when creating custom properties,┬áis it possible to enable validation of property values like it is done in the Name property of e.g. bae frames (“Name must be unique…”)?

    As an example, i would like to add a property to each routine of a robot and the values must be unique within the scope of the robot.

    Kind regards,

    Adrian

    #6382
    TSy
    TSy
    Participant

    You would need to implement your own code that tracks creation and deletion of those IProperty objects and registers listeners for the value change event of each property. Then in the value change event handler you can do your own validation checks and show such an error message.

    #6719
    Jay
    Jay
    Moderator

    I hope this is not coming too late. When you create a property without setting a name, the property name is always unique. For example.

    The api does the unique name validation for you.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.