Bug Report Q554383
Visible to All Users

Fields are not recognized by their display names in the report's calculated field and filter expressions when a data source that implements IDisplayNameProvider is used

created 11 years ago

The data sources implement IDisplayNameProvider in order to format "CamelCase" names as "Camel case".

When you create a calculated field, the designer forces all the field names in the expression to the display name version: [CamelCase] gets replaced with [Camel case].
Then when the report is generated, the CamelCase field is never read . The report generator tries to read a property called "Camel case" and finds it doesn't exist and null is always returned.

If the report designer auto formats the names to the display name version (which I like), why does it not understand how to read the display name version?

Show previous comments (9)
A A
Arthur (DevExpress) 11 years ago

    There is still a problem with the aggregate operator in the expressions. We are working on a solution.
    It seems that the expression editor UI issue isn't related to the current thread, so I created a separate ticket Expression editor - A field is inserted incorrectly for an aggregate function if display names are specified.
    As for the Vekrasoft question, the situation is more complicated in this case and will be discussed in the Calculated fields don't work in datasource which implements IDisplayNameProvider thread.

    A A
    Arthur (DevExpress) 11 years ago

      Having investigated all the information, we came to the conclusion that the problem with expressions with the aggregate operator doesn't directly relate to the current issue.
      If a field is serialized incorrectly in the 13.2.5 version, it is converted correctly by a hotfix. If a field isn't converted to the display name at all, it is serialized correctly.
      So we have decided to create a separate ticket: End-User Designer - Display names are handled incorrectly in an expression with the aggregate operator
      Please refer to it for further correspondence on this item.

        However you see fit to organize the fixes is fine, as long as we eventually have a product that works end to end. Thanks!

        Answers approved by DevExpress Support

        created 11 years ago (modified 11 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Additional information:

        Important note:
        If you designed or modified Reports with Calculated Fields using version v13.2.5, open and re-save them in the End-User Designer after applying the hotfix. This action is necessary to perform required modifications to REPX files to make them operate properly in future versions.
        If you were using a different version (v13.2.4 or older + v13.2.6), no additional actions are required.

          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.