Focal Point
[CLOSED] Vertical Swim Lane Formatting Done in WebFOCUS

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3467050276

August 05, 2014, 10:03 AM
schillig
[CLOSED] Vertical Swim Lane Formatting Done in WebFOCUS
We have a request to create a WF report that mimics a current document formatted in Excel.

The data laid out :
Column 1 - Phase
Column 2 - Name
Column 3 – Business
Column 4 – Amount
Column 5 – Duration
Column 6 - Date Est
Column 7 – Effort

Phases are: Recommended, Researching, Initiation, etc (9 total)

The layout desired is a Swim Lane format, with Sections consisting of:
Phase OVER Business OVER Name

Each of those may have multiple Projects from different departments in the Swim Lane.

Because of page width, we do not want more than two “Name” listed under each Category.

I have tried various ways suggested by both IB and here on the forum, but cannot try Java Script as I do not know Java and we do not have a developer on site that does.

Has anyone ever tried something like this before successfully?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.0.7
Windows 7, 64-bit
PDF
August 05, 2014, 05:56 PM
Waz
Can you give an example of the source data structure and the resulting output ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 06, 2014, 02:41 AM
Dave
Schilling,

Like Waz asks you, please provide a sample output.



Based on what I read you should probably first make a dataset that determines which 0, 1 or 2 "Name" should be listed.

Then perhaps use defines to make columns:
FIRST_LISTED_NAME = ...whatever formula you need;
SECOND_LISTED_NAME = ...whatever formula you need;

And uses those columns to make swimlane.

Greets,
Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
August 06, 2014, 11:31 AM
schillig
quote:
Originally posted by Waz:
Can you give an example of the source data structure and the resulting output ?


 
-* File car_across.fex
TABLE FILE CAR
PRINT
     CAR.SPECS.LENGTH AS ''
     CAR.SPECS.MPG AS ''
ACROSS LOWEST CAR.ORIGIN.COUNTRY AS ''
ACROSS LOWEST CAR.COMP.CAR AS ''
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=ACROSSVALUE,
     ACROSS=1,
     BACKCOLOR='WHITE',
$
TYPE=ACROSSVALUE,
     ACROSS=2,
     BACKCOLOR='WHITE',
$
ENDSTYLE
END


So England would be my first swim lane, France would be my second swim lane, etc. Then under England it shows three types of cars - I need those to only be a maximum of two car types wide. The third type of car (Triumph) would be under Jaguar. Does that make sense?


WebFOCUS 8.0.0.7
Windows 7, 64-bit
PDF
August 06, 2014, 05:45 PM
Waz
Does this look close ?

Although I'm not sure how you want to see the Triumph data.

TABLE FILE CAR
PRINT
     LENGTH
     MPG
COMPUTE CARNO/I9 = IF COUNTRY NE LAST COUNTRY THEN 1 ELSE
IF CAR EQ LAST CAR THEN LAST CARNO ELSE LAST CARNO +1 ;
COMPUTE COLNO/I9 = IMOD(CARNO+1,2,COLNO)+1 ;
BY COUNTRY
BY CAR
ON TABLE HOLD AS TMP_SWIM
END

-*EXIT
TABLE FILE TMP_SWIM
PRINT
     LENGTH AS ''
     MPG AS ''
ACROSS COUNTRY AS ''
ACROSS COLNO AS '' COLUMNS 1 AND 2
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,$
TYPE=ACROSSVALUE,     ACROSS=1,     BACKCOLOR='WHITE',$
TYPE=ACROSSVALUE,     ACROSS=2,     BACKCOLOR='WHITE',$
ENDSTYLE
END



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 06, 2014, 06:09 PM
schillig
quote:
Originally posted by Waz:
Does this look close ?

Although I'm not sure how you want to see the Triumph data.

TABLE FILE CAR
PRINT
     LENGTH
     MPG
COMPUTE CARNO/I9 = IF COUNTRY NE LAST COUNTRY THEN 1 ELSE
IF CAR EQ LAST CAR THEN LAST CARNO ELSE LAST CARNO +1 ;
COMPUTE COLNO/I9 = IMOD(CARNO+1,2,COLNO)+1 ;
BY COUNTRY
BY CAR
ON TABLE HOLD AS TMP_SWIM
END

-*EXIT
TABLE FILE TMP_SWIM
PRINT
     LENGTH AS ''
     MPG AS ''
ACROSS COUNTRY AS ''
ACROSS COLNO AS '' COLUMNS 1 AND 2
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,$
TYPE=ACROSSVALUE,     ACROSS=1,     BACKCOLOR='WHITE',$
TYPE=ACROSSVALUE,     ACROSS=2,     BACKCOLOR='WHITE',$
ENDSTYLE
END


quote:

It is close but the TRIUMPH data would need to display underneath the JAGUAR and associated data LENGTH and MPG in the swim lane 'ENGLAND'. So it would like there is 3 'boxes' of data under ENGLAND.



WebFOCUS 8.0.0.7
Windows 7, 64-bit
PDF