Ticket T548158
Visible to All Users

Defining Member Permissions on an descendant class with a property overridden using K18270 approach, a duplicate key exception is thrown

created 8 years ago

[DevExpress Support Team: CLONED FROM K18270: Can I override properties of business objects?]
While defining Member Permissions in the the Security System on an descendant  class with a property overridden using the approach above, a duplicate key exception is thrown when clicking the drop down to show the properties to assign permission. when I removed the overridden properties, the editor works as expected.

Show previous comments (2)
DevExpress Support Team 8 years ago

    @Scott, we researched this issue and came to the conclusion that the approach described in the K18270 Knowledge Base article is outdated. We should find a better approach and update the article or mark it as outdated. This may take a while and I am not sure that a better solution is possible.

    In the meantime, I would like to focus on your scenario which requires overriding persistent properties. It is quite possible that you can use an alternative approach to achieve your goal, and I will be happy to help you to find it. Would you please describe for which purpose you are overriding persistent properties?

    @Alex, I am using the LICEcap tool to make screencasts.

      Hi @Uriah is there a solution to this beyond saying the approach is outdated?  I have a legitimate need for this where I have a concept of Quote, QuoteItem and QuoteProductItem. The only difference with QuoteProductItem is that it links to a Product whereas the QuoteItem does not.  What I want to have is if you set a SKU on the QuoteProductItem (which also exists on QuoteItem) it should automatically set the Product reference to the Product that matches the SKU.  I'm running into same problem as Alex.

      DevExpress Support Team 6 years ago

        Hello Sheldmandu,

        I've created a separate ticket on your behalf (T744618: How to override persistent properties). It has been placed in our processing queue and will be answered shortly.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.