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.
I wonder if this is in the Keysheet ?
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
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:
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
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