Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Formula: Evaluate Properties of Another Section Post Reply Post New Topic
Author Message
PaulyWally
Newbie
Newbie


Joined: 16 Aug 2013
Location: United States
Online Status: Offline
Posts: 12
Quote PaulyWally Replybullet Topic: Formula: Evaluate Properties of Another Section
    Posted: 09 Apr 2014 at 4:39am
Is there a way to evaluate certain properties of another section?

For example, I have a report with the following Sections:


   Report Header
   Group Header #1
   Group Header #2
   Group Header #3
   Details
   Group Footer #1
   Group Footer #2
   Group Footer #3
   Report Footer


Let's say I want to set the Background Color of 'Details' to the same Color as 'Group Header #2'.

I tried a few things using Formula Fields, and also Shared Variables. But I'm having a tough time getting it to work consistently.

By the way, the 'Group Header #2' Color changes depending on the current Group record.

Edited by PaulyWally - 09 Apr 2014 at 4:41am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Apr 2014 at 5:35am
I would think that shared variables would work...I would try:
gh2 section expert background color formula
shared numbervar gh2Color;
if (your logic) then
gh2Color = crRed //(for example)

in the detail section expert background color formula:
shared numbervar gh2Color;

that should work
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.031 seconds.