Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Dynamic grouping attempt Post Reply Post New Topic
Author Message
omniholy
Newbie
Newbie


Joined: 16 May 2011
Online Status: Offline
Posts: 2
Quote omniholy Replybullet Topic: Dynamic grouping attempt
    Posted: 16 May 2011 at 9:12am
If {?GroupBy} = "Runs" then
    {Table.runName}
Else  
    {Table.vehicleId}

I have been trying to allow grouping by user selection.  The formula workshop keeps saying there is an error in the formula.  I can't figure out what the error is.  I made the two groups, one by runName, one by vehicleId.

I'm using Crystal Reports XI.

Thanks in advance.


Edited by omniholy - 16 May 2011 at 9:17am
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 16 May 2011 at 10:03am
The formula workshop keeps saying there is an error in the formula.


What is the error message?

My guess is that it highlights {Table.vehicleId} and tells you it expects a string.

That would be because a formula can only return one type of variable.

Convert any non-string variables to string. Or whatever type should be returned.
IP IP Logged
omniholy
Newbie
Newbie


Joined: 16 May 2011
Online Status: Offline
Posts: 2
Quote omniholy Replybullet Posted: 16 May 2011 at 11:13am
Thank you.  The error message did not specify what the error was.  That was the problem however.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.035 seconds.