Hi all...
Very cold weather lately, isn't it?
Anyways - just wondering if this is possible.
I have a field called Sector that has values A .. Z in one of my tables that appears if another field called Group gets filled in with an 'X':
eg if Group B001 gets an X, then Sector B gets printed on my report,
if Group D123 gets an X, then Sector D gets printed on my report, etc.
Thus, in my report, the Sector X only appears if Group has a value.
However, I need a way of printing all of the sectors from A .. Z on the report even if no group has an X assigned to it:
eg Sector A will always print, even if all of A's groups A001, A002 .. A999 have no X filled in.
I think this is called an outer join - just wondering how you compile one in an attain report.
Regards
Stephen
0
Comments
Does the sector codes have there own lookup table? if not then you will need to write the sector codes into a temporary table.
You then use the sectors/ Temp table as Dataitem befor the the rest of the dataitems on the report, which are all indented once.
On the Sector DataItem make sure DataItem.property 'PrintOnlyIfDetail' is NOT set to Yes. Then print the Sector code with the body section of this DataItem.
On the main body of the report you will need to filter by each sector code.
SETFILTER(Group,SectorCode + '*'); // SETFILTER(Group,A*)
I hope this will point you in the right direction.