Focal Point
[SOLVED] What is BY= do in a stylesheet?

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

September 07, 2007, 11:53 AM
cmallain
[SOLVED] What is BY= do in a stylesheet?
Can someone point me in the direction of an explanation regarding the use of BY= in a stylesheet. I cannot seem to find anything.

Thanks so much,
Carol

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


------------------------------------------
last version used: v7.1; truly miss the wonderful things I did with WebFOCUS, HTML, & JavaScript.
September 07, 2007, 12:20 PM
Leah
quote:
Can someone point me in the direction of an explanation regarding the use of BY= in a stylesheet. I cannot seem to find anything.


The online help for Developer Studio contains information regarding the BY in a style sheet under the search options the topic is called Indentifying Data.

Here is an portion of the information
quote:
Syntax: How to Identify a Grand Total, Subtotal, or Subtotal Calculation
TYPE=type, [BY=sortfield] [coltype=column]where:

type
Identifies a subtotal or total. Select from:

GRANDTOTAL which is a grand total (generated by COLUMN-TOTAL, SUBTOTAL, SUB-TOTAL, RECOMPUTE, or SUMMARIZE). See Identifying a Grand Total for an example.

SUBTOTAL which is a subtotal (generated by SUBTOTAL, SUB-TOTAL, RECOMPUTE, or SUMMARIZE). See Identifying Subtotals for an example.

RECAP which is a subtotal calculation (generated by ON sortfield RECAP or ON sortfield COMPUTE). See Identifying a Subtotal Calculation (RECAP/COMPUTE) for an example.

BY
If you have request with multiple BY fields, and two or more have subtotal commands associated with them, you can identify each field using the BY identifier. This is helpful when you want to format each subtotal differently or when you want to format only one subtotal.

You only need to include the BY identifier if you have multiple BY fields in your request.

sortfield



Leah
September 07, 2007, 01:05 PM
cmallain
THANK YOU SO MUCH!!!


------------------------------------------
last version used: v7.1; truly miss the wonderful things I did with WebFOCUS, HTML, & JavaScript.
October 31, 2008, 01:33 PM
ColdWhiteMilk
Is there a part of the stylesheet that will put the subtotal value in Column B instead of Column A?


Production - 7.6.4
Sandbox - 7.6.4
October 31, 2008, 02:52 PM
Darin Lee
Nope, but you can do that with a SUBFOOT instead of a SUBTOTAL. Any time you use SUBTOTAL, the totals will be placed in the column corresponding to the summed field


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
October 31, 2008, 03:29 PM
ColdWhiteMilk
[CODE]
ON BUSUNIT.BUSINESS_UNIT SUBFOOT
"<+0>/CODE]

Which gives me:

Column A Column B
[blank] Business Unit 1


Unfortunately,
[CODE]
ON BUSUNIT.BUSINESS_UNIT SUBFOOT
"<+0> Subtotal for: /CODE]

gives me:

Column A Column B
Subtotal for: Business Unit 1

What I need is:

Column A Column B
[blank] Subtotal for:Business Unit 1


Production - 7.6.4
Sandbox - 7.6.4
October 31, 2008, 03:48 PM
Darin Lee
Probably best to open your own thread rather than continuing to post on someone else's. Your question has departed from the original BY= in a stylesheet.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat