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] Records in different paths need parent value returned

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Records in different paths need parent value returned
 Login/Join
 
Gold member
posted
I am trying to write a report in WF7.7 which must be writen in IA in one pass through (it can not have hold files).

I have a parent field and 5 child fields. Each of the child fields have an assoicated location and result. I need to be able to return the parents that contain a child with a specific location and an additional child with a specific result. I do do want to return parents that have ORs or None

Example: Parent A
Has Child 1, 2, 3, 4, 5
Child 1 lives in the West and is happy
Child 2 lives in the East and is sad
Child 3 lives in the North and is sad
Child 4 lives in the South and is happy
Child 5 lives in the North and is sad
Parent B
Has Child 1, 2, 3, 4, 5
Child 1 lives in the West and is sad
Child 2 lives in the East and is sad
Child 3 lives in the North and is sad
Child 4 lives in the South and is sad
Child 5 lives in the North and is sad

I want a parent returned if the parent has a child that lives in the North and a Child that is Happy.

Parent A would be retunred, but parent B would not because although parent B has 2 children who live in the North he does not has a child that is happy.

I can write this in DEV Studio, but need to know if it is possible in Info Asssit.

Thank you!

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.7 and WebFOCUS 8
Windows, All Outputs
 
Posts: 36 | Registered: August 17, 2010Report This Post
Platinum Member
posted Hide Post
Lynsi,

Did you use hold files in DevStudio to build the current report? Can you post the code? Thanks
 
Posts: 117 | Location: Denver | Registered: July 27, 2005Report This Post
Gold member
posted Hide Post
Hi Lynsi,
following infoassist code gives the report as needed.Here the output returns the "category" whose region is either 'Northeast'(North as in your requirement) or Product is 'Espresso'(happy in your requirement)

DEFINE FILE GGSALES
REG/D12=IF GGSALES.SALES01.REGION EQ 'Northeast' THEN 1 ELSE 0;
HAPPY/D12=IF GGSALES.SALES01.PRODUCT EQ 'Espresso' THEN 1 ELSE 0;
END
TABLE FILE GGSALES
SUM GGSALES.SALES01.CATEGORY
REG
HAPPY
BY GGSALES.SALES01.CATEGORY
BY GGSALES.SALES01.REGION
BY GGSALES.SALES01.PRODUCT
WHERE REG GE 1 OR HAPPY GE 1;
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET BYDISPLAY ON
ON TABLE SET STYLE *
ENDSTYLE
END

-RUN


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
 
Posts: 82 | Registered: January 06, 2014Report 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] Records in different paths need parent value returned

Copyright © 1996-2020 Information Builders