Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User selectable columns

Status
Not open for further replies.

stuartgmilton

Programmer
Nov 12, 2001
66
GB
Hey folks,

Does anyone know if it is possible to allow the report user to select or deselect the columns they wish to view on the report at refresh time?

Stuart
 
So it would have to be done through the .NET app then? So Could I also pass my stored procedure parameters to the report this way as well, that would save the annoying 'current/new data' window coming up?

Cheers
 
For a way to make columns dynamic within CR, please see thread149-655589.

-LB
 
Greetings! I have seen this tecnique used previously.

First: Create parameter ‘Columns to be suppressed’; All the column headers need to be added in the parameter field.

Create a formula called ‘display_Columns to be suppressed’ and edit the following as needed:


If {?Columns to be suppressed} = “All”
Then “All”
Else {?Columns to be suppressed} [1] +

If Count({?Columns to be suppressed}) > 1
Then “, “ + {?Columns to be suppressed} [2] +
If Count({?Columns to be suppressed}) > 2
Then “, “ + {?Columns to be suppressed} [3] +
If Count({?Columns to be suppressed}) > 3
Then “, “ + {?Columns to be suppressed} [4] +
.
.
.
If Count ({?Columns to be suppressed}) > 9
Then “, “ + {?Columns to be suppressed} [10];


Then in the Column Header, Format text, add the following text to the Suppress formula:

Instr((@display_Columns to be suppressed), ‘enter Column Header here’) > 0;

Then in the Detail Field, Format text, add the following text to the Suppress formula:

Instr((@display_Columns to be suppressed), ‘enter Detail Field here’) > 0;

Just resharing...Thanks!


James Keep, PMP
Crystal Reports(tm) Certified Consultant 8.5 (CRCC)
Authorized Crystal Engineer (ACE)
CMRC
Crystal Decisions Business Partner
Montreal, Qc, Canada
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top