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     [CASE-OPENED] Data Alignment after a WRAP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED] Data Alignment after a WRAP
 Login/Join
 
Platinum Member
posted
Hopefully this is a simple one......
I want to align MODEL and RCOST to be placed to the right of the LAST part of the wrapped CAR name eg. in the example below against MEO (the last line of ALPHA ROMEO) and ATI (the last last of MASERATI) and NOT the first line of the WRAP. Here is my code....
 
TABLE FILE CAR
PRINT MODEL RCOST
   BY COUNTRY 
   BY CAR UNDER-LINE
WHERE COUNTRY EQ 'ITALY';
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='A4',
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     FONT=Helvetica,
     SIZE=9,
     COLOR='BLACK',
     STYLE=NORMAL,
$
TYPE=REPORT,
     COLUMN=CAR,
     WRAP=0.3,
$
TYPE=DATA,
     SIZE=9,
     BACKCOLOR=( RGB(234 234 255) 'WHITE' ),
$
TYPE=DATA,
     COLUMN=RCOST,
     JUSTIFY=LEFT,
$
TYPE=TITLE,
     BORDER=LIGHT,
     BORDER-STYLE=RIDGE,
     BORDER-COLOR=RGB(51 51 153),
     SIZE=9,
     STYLE=BOLD,
$
ENDSTYLE
END
-RUN


Regards,
Ian

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


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
Don't believe this is possible Ian.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Platinum Member
posted Hide Post
Yes you maybe right Alan, but if you change the FORMAT to EXL07 it works fine.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Platinum Member
posted Hide Post
Due to lack of replies apart from Alan B, I am opening a new case for this unless I hear from anyone out there who has a workaround.
Regards,
Ian


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Master
posted Hide Post
Try this. Will it help.
SET NODATA = ''
APP PATH IBISAMP
-RUN
TABLE FILE CAR
SUM 
COMPUTE MODEL_1/A50=''; 
COMPUTE RCOST_1/I11=0;
BY COUNTRY 
BY CAR
WHERE COUNTRY EQ 'ITALY';
ON TABLE HOLD AS HLD_1
ON TABLE SET HOLDLIST PRINTONLY
END
-RUN
TABLE FILE CAR
PRINT 
COMPUTE MODEL_1/A50=MODEL; 
COMPUTE RCOST_1/I11=RCOST;
BY COUNTRY 
BY CAR
WHERE COUNTRY EQ 'ITALY';
ON TABLE HOLD AS HLD_2
ON TABLE SET HOLDLIST PRINTONLY
END
-RUN
?FF HLD_1
?FF HLD_2
TABLE FILE HLD_2
PRINT
COUNTRY
CAR
MODEL_1
RCOST_1
ON TABLE HOLD AS HLD_3
MORE
FILE HLD_1
END
-RUN

TABLE FILE HLD_3
PRINT 
MODEL_1
COMPUTE RCOST_2/I11 MISSING ON = IF MODEL_1 NE '' THEN RCOST_1 ELSE MISSING;
BY COUNTRY 
BY CAR UNDER-LINE
BY MODEL_1 NOPRINT
WHERE COUNTRY EQ 'ITALY';
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     UNITS=IN,      PAGESIZE='A4',      SQUEEZE=ON,      ORIENTATION=LANDSCAPE, $
TYPE=REPORT,      FONT=Helvetica,      SIZE=9,      COLOR='BLACK',      STYLE=NORMAL, $
TYPE=REPORT,      COLUMN=CAR,      WRAP=0.3, $ 
TYPE=DATA,      SIZE=9,      BACKCOLOR=( RGB(234 234 255) 'WHITE' ), $
TYPE=DATA,     COLUMN=RCOST,     JUSTIFY=LEFT, $
TYPE=TITLE,     BORDER=LIGHT,     BORDER-STYLE=RIDGE,     BORDER-COLOR=RGB(51 51 153),     SIZE=9,     STYLE=BOLD, $
ENDSTYLE
END
-RUN

 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Virtuoso
posted Hide Post
I don't thing that it does Ram.
What Ian wants, if I'm understanding properly, it's to have the "2000 GT VELOCE 6820" on the same line as "MEO" and "DORA 2 DORR 31500" on the same line as "ATI" as Excel does which I think it's not possible.

When you WRAP data, WF creates new "virtual" lines on the report (PDF format) to display the whole data and for WF the MODEL_1 and RCOST_2 data are placed on the same line as CAR. But for Excel it creates cell and just carriage return in the same cell for the WRAP.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Your workaround is pretty close Ram so many thanks for this but as Martin quite rightly mentions, ideally, I would like the model on the same line as 'MEO' etc. If we can't, then I will go with Ram's technique.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Master
posted Hide Post
In your example I could see 3 characters in first line where as 2 characters in second line. If its going to be same number of characters in each WRAP row, then it should be possible. Space required to display character W is different from that of character I. So its difficult to predict number of WRAP lines of each CAR value. That's the real challenge here.
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report 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     [CASE-OPENED] Data Alignment after a WRAP

Copyright © 1996-2020 Information Builders