Issue with GroupCondition

Stimulsoft Reports.NET discussion
Post Reply
euregon
Posts: 21
Joined: Thu Apr 21, 2011 8:13 am
Location: Germany, Augsburg

Issue with GroupCondition

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Issue with GroupCondition

Post 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.
Post Reply