prakashroch
Technical User
i want to highlight the first item in the subgroup and then highlight the remaining items alternately. The number of records(items) in the subgroup keep changing. Here is how my group header 1 , group header 2 and detail section look like
H=Highlight
Brand (group header 1)
Subbrand (group header 2)
H--> item1 (detail section)
item1
H--> item1
item1
subbrand
H--> item1
item1
brand
subbrand
H--> item1
item1
H--> item1
subbrand
H--> item1
Here is the code that i lastly tried.
subbrand(group header 2 section) color formula:-
Global numberVar counter:=1;
crNoColor;
item(detail section) color formula:-
Local numberVar Flag;
numberVar counter;
if counter=1 then
(
crRed;
counter:=0
)
else crGreen
i am getting the first record in each subgroup black color no matter what color combinations i use. Since I am stuck with highlighting the first record I didn’t proceed further (alternate highlighting)
i guess it is trying to over write the red with green
any suggestion
thanks
H=Highlight
Brand (group header 1)
Subbrand (group header 2)
H--> item1 (detail section)
item1
H--> item1
item1
subbrand
H--> item1
item1
brand
subbrand
H--> item1
item1
H--> item1
subbrand
H--> item1
Here is the code that i lastly tried.
subbrand(group header 2 section) color formula:-
Global numberVar counter:=1;
crNoColor;
item(detail section) color formula:-
Local numberVar Flag;
numberVar counter;
if counter=1 then
(
crRed;
counter:=0
)
else crGreen
i am getting the first record in each subgroup black color no matter what color combinations i use. Since I am stuck with highlighting the first record I didn’t proceed further (alternate highlighting)
i guess it is trying to over write the red with green
any suggestion
thanks