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.
And/Or use the close carat to preserve trailing blanks in the fields
"<FLD0> <FLD1>"
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
ColdWhiteMilk, interesting handle. Fthompson, I learned a new thing from a new poster. Of course, the whole issue is related to the lack of spacing and how the output of subfoots is handled in EXL2K as well.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
Just a hint, OBJECT is not needed, it is a whole lot easier to count your ITEMS and not worry if they are TEXT or FIELD. Also if you want to position the ITEM in a particular location you can add a COLSPAN.
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
When I add a third field (FLD2) into the RECAP Section, it places the result in column "D" instead of column "C". Is this also part of the stylesheet that I can set?
DEFINE FILE BASELINE
COL0/A25= 'Clearance';
COL1/A25= 'Type';
RECCOUNTER/I8 = 1;
END
TABLE FILE BASELINE
HEADING
"<+0 <COL0<+0 <COL1"
PRINT
RECCOUNTER NOPRINT
BY BASELINE.CLEARANCE NOPRINT
BY BASELINE.TYPE NOPRINT
ON BASELINE.TYPE RECAP
FLD0/A250= BASELINE.CLEARANCE;
FLD1/A250= BASELINE.TYPE;
FLD2/A250='<td align=left x:num x:fmla=''=SUMPRODUCT((E10:E5000=T(INDIRECT( "A" ' | '&' | 'ROW())))*(F10:F5000=T(INDIRECT( "B" ' | '&' | 'ROW()))))''>0</td>';
ON BASELINE.TYPE SUBFOOT
"<FLD0<FLD1<FLD2"
ON TABLE SUBHEAD
"SUMMARY - BY CLEARANCE TYPE"
ON TABLE SET STYLE *
TYPE=TITLE, COLOR=NAVY, STYLE=BOLD+UNDERLINE, $
TYPE=REPORT, TITLETEXT= &FSTTITLE, $
TYPE=TABHEADING,STYLE=BOLD,$
TYPE=SUBHEAD,STYLE=BOLD,$
TYPE=SUBFOOT, HEADALIGN=BODY, $
TYPE=HEADING, LINE=1, STYLE=BOLD+UNDERLINE, COLOR=NAVY,$
TYPE=HEADING,HEADALIGN=BODY,$
TYPE=HEADING,OBJECT=TEXT,LINE=1,ITEM=1, STYLE=BOLD+UNDERLINE, COLOR=NAVY,$
TYPE=HEADING,OBJECT=TEXT,LINE=1,ITEM=2, STYLE=BOLD+UNDERLINE, COLOR=NAVY,$
TYPE=HEADING,OBJECT=TEXT,LINE=1,ITEM=3, STYLE=BOLD+UNDERLINE, COLOR=NAVY,$
TYPE=TABFOOTING,STYLE=BOLD,$
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
If you want an in depth explanation of HEADALIGN you can pull it up in the Dev Studio Help Index or in the manauls under Creating Reports With WebFOCUS Language > Using Headings, Footings, Titles, and Labels > Aligning a Heading or Footing Element in an HTML Report. Its designed for HTML but works in Excel 2000.
These are both very interesting, however my problem is not that the column headers are not lining up with the data. The column headers are showing up in the right places.
The problem is that the data is not lining up with the column headers.
My results look like this:
Column "A" Column "B" Column "C" Column "D"
ColumnHeader1 ColumnHeader2 ColumnHeader3
DataField1 DataField2 DataField3
DataField1 DataField2 DataField3
Even if I just bake the HEADING as
"<COL0<COL1<COL2"
, and the subfoot fields as
"<FLD0<FLD1<FLD2"
, the data is not lining up with the column headers.
My concern is that I think that I am forcing the FLD2 data field over 1 column to many with the
<td
in the HTML, but I don't know how to get this formula to work correctly without the HTML tags.This message has been edited. Last edited by: ColdWhiteMilk,
I entered a case with IBI, and they were not able to fix the issue, but they were ably to duplicate it in the CAR datbase so I know it was not a data issue.
Instead of using two fields in the SUBFOOT, I concatenate the values in columns A & B into one field with a delimiter between the values. Then I've only got one field in the SUBFOOT again.
Then within the HTML formula, I compare against the first half of the new column A value or the second half of the new column A value.
It is kind of messy, but it is giving me the result I need.