Focal Point
[SHARING] Customized HOLD file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3807090136

May 27, 2013, 01:29 AM
Danny-SRL
[SHARING] Customized HOLD file
I have just been acquainted with the following:
  
SET HOLDATTR=ON 
TABLE FILE CAR
PRINT COUNTRY AS ('A', 'B', 'C')
END

will show A as title.

TABLE FILE CAR
PRINT COUNTRY AS ('A', 'B', 'C')
ON TABLE HOLD
END
!type hold.mas
will show B as field name and C as title.

Interesting.

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


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

May 27, 2013, 01:35 AM
Dave
Indeed...

Took me a long time to find this:
COMPUTE FIELD/D12 TITLE 'Turnover' = BRT_TO;


Also great to create new titles for fields. Works in defines as well.

I even use it to 'rename' titles.
DEFINE FILE <our_bv>
    ITEM_NEW/A10 TITLE 'New Item' = ITEM;
END


thanks for the info...

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


_____________________
WF: 8.0.0.9 > going 8.2.0.5
May 27, 2013, 01:39 AM
Waz
Yes, it seems to respect the case of the text.

Brilliant.

Good One

I wonder if this is in the Keysheet ?


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!

May 27, 2013, 08:37 AM
George Patton
Interesting for the DEFINE but the COMPUTE example gives the same result as:
COMPUTE ITEM_NEW/D12=ITEM; AS 'New Item'
, no ?


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
May 27, 2013, 02:51 PM
John W Price
WAZ,
It is in the DEFINE Fields section chapter 4 of the WebFOCUS Keysheet - it became available as of 7.7.01



WebFOCUS 8.0.2, FOCUS since 1977 - John@Aviter.com
PDF , Excel, FOCUS, Author of the Keysheets and Dates book.
www.Aviter.com
May 27, 2013, 05:50 PM
Waz
George, consider this:
SET HOLDATTR=ON 
TABLE FILE CAR
PRINT COUNTRY
COMPUTE ITEM_1/D12 =SALES;  AS 'New Item 1'
COMPUTE ITEM_2/D12 TITLE 'New Item 2' =SALES;  AS 'New Item 2'
COMPUTE ITEM_3/D12 =SALES;  AS ('New Item 3', 'Item_3', 'New Item 3')
ON TABLE HOLD
END
-RUN
! type hold.mas



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!

May 27, 2013, 06:14 PM
Waz
quote:
AS ('A', 'B', 'C')


Danny, how did you find out about this.


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!

May 28, 2013, 10:53 AM
DBADiaz
Where is this keysheet I keep reading about?


Release: DevStudio 7703
OS: Win7
Outputs: HTML, PDF, EXCEL

May 28, 2013, 02:39 PM
susannah
DBA, its the bible
http://www.aviter.com/keysheet/
we all have one , at least one, dog-earred and guarded.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
May 28, 2013, 05:01 PM
Vivian
Thank you Susannah!

Hello DBADiaz,

If you are interested and would like, drop me an email at vivian@aviter.com and I will forward to you samples from the Keysheet and Dates books/PDFs. If you are attending Summit, please drop by my table and you can look at them "in person".

I think you will be positively impressed.


Vivian Perlmutter
Aviter, Inc.


WebFOCUS Keysheet Rel. 8.0.2
(Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2
Focus since 1982
WebFOCUS since the beginning
Vivian@aviter.com

May 28, 2013, 05:10 PM
susannah
there should be a 'book signing party', just like on Castle.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
May 28, 2013, 05:23 PM
Vivian
Well, I was thinking of having my son-in-law Christian Lagadec who is currently the castle spy on Grimm grace my desk at Summit.

Is that close to Castle??? One day we will have a book signing party --- when Summit comes to the west coast and John Price, author, does not have to travel so far from his chair!


Vivian Perlmutter
Aviter, Inc.


WebFOCUS Keysheet Rel. 8.0.2
(Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2
Focus since 1982
WebFOCUS since the beginning
Vivian@aviter.com

May 28, 2013, 05:33 PM
David Briars
quote:
!type hold.mas

Hi Danny,

Thanks for the great share.

I've never seen/used '!type'.

Is '!' a way to escape to the operating system?

Is 'type' in this case, the DOS command 'type' to print out the contents of a file?

How does the command know what folder contains the .mas?

Thanks,
Dave




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
May 28, 2013, 06:38 PM
Waz
quote:
Is '!' a way to escape to the operating system?


Yes it it.


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!