Outer Join

shogan@mila.ie
Member Posts: 113
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
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
-
Hi Stephen
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.Answer the question and wait for the answer.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions