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.
DEFINE FILE ORGTEMP NAME/A88 = EmpLastName || (', ' | EmpFirstName || (', ' | EmpID)); POSN/A9 = POSN || '-' || SUFF; DATEA/YYMD = HDATE (Date, 'YYMD'); DATEB/HYYMD = HDTTM (DATEA, 8, 'HYYMD'); DATEC/I1 = HPART (DATEB, 'dw', DATEC); DATED/A3 = DECODE DATEC (1, 'Sun', 2, 'Mon', 3, 'Tue', 4, 'Wed', 5, 'Thu', 6, 'Fri', ELSE 'Sat'); DATEE/HMtD = DATEB; END -* TABLE FILE ORGTEMP HEADING """"" " SUM Hours AS '' BY NAME NOPRINT PAGE-BREAK BY EarningCode AS 'Earning Code' BY HIGHEST 1 JobsSeqno NOPRINT BY HIGHEST 1 ApproverSeqNo NOPRINT ACROSS DATEE NOPRINT ACROSS DATED AS '' ACROSS DATEE AS '' WHERE DATEA GE PeriodStart WHERE DATEA LE PeriodEnd ON TABLE ROW-TOTAL ON TABLE SET PAGE-NUM ON ON TABLE PCHOLD FORMAT PDF ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='SCREEN', LEFTMARGIN=0.50000, RIGHTMARGIN=0.000000, TOPMARGIN=0.500000, BOTTOMMARGIN=0.500000, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, $ ENDSTYLE END -*
This does the job of producing the hours entered for certain days, but I am stuck on trying to append the associated approvals information. Does anyone have any ideas how(if) this could be done?
Actually, he's got embedded field names in his headings which are sometimes interpreted as HTML tags like Joe - you need to post your message again and check the "Disable HTML" box in the Options.
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
Sorry, I did doze off for a second there. I'm awake now.
My final TABLE request looks like this:
DEFINE FILE ORGTEMP
NAME/A88 = EmpLastName || (', ' | EmpFirstName || (', ' | EmpID));
POSN/A9 = POSN || '-' || SUFF;
DATEA/YYMD = HDATE (Date, 'YYMD');
DATEB/HYYMD = HDTTM (DATEA, 8, 'HYYMD');
DATEC/I1 = HPART (DATEB, 'dw', DATEC);
DATED/A3 = DECODE DATEC (1, 'Sun', 2, 'Mon', 3, 'Tue', 4, 'Wed', 5, 'Thu', 6, 'Fri', ELSE 'Sat');
DATEE/HMtD = DATEB;
END
-*
TABLE FILE ORGTEMP
HEADING
"<NAME "
"<DeptName, <DeptCode "
"<JobTitle , <POSN "
"<PeriodStart - <PeriodEnd "
" "
SUM Hours AS ''
BY NAME NOPRINT PAGE-BREAK
BY EarningCode AS 'Earning Code'
BY HIGHEST 1 JobsSeqno NOPRINT
BY HIGHEST 1 ApproverSeqNo NOPRINT
-* ACROSS DATED ACROSS-TOTAL AS ''
ACROSS DATEE NOPRINT
ACROSS DATED AS ''
ACROSS DATEE AS ''
WHERE DATEA GE CAL_START_DATE
WHERE DATEA LE CAL_END_DATE
ON TABLE ROW-TOTAL
ON TABLE SET PAGE-NUM ON
-*ON TABLE PCHOLD FORMAT PDF
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='SCREEN',
LEFTMARGIN=0.50000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.500000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
ENDSTYLE
END
-*
This delivers the timesheet portion of my sample, with the hours on appropriate days, but I'm stuck on trying to append the approvals history part. Is this possible?