Hi. I need yo do a report (end-user) in a XAF-win app.
In this report I just need to show 2 fields [Entregados] and [Plan] (both Int32).
I need to show some operations (* and /) with them.
I create 2 calculatedfields
calculatedField1 = [Entregados] * [Plan]
calculatedField2 = [Entregados] / [Plan]
When I bind this calculated fields to XRlabel in report, calculatedField1 shows ok, but calculatedField2 shows allways "0".
I have try changing calculatedField2's datatype to Float, double, decimal without success, allways shows "0".
I have try with all XRLabel ́s formatString options (Number, n,n1,n2,f, etc) with success.
Example:
[Entregados] = 41
[Plan] = 100
calculatedField1 = (41 * 100) = 4100
calculatedField2 = (41 / 100) = 0 <--- I need to show 0.41 but allways shows "0"
so the question is: How can I show correctly this calculatedField (0.41) ?
Thanks in advance
ALBERTO
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.
Hello Alberto,
Thank you for the description. We've already discussed a similar issue: Calculated Field.
Basically, this behavior is by design. However, we've decided that it makes sense to improve usability, since this is a common user scenario. So, I've converted this issue into a new bug report.
Our developers will continue working on this problem, and we'll keep you informed of any progress. Currently, you can use the 1.0 multiplier in the expression of the calculated field. Please refer to the attached sample to review how it works.
Thanks,
Alessandro.