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]Assigning Values "where" statement

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Assigning Values "where" statement
 Login/Join
 
Platinum Member
posted
How would I do a similar statement to a where statement in SQL, but in a define

EX.

select catalogcode
from table
where itemcode = itemcode2
or
Where itemcode = 57

or

"insert where statement"

just looking for a generic 'where'statement done in webfocus. the more examples the better!

Thanks for your help!

This message has been edited. Last edited by: Charles Richards,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Expert
posted Hide Post
Chearles, please be more specific.

What do you mean by "insert where statement"?

Why in a DEFINE?

TABLE FILE TABLE1
PRINT catalogcode
WHERE ITEMCODE EQ ITEMCODE2;
WHERE ITEMCODE EQ 57;
WHERE ITEMCODE IN (12, 45, 57, 88);
WHERE ITEMCODE FROM 10 TO 100;
WHERE ITEMCODE GE 9 AND ITEMCODE LT 87;
WHERE ITEMCODE LT 40 OR ITEMCODE GT 76;
WHERE ITEMCODE NE 43;
...
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
What I am trying to do make a report that will compare generic brand foods to the national brand

Ex. grocery store brand vs. major company

The report comprised of all of the grocery store brand items. So it goes through and shows all of the itemcodes for each grocery store item. For each item they may or may not have a national brand. If they don't nationbrandITEMcode will say '00000' if they do it will have an ITEMCODE '12345'

if it does have a nationbrand associated with the grocery store item I would like it then to create a new row right after it showing all of the information about the national brand,

I tried doing this by making a subfooting for ITEMCODE and adding defines for each feild but then it is very difficult to line them up with the columns...

Its in PDF format


Any help would be greatly appreciated!

Thanks so Much!

Maybe there is a way to set a subfooting value to a certian position on the report?


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Guru
posted Hide Post
In pdf you can line up fields by column name if you want to pursue subfoot option. Code like this in your stylesheet:
  
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=1, POSITION=COLUMNNAME1, JUSTIFY=RIGHT,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=2, POSITION=SOMECOLUMN, JUSTIFY=RIGHT,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=3, POSITION=OTHERCOLUMN, JUSTIFY=RIGHT,$

(My example is for a table footing, it should work for a subfooting too.)

You could also write your report by creating an extra record view for each input record (with DEFINES on the national brand if it were there, making it look like a regular item) and unioning the result together (appending flat file approach), then sorting your output so it came at the end of each grocery store group. That would take more coding on your part.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report 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]Assigning Values "where" statement

Copyright © 1996-2020 Information Builders