Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Reporting multiple Descriptive lines

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Reporting multiple Descriptive lines
 Login/Join
 
Member
posted
I have a database that can be described as follows:

Inovice header has 1 to many line items.

Each line item has 1 to many Line Item Descriptions

Also, Each Line Item has 1 to many Line Item Special Instructions.


If I join The Header to he line Item and also to the Line Item Description and Special Instruction tables, when I report the Line Item amount, I'm getting a duplicate/triplicate situation when I have multiple Line Item descriptions and Special Instructions.


What I would like the report to look like is this:

Hdr # LI # LI Amt LI Desc LI Spec Instr
----- ---- ------ ------ ------------
1 1 10.00 Des 1 SI 1
Des 2 SI 2
Des 3
2 20.00 Des 1 SI 1
Des 2
2 1 30.00 Des 1 SI 1
Des 2 SI 2



I hope this makes sense. Anybody have any hints on how to do this? I know I did it a couple years ago, and I can't remember how I did it.


Thanks,

Carl

This message has been edited. Last edited by: Kerry,


Carl

FOCUS 7.1.6 on Windows XP
Output: Excel, HTML, PDF
 
Posts: 27 | Registered: October 19, 2007Report This Post
Member
posted Hide Post
Hdr # LI # LI Amt LI Desc LI Spec Instr
----- ---- ------ ------ ------------
1..... 1... 10.00 Des 1.. SI 1
..................Des 2.. SI 2
..................Des 3
.......2... 20.00 Des 1.. SI 1
..................Des 2

2..... 1... 30.00 Des 1.. SI 1
..................Des 2.. SI 2


Carl

FOCUS 7.1.6 on Windows XP
Output: Excel, HTML, PDF
 
Posts: 27 | Registered: October 19, 2007Report This Post
Virtuoso
posted Hide Post
Carlf, please enclose your sample output using the </> button in your "Post" window.

As for the duplicates, it is a normal behaviour when joining tables in a one-to-many relation.

That should not be a problem with WebFOCUS which does not print "duplicate" values when you display your parent-wise fields as BY fields.

TABLE FILE blah
PRINT LN_SPEC_INSTR
BY HDR_NO
BY LN_N
BY LN_AMT
BY LN_DESC
END


Hope this helps.

- Neftali.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
quote:
That should not be a problem with WebFOCUS which does not print "duplicate" values when you display your parent-wise fields as BY fields


The above is of course applicable unless you have SET BYDISPLAY = ON.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Reporting multiple Descriptive lines

Copyright © 1996-2020 Information Builders