Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] PRINT * EXCEPT...
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] PRINT * EXCEPT...
 Login/Join
 
Platinum Member
posted
Is there a way I can tell WF to print all of the fields in the table except field X ? Thanks!

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


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Reply With QuoteReport This Post
Master
posted Hide Post
It would be nice to be able to do that, but unfortunately no.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Mark,
You could try this:
  
-* File Mark1.fex
CHECK FILE CAR HOLD
-RUN
FILEDEF ALLFIELDS DISK ALLFIELDS.FEX
TABLE FILE HOLD
PRINT FIELDNAME
IF FIELDNAME NE WARRANTY OR STANDARD
ON TABLE SAVE AS ALLFIELDS
END
-RUN
TABLE FILE CAR
PRINT
-INCLUDE ALLFIELDS
END



Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1950 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
Mark, you could also try...

TABLE FILE SYSCOLUM
PRINT NAME
WHERE TBNAME EQ 'CAR'
WHERE NAME NE 'COUNTRY'
ON TABLE SAVE AS ALLFIELDS
END
-RUN
TABLE FILE CAR
PRINT
-INCLUDE ALLFIELDS
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6254 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
That is great! I've always wanted to know how to do this.


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Waz, Mark,

Don't forget to FILEDEF the ALLFIELDS file...


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1950 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
Daniel, works without the filedef for 7.1.6 and 7.6.6 on Unix, and 7.6.8 on Windows.

If there are concerns , then change to HOLD FORMAT ALPHA


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6254 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
Don't forget to FILEDEF the ALLFIELDS file
It used to be (if memory serves) that the default extension of an include file was .fex and the help references do infer that only focexecs can be included.

However, help files for 7.1.3 (the DS of choice Wink) gives -

quote:
-INCLUDE drive:\path\filename.ext where:

drive
Is the drive that contains the path to the FOCEXEC.

path
Is the fully qualified path to the file that contains the FOCEXEC.

filename
Is the name of the file that contains the FOCEXEC.

ext
Is the extension of the file that contains the FOCEXEC.
Then again, it also states-
quote:
Relative paths are not supported in the -INCLUDE command
For safety I always code the extension and never leave it to WF to determine what it thinks it should use - it's like asking a child to fetch the ASP book from the shelf in the study - which ASP book?

In the above examples given by Waz and Danny, I would suggest that the -INCLUDE code was coded as -INCLUDE ALLFIELDS.FTM, or as Danny suggests, FILEDEF the file with extension that you want and then include that - specifying the extension. Code safe and make it future proof - who knows what subsequent releases will bring Wink

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5662 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
Wow, Thanks for the Brain Dump. Eeker

I do agree with the Future Proofing, all it needs is a little code tightening and bang, the code fails.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6254 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Guru
posted Hide Post
quote:
EXCEPT

Found there's also another way to EXCLUDE fields
 TABLE FILE CAR
PRINT  *
ON TABLE HOLD AS PT
ON TABLE SET EXTRACT *
EXCLUDE=(MODEL CAR),$
ENDEXTRACT
END
?FF PT
 


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 263 | Location: Houston,TX | Registered: June 11, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
You get a LIKE on that on, for : "EXCLUDE=[MODEL CAR WHEELBASE),$"
 
Posts: 3066 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Ditto


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6254 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] PRINT * EXCEPT...

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.