USE CASE STATEMENT

1 Answer 711 Views
Report Designer (standalone)
Doors
Top achievements
Rank 2
Iron
Doors asked on 27 Sep 2021, 05:50 AM

Hi, 

I was using Crystal Reports but we move to Telerik Reporting. 

I try to use Case stament or something similar.

Select {Command.ACTID}
Case 1   : "AAAAAAA"
Case 2  : "BBBBBBBB"
Case 3  : "<center>CCCCCCCCC<font face='symbol'>\</font>'

......

Case 21  : "<center>ZZZZZZZZZZ</br>(Tekrar Müzakere)"

But I could not find ant method to do this and tech dept. sont anzwer my ticket.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Sep 2021, 06:52 AM

Hello Kerem,

Based on the provided example, it seems that the Case statement is pretty much a Switch statement. 

Currently, we do not offer something similar to this. However, in Telerik Reporting, you may use the IIf(expression, ReturnedIfTrue, ReturnedIfFalse) function which is basically an If statement. By nesting a couple of IIf statements, you may achieve the desired results. For example:

= IIf(Fields.Id = 1,"text", IIf(Fields.Id = 2, "text2"...))

If you would like a function similar to the case statement to be implemented in future releases, you may create a feature request about it on our feedback portal - Progress® Telerik® Reporting Feedback Portal.

Thank you for using Telerik Reporting!

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Designer (standalone)
Asked by
Doors
Top achievements
Rank 2
Iron
Answers by
Dimitar
Telerik team
Share this question
or