Welcome, Guest
  • Page:
  • 1

TOPIC: Showing specific attributes in CR11

Showing specific attributes in CR11 11 Feb 2010 00:49 #5948

  • DavidZ
  • OFFLINE
  • Platinum Boarder
  • Posts: 703
  • Karma: 4
I have a report that is mapped directly to the database as I cannot produce what I need from export.

I have some constituents (Reps) that may or may not have a specific relationship type to other constituents (beneficiaries). These beneficiaries may or may not have certain attributes.

I have managed to show all the reps that I need with specific criteria (even if they do not have beneficiary relationships). The reps are a group.

I am having problems with showing the beneficiaries in the detail though.

I suppress the detail if they do not have the rep relationship type - this works well and means I get some reps without beneficiaries. The link between the rep and the consit_relationship table is a left outer join.

However when a beneficiary does not have one of three attributes it is not shown. I tried doing the same thing to the attributes as to the rep-beneficiary relationship i.e left outer join between the beneficiary (records table) and the three attribute tables and then again between each attribute table and their corresponding attrubutetype table. I also suppress the detail if the attribute type is not one of the specific categories but I don't seem to have any luck with this one.

Any thoughts? I realise that it is possible hard to envisage and would be happy to send the CR if you want to have a look for yourself.

Thanks

David
David Zeidman
Zeidman Development
www.zeidman.info

Check out our blog - www.re-decoded.com

Showing specific attributes in CR11 11 Feb 2010 00:49 #34549

  • DavidZ
  • OFFLINE
  • Platinum Boarder
  • Posts: 703
  • Karma: 4
I have a report that is mapped directly to the database as I cannot produce what I need from export.

I have some constituents (Reps) that may or may not have a specific relationship type to other constituents (beneficiaries). These beneficiaries may or may not have certain attributes.

I have managed to show all the reps that I need with specific criteria (even if they do not have beneficiary relationships). The reps are a group.

I am having problems with showing the beneficiaries in the detail though.

I suppress the detail if they do not have the rep relationship type - this works well and means I get some reps without beneficiaries. The link between the rep and the consit_relationship table is a left outer join.

However when a beneficiary does not have one of three attributes it is not shown. I tried doing the same thing to the attributes as to the rep-beneficiary relationship i.e left outer join between the beneficiary (records table) and the three attribute tables and then again between each attribute table and their corresponding attrubutetype table. I also suppress the detail if the attribute type is not one of the specific categories but I don't seem to have any luck with this one.

Any thoughts? I realise that it is possible hard to envisage and would be happy to send the CR if you want to have a look for yourself.

Thanks

David
David Zeidman
Zeidman Development
www.zeidman.info

Check out our blog - www.re-decoded.com

Showing specific attributes in CR11 11 Feb 2010 12:35 #34581

  • DrewAllen
  • OFFLINE
  • Platinum Boarder
  • Posts: 1379
  • Karma: 1
Since you are looking for a particular attribute, you need to do the filter before the join, otherwise anyone who has an attribute, but not the one you are looking for will be filtered out. This means that you have to filter in your SQL code. Typically this is accomplished by using a view or stored procedure to do the filtering, but you can also directly edit the SQL for the report. There is one big caveat: once you edit the SQL, opening the visual editor will wipe out any changes that it doesn't understand.

Drew
J. Drew Allen

Crystal Reports and SQL Server Consultant




It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.

  • Page:
  • 1
Time to create page: 0.46 seconds