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] multiple defines

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] multiple defines
 Login/Join
 
Member
posted
Can you create multiple defines for a single report? When I try to create a where/if statement, I can only see the last define in the "Fields List". I check each individual define (no errors), but report ony sees the very last (#5 of 5).

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


WebFOCUS 7.702
Windows, All Outputs
 
Posts: 27 | Registered: February 17, 2011Report This Post
Gold member
posted Hide Post
Yes, you can create multiple defines in one report. If you have some joined tables in your report, check in the field listings of the other tables. Depending on the data you use to create your DEFINE, will depend on where your defined field is placed in the "Field List".

Also, if there is an element that is wrong in the DEFINE that didn't get caught by the GUI, it will not show up at all. I have run across both scenarios before.

Thanks,

Dave


WebFOCUS 7.7.03
Windows Web Server 2008
MS SQL Server 2000
Excel,CSV,PDF,HTML
 
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011Report This Post
Expert
posted Hide Post
Can you post an example ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
I've listed all my Defines and the related Where/If statements. All my fields are coming from one table, so join not required. Also, the OR statements are Include/Exclude....somehow the copy/paste changed it ot (OR(,))

thanks,
DG


SET EMPTYREPORT = ON

DEFINE FILE TABLE_A
LAWA/A100=IF TABLE_A.TABLE_A.LAW_ALUMNI = 'Y' THEN 'LAWA' ELSE 'N';
END

DEFINE FILE TABLE_A
LAWDCIRCAN/A100=IF TABLE_A.TABLE_A.LAW_DEANS_CIR_CAN = 'Y' THEN 'LAWDCIRCAN' ELSE 'N';
END

DEFINE FILE TABLE_A
LAWDCIR11/A100=IF TABLE_A.TABLE_A.LAW_DEANS_CIR_2011 = 'Y' THEN 'LAWDCIR11' ELSE 'N';
END

DEFINE FILE TABLE_A
LAWDCIR12/A100=IF TABLE_A.TABLE_A.LAW_DEANS_CIR_2012 = 'Y' THEN 'LAWDCIR12' ELSE 'N';
END

DEFINE FILE TABLE_A
LAW300/A100=IF TABLE_A.TABLE_A.LAW_TOP_300 NE MISSING THEN 'LAW300' ELSE 'N';
END

DEFINE FILE TABLE_A
LAWHPC/A100=IF TABLE_A.TABLE_A.LAW_HIGH_PERSONAL_CONT NE MISSING THEN 'LAWHPC' ELSE 'N';
END

TABLE FILE TABLE_A

PRINT....

WHERE TABLE_A.TABLE_A.LAW_ALUMNI EQ &LAW_ALUMNI.(OR(,)).Law Alumni.;
WHERE TABLE_A.TABLE_A.LAW_DEANS_CIR_CAN EQ &LAW_DEANS_CIR_CAN.(OR(,)).Law Deans Circle Candidate.;
WHERE TABLE_A.TABLE_A.LAW_DEANS_CIR_2011 EQ &LAW_DEANS_CIR_2011.(OR(,)).Law Deans Circle 2011.;
WHERE TABLE_A.TABLE_A.LAW_DEANS_CIR_2012 EQ &LAW_DEANS_CIR_2012.(OR(,)).Law Deans Circle 2012.;
WHERE TABLE_A.TABLE_A.LAW_TOP_300 EQ &LAW_TOP_300.(OR(,)).Law Top 300.;
WHERE TABLE_A_TABLE_A.LAW_HIGH_PERSONAL_CONT EQ &LAW_HIGH_PERSONAL_CONT.(OR(,)).Law High Personal Contact.;

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


WebFOCUS 7.702
Windows, All Outputs
 
Posts: 27 | Registered: February 17, 2011Report This Post
Virtuoso
posted Hide Post
Each DEFINE FILE clears all previous DEFINEs for the same table. Either combine all of your DEFINEs into one DEFINE statement, or use the DEFINE FILE....ADD syntax for each DEFINE statement.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
Beat me to it Dan.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
That seldom happens Waz. You must have been dozing.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post


What ?.....


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Originally, I tried to group the define as "Population". The output reflects 1st line of "IF" statements and ignores any of the "IF" statements when using Multi-Select.


SET EMPTYREPORT = ON
DEFINE FILE TABLE_A
Population/A100=

IF TABLE_A.TABLE_A.LAW_ALUMNI = 'Y' THEN 'LAWA' ELSE
IF TABLE_A.TABLE_A.LAW_DEANS_CIR_CAN = 'Y' THEN 'LAWDCIRCAN' ELSE
IF TABLE_A.TABLE_A.LAW_DEANS_CIR_2011 = 'Y' THEN 'LAWDCIR11' ELSE
IF TABLE_A.TABLE_A.LAW_DEANS_CIR_2012 = 'Y' THEN 'LAWDCIR12' ELSE
IF TABLE_A.TABLE_A.LAW_TOP_300 NE MISSING THEN 'LAW300' ELSE
IF TABLE_A.TABLE_A.LAW_HIGH_PERSONAL_CONT NE MISSING THEN 'LAWHPC' ELSE 'N';
END

TABLE FILE TABLE_A ....

WHERE TABLE_A.TABLE_A.Population EQ &Population.(OR(,,,,,,)).Population.;


WebFOCUS 7.702
Windows, All Outputs
 
Posts: 27 | Registered: February 17, 2011Report This Post
Virtuoso
posted Hide Post
Try this:

SET EMPTYREPORT = ON

DEFINE FILE TABLE_A
LAWA/A100=IF TABLE_A.TABLE_A.LAW_ALUMNI = 'Y' THEN 'LAWA' ELSE 'N';
LAWDCIRCAN/A100=IF TABLE_A.TABLE_A.LAW_DEANS_CIR_CAN = 'Y' THEN 'LAWDCIRCAN' ELSE 'N';
LAWDCIR11/A100=IF TABLE_A.TABLE_A.LAW_DEANS_CIR_2011 = 'Y' THEN 'LAWDCIR11' ELSE 'N';
LAWDCIR12/A100=IF TABLE_A.TABLE_A.LAW_DEANS_CIR_2012 = 'Y' THEN 'LAWDCIR12' ELSE 'N';
LAW300/A100=IF TABLE_A.TABLE_A.LAW_TOP_300 NE MISSING THEN 'LAW300' ELSE 'N';
LAWHPC/A100=IF TABLE_A.TABLE_A.LAW_HIGH_PERSONAL_CONT NE MISSING THEN 'LAWHPC' ELSE 'N';
END

TABLE FILE TABLE_A

PRINT....

WHERE TABLE_A.TABLE_A.LAW_ALUMNI EQ &LAW_ALUMNI.(OR(,)).Law Alumni.;
WHERE TABLE_A.TABLE_A.LAW_DEANS_CIR_CAN EQ &LAW_DEANS_CIR_CAN.(OR(,)).Law Deans Circle Candidate.;
WHERE TABLE_A.TABLE_A.LAW_DEANS_CIR_2011 EQ &LAW_DEANS_CIR_2011.(OR(,)).Law Deans Circle 2011.;
WHERE TABLE_A.TABLE_A.LAW_DEANS_CIR_2012 EQ &LAW_DEANS_CIR_2012.(OR(,)).Law Deans Circle 2012.;
WHERE TABLE_A.TABLE_A.LAW_TOP_300 EQ &LAW_TOP_300.(OR(,)).Law Top 300.;
WHERE TABLE_A_TABLE_A.LAW_HIGH_PERSONAL_CONT EQ &LAW_HIGH_PERSONAL_CONT.(OR(,)).Law High Personal Contact.;


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report 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] multiple defines

Copyright © 1996-2020 Information Builders