Page 1 of 1

Issue with GroupCondition

Posted: Tue May 10, 2011 6:58 am
by euregon
Hello,

we noticed an issue with the GroupCondition:

We want to apply a GroupColum for the GroupCondition by a Datasource.


The Colum is saved as string into a 2nd Datasource e.g.

ViewerUI.SortField == "Client"


This code works (as expression in the GroupCondition):

Code: Select all


{ ViewerUI.SortField == "Client"  ? V_Addresslist.Client.ToUpper().Substring(0, 1) : (ViewerUI.SortField == "Location" ? V_Addresslist.Location.ToString()  : "")}


However when structuring the Code to:

Code: Select all


{ 
     ViewerUI.SortField == "Client"  ? V_Addresslist.Client.ToUpper().Substring(0, 1) : 
             (ViewerUI.SortField == "Location" ? V_Addresslist.Location.ToString()  : 
                   "");
}

We get compile error or the report doesn't work as expected.

2nd question:

How can you apply lamda expressions for the expression?

Thank you.

Issue with GroupCondition

Posted: Wed May 11, 2011 8:41 am
by Alex K.
Hello,

We couldn't reproduce this bug.
Please check the last prerelease build. If the issue is still present, please send us an .MRT file with sample data for analysis.

Thank you.