Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Report feasibility question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report feasibility question
 Login/Join
 
Member
posted
I'm trying to produce a report of past processed timesheets that will look like the following:

REPORT SAMPLE STARTS HERE
Worker, Joe, ID111
Shipping, 1234
Sr. Operator, 123456-00
2008/01/04 - 2008/01/17

Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu
Jan04 Jan05 Jan06 Jan07 Jan08 Jan09 Jan10 Jan11 Jan12 Jan13 Jan14 Jan15 Jan16 Jan17 TOTAL
Earning Code
REG 7 7 7 7 7 7 7 7 7 63
VAC 7 7

Approvals:
Mary Secretary, ID011 on Jan15
Bob Bigboss, ID001 on Jan15

<>

Employee, Jane, ID112
Shipping, 1234
Operator, 112233-00
2008/01/04 - 2008/01/17

Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu
Jan04 Jan05 Jan06 Jan07 Jan08 Jan09 Jan10 Jan11 Jan12 Jan13 Jan14 Jan15 Jan16 Jan17 TOTAL
Earning Code
REG 7 7 7 7 7 7 7 7 7 7 70

Approvals:
Mary Secretary, ID011 on Jan15
Bob Bigboss, ID001 on Jan15

<>


Taylor, Tim, ID113
Sales, 2345
Associate, 234567-00
2008/01/04 - 2008/01/17

Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu
Jan04 Jan05 Jan06 Jan07 Jan08 Jan09 Jan10 Jan11 Jan12 Jan13 Jan14 Jan15 Jan16 Jan17 TOTAL
Earning Code
REG 5.84 7 7 7 7 7 7 7 7 7 68.84
VAC 1.16 1.16

Approvals:
Renee Receptionist, ID099 on Jan15
Jerry Bigdog, ID002 on Jan15
REPORT SAMPLE ENDS HERE



from data that looks like this:

Job Title,Dept Code,Period Start,Period End,Approver,Approver Date,Hours,Earning Code,Date,Approver Seq No,POSN,SUFF,EmpFirstName,EmpLastName,EmpID,DeptName,JobsSeqno,JobsStatusInd
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/04 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/07 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/08 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/09 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/10 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/11 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/14 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/15 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/16 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/17 00:00:00,1,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/04 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/07 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/08 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/09 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/10 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/11 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/14 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/15 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/16 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/17 00:00:00,2,112233,00,Jane,Employee,ID112,Shipping,712,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/14 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/15 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/16 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,REG,2008/01/17 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,VAC,2008/01/04 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,VAC,2008/01/07 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,VAC,2008/01/08 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,VAC,2008/01/09 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,VAC,2008/01/10 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Mary Secretary, ID011",01/15/2008,7.00,VAC,2008/01/11 00:00:00,1,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/14 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/15 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/16 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,REG,2008/01/17 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,VAC,2008/01/04 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,VAC,2008/01/07 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,VAC,2008/01/08 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,VAC,2008/01/09 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,VAC,2008/01/10 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Sr. Operator,1234,2008/01/04,2008/01/17,"Bob Bigboss, ID001",01/15/2008,7.00,VAC,2008/01/11 00:00:00,2,123456,00,Joe,Worker,ID111,Shipping,710,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,5.84,REG,2008/01/04 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/07 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/08 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/09 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/10 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/11 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/14 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/15 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/16 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,7.00,REG,2008/01/17 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Renee Receptionist, ID099",01/15/2008,1.16,VAC,2008/01/04 00:00:00,1,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,5.84,REG,2008/01/04 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/07 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/08 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/09 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/10 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/11 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/14 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/15 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/16 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,7.00,REG,2008/01/17 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C
Associate,2345,2008/01/04,2008/01/17,"Jerry Bigdog, ID002",01/15/2008,1.16,VAC,2008/01/04 00:00:00,2,234567,00,Tim,Taylor,ID113,Sales,707,C


My final TABLE request currently 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
""""" "
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?
 
Posts: 2 | Registered: July 23, 2008Report This Post
<JG>
posted
Joe, did you fall asleep when posting it looks a bit unfinished
 
Report This Post
Virtuoso
posted Hide Post
Music
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
<JG>
posted
Prarie

Love that.

Succinct and to the point.
 
Report This Post
Virtuoso
posted Hide Post
Smiler
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Virtuoso
posted Hide Post
Joe

You should put your coding and examples between these
 [code] 
[/code] tags.

It will make it better readable.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
<JG>
posted
First person to read a post should be the person who posted.
That way you can check you posted what you intended.
 
Report This Post
Member
posted Hide Post
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?
 
Posts: 2 | Registered: July 23, 2008Report This Post
Virtuoso
posted Hide Post
FOOTING
"
or one of these fields.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Report feasibility question

Copyright © 1996-2020 Information Builders