Focal Point
FML/Hierarchy Report & Bursting?
September 09, 2008, 08:41 AM
jyerdonFML/Hierarchy Report & Bursting?
Hey guys,
I have a report that I am trying to create (dynamic hierarchy/FML) that needs to be bursted.
TABLE FILE VIEW1
PRINT
BIG_BOSS AS 'Director' OVER
BOSS AS 'Manager'
BY DEPT
FOR BOSS '123456789'
WITH CHILDREN ALL
END
Basically I'm wanting to burst the report on DEPT, and print in each bursted report the BIG_BOSS (the boss of BOSS). However, the BOSS of '123456789' will only be in the topmost department, as he runs the company.
Does anybody have any experience with bursting and FML/hierarchy or have any thoughts on what I'm trying to do?
Thanks very much in advance!
WF Dev Studio 7.6.5 on WF Serv 7.1.6/UNIX
-******************-
WF Production Version: WF 7.1.3, 7.1.6, 7.6
WF Test Version: WF 7.1.3, 7.1.6, 7.6
Platform: UNIX, Windows, SUN
September 09, 2008, 11:16 AM
Darin LeeSounds like your BY needs to go AFTER the FOR and not before it.
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
September 10, 2008, 03:47 PM
jyerdonHey Darin,
Thanks for the suggestion. Putting the BY before the FOR does make it burst. However, it seems that when doing that, the report displays the company wide hierarchy in every single bursted report. I had been hoping that it would show the DEPT specific hierarchy.
From this experiment and some information/direction from Noreen, it's looking like I would have to have a specific FOR parent for each dept to get it to display the way I want.
Ah well. Any other thoughts?
Thanks again for your help Darin!
Jacob
-******************-
WF Production Version: WF 7.1.3, 7.1.6, 7.6
WF Test Version: WF 7.1.3, 7.1.6, 7.6
Platform: UNIX, Windows, SUN
September 11, 2008, 05:42 AM
hammo1jWhat you will have to do is
Get a list of bosses into a file and then load them into amper variables and call a parameterised version of your program
-REPEAT LOOP UNTIL nomore bosses
EXEC SHOWHIERARCHY STARTBOSS=&READBOSS
-RUN
DOS commandlineemail
-LOOP
SHOWHIERARCHY contains
FOR BOSS '&STARTBOSS'
ON TABLE HOLD FORMAT HTML
Here's where to get your free SMTP sender
http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htmGood luck!
Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
September 12, 2008, 09:30 AM
jyerdonI'll go try that. I was thinking maybe coding a compound report using a loop with parameters.
This looks simpler though; I'll try it and respond back.
Thanks!
-******************-
WF Production Version: WF 7.1.3, 7.1.6, 7.6
WF Test Version: WF 7.1.3, 7.1.6, 7.6
Platform: UNIX, Windows, SUN
September 12, 2008, 12:09 PM
Darin LeeIf you add WHEN EXISTS to your FOR statement, does it work any better?
FOR BOSS '123456789' WITH CHILDREN ALL WHEN EXISTS
Hopefully, it might only display the hierarchy that exists for each department as appropriate.
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