Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override a member in an extension #112

Open
jwise-mfg opened this issue Jun 7, 2024 · 1 comment
Open

Cannot override a member in an extension #112

jwise-mfg opened this issue Jun 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jwise-mfg
Copy link
Member

jwise-mfg commented Jun 7, 2024

As a Profile Designer user that wants to extend a base type, I want to change the properties of a member on that base type in my extension. For example, the base type has a member: CurrentSpeed with the Is Required property as false; in my extension, I want CurrentSpeed to have Is Required set to true.

Per https://reference.opcfoundation.org/Core/Part3/v105/docs/6.3.3.3 the normative way to do this is for the Extension Profile to create a new member with the same name as the Base's member, and the new property value. Implementations must follow the definition in the most derived type.

However, Profile Designer has a uniqueness constraint (at least in the UI) on the BrowseName of a member preventing a user from implementing an over-riding extension. This is a defect, per the OPC UA specifcation, since the uniqueness constraint should be on the NodeId -- not the BrowseName. This prevents normative extension in Profile Designer and must be corrected.

image

@scoxen1
Copy link
Collaborator

scoxen1 commented Jul 16, 2024

I will ease the duplicate name check in the front end to check for duplicate only for the attributes associated within the particular type. Per the screenshot included, I have a base type with attribute "X". In my extended type, I can add a new attribute "X". I will however keep a check to not permit user to add a 2nd attribute also named "X" on this type (check for duplicate names within the attribute list of this type when trying to add).

image

@oliviamorales oliviamorales added the bug Something isn't working label Jan 28, 2025
@jwise-mfg jwise-mfg added enhancement New feature or request and removed bug Something isn't working labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants