Crystal Highlight Expert

I have to highlight a product that qualifies for multiple qualifications (attributes).  When I highlight for say low fat, if that product also qualifies for say healthy, it will highlight one and add a second to the report.
How can I just show the one I want highlighted?

Thanks!
evendAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
How is your data setup?

Do you have one record with all the attributes or do you a joined table with the attributes so you have multiple records.?

DO you only want to show for a given attribute or do you want to show all records but only the attributes that meet your highlight criteria?

Product 1  has FAT and HEALTHY
Product 2 has HEALTHY
Product 3 has FAT
Product 4 has HEALTHY and Attribute 3

What should the report show?

mlmcc
0
evendAuthor Commented:
A joined table.

Products with attributes.  

I would like to show all products but just highlight products that are associated with a specific attribute.
However, some products are associated with multiple attributes. Hence why products multiply on the report.
I think??
0
mlmccCommented:
For the sample data I provided, what should be reported?

mlmcc
0
evendAuthor Commented:
If I want to see all products 1-4 but say highlight only 1 and 3 because they are 'FAT'.

Product 1  has FAT and HEALTHY
Product 2 has HEALTHY
Product 3 has FAT
Product 4 has HEALTHY and Attribute 3
0
mlmccCommented:
Look at this report
I grouped the report by product ID and put the name field in the group header
I used a parameter to select the desired attribute.

I then created a formula to use for counting the products with that attribute

Name - HasAttribute
If {'Product_Attributes_'.Attribute} = {?Attribute} then
    1
Else
    0

Open in new window


I used that formula to set the background color for the group name field
If Sum({@HasAttribute},{'Product_List_'.Product ID}) > 0 then
    crLime
Else
    crNoColor

Open in new window


Sample run
mlmcc
ProductAttribute.rpt
ProductAttributes.xls
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.