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.
I have one field value in the data, but I need it to appear in two cells in the same row that have been merged.
Francis - I was merely trying to say that I waste a lot of time trying get WebFOCUS to do actions that are simple with VBA, but I get told that "WebFOCUS can't do that". It is not a answer that my manager or customers will accept, so I can't accept it either.
It's best TO USE subhead, but, IF subfoot is what you want:
-SET &ECHO=ALL;
APP PREPENDPATH IBISAMP
-RUN
SET BYDISPLAY=ON
DEFINE FILE SHORT
LABEL1A/A50 = 'a. Facility Name:';
DUMMY/A1 = ' ';
END
TABLE FILE SHORT
HEADING
"I. FACILITY"
SUM
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
BY CONTINENT NOPRINT
WHERE RECORDLIMIT EQ 1
ON CONTINENT SUBFOOT
"<LABEL1A<+0> <+0> <+0> <+0> <+0>"
ON TABLE SET STYLE *
TYPE=REPORT, HEADALIGN=BODY, COLSPAN=6,$
TYPE=HEADING,LINE=1,COLSPAN=6,JUSTIFY=LEFT,STYLE=BOLD,SIZE=12,BACKCOLOR=RGB(210 210 210),$
TYPE=SUBFOOT, HEADALIGN=BODY, $
TYPE=SUBFOOT,ITEM=1,COLSPAN=2,$
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT
-SET &ECHO=ALL;
APP PREPENDPATH IBISAMP
-RUN
SET BYDISPLAY=ON
DEFINE FILE SHORT
LABEL1A/A50 = 'a. Facility Name:';
DUMMY/A1 = ' ';
END
TABLE FILE SHORT
HEADING
"I. FACILITY"
SUM
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
DUMMY AS ''
DUMMY AS '' OVER
DUMMY AS ''
DUMMY AS ''
CONTINENT AS ''
REGION AS ''
DUMMY AS ''
DUMMY AS ''
BY DUMMY NOPRINT
BY CONTINENT NOPRINT
-*WHERE RECORDLIMIT EQ 1
ON DUMMY SUBHEAD
"<LABEL1A<+0> <+0> <+0> <+0> <+0>"
ON TABLE SET STYLE *
TYPE=REPORT, HEADALIGN=BODY, COLSPAN=6,$
TYPE=HEADING,LINE=1,COLSPAN=6,JUSTIFY=LEFT,STYLE=BOLD,SIZE=12,BACKCOLOR=RGB(210 210 210),$
-*TYPE=SUBFOOT, HEADALIGN=BODY, $
TYPE=DATA, HEADALIGN=BODY,$
TYPE=SUBHEAD, ITEM=1, COLSPAN=2,$
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT
FYI, Here is something interesting, but probably not usable.
TABLE FILE CAR
PRINT COMPUTE
Blank/A1 = ' ' ; AS ''
SEATS
BY COUNTRY
BY CAR
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=TITLE, COLOR=NAVY, STYLE=BOLD+UNDERLINE, $
TYPE=REPORT, TITLETEXT='Testing', $
TYPE=DATA, COLUMN=CAR, CLASS=MERGE, $
ENDSTYLE
ON TABLE HOLD AS MERGE_TEST FORMAT EXL2K
END
-RUN
FILEDEF MERGE_TEST DISK merge_test.xht
-RUN
-* Write out a master to read the MERGE_TEST list
EX -LINES 4 EDAPUT MASTER,MERGE_TEST,CV,FILE
FILENAME=MERGE_TEST, SUFFIX=FIX,$
SEGNAME=MERGE_TEST, $
FIELD=LINE ,ALIAS= ,A1000 ,A1000 ,$
-RUN
FILEDEF NEW_EXL DISK new_excel.xht
DEFINE FILE MERGE_TEST
CHNG_FLAG/A1 = IF LINE CONTAINS '=xl101' THEN 'Y' ELSE 'N' ;
NEW_LINE/A1000 = STRREP (1000, LINE, 5, 'xl101', 15, 'xl101 colspan=2', 1000, 'A1000') ;
NEW_LEN/I9 = ARGLEN(1000, NEW_LINE, NEW_LEN) ;
END
TABLE FILE MERGE_TEST
PRINT
COMPUTE OUT_RES/I1 = PUTDDREC ('NEW_EXL',7,NEW_LINE, NEW_LEN,OUT_RES) ;
WHERE LAST CHNG_FLAG EQ 'N'
ON TABLE SAVE AS TMP_OUT
END
-RUN
SET HTMLFORMTYPE = XLS
-HTMLFORM NEW_EXL