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     [SOLVED] How to set right margin in heading with WRAP function

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to set right margin in heading with WRAP function
 Login/Join
 
Member
posted
Hi,
I am using wrap function in the heading of the report. But it is giving the text only left justified and text is not aligned in the right side.

How can i get the report left and right justified when using the wrap function ?

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.1
Windows
All Outputs
 
Posts: 11 | Registered: November 25, 2009Report This Post
Expert
posted Hide Post
WF does not support Left to Right justification.

I had a quick look at this, and its quite complicated to post process and convert.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
I believe you're talking about "Full Justification" and no, it's not supported in WebFOCUS.


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
Member
posted Hide Post
Waz/Darin,
Thanks for your responses.

Isn't possible during wrapping itself it should full justify it.
or
is there any other way to bring data on multiple lines with left and right justification in the header. Since i am passing a variable in the header like "
v_test/A400='Please find attached ' || NO_OF_COPIES || ' of your report for' || FUND_NAME || '. If you have any queries regarding the review or any other matter, please contact your Client Services Manager directly or email your enquiry to client.enquiries@abc.com where it will be picked up by a member of the team.';

here FUND_NAME can have length upto 100 characters and getting derived from SQLOUT.
in heading the below code is given.

TYPE=HEADING,
LINE=19,
FONT='ARIAL',
SIZE=12,
POSITION=(0.60 5.40),
WRAP=5.70,
$

Suggest if you have any other idea to handle this.

Regards,
Ravneet


WebFOCUS 7.6.1
Windows
All Outputs
 
Posts: 11 | Registered: November 25, 2009Report This Post
Virtuoso
posted Hide Post
Is this for PDF output? If so, this link provides a technique for generating full justification.

http://techsupport.information...om/sps/43322507.html

Another alternative is to split the text manually by using the PARAG function to place a delimiter every so many places and then use the GETTOK function to split the text into chunks of more or less equal length. There have been a number of postings regarding this technique in this forum. This won't give you perfect full justification, but it might be adequate.

V_TEST/A400='Please find attached ' || NO_OF_COPIES || ' of your report for' || FUND_NAME || '. If you have any queries regarding the
review or any other matter, please contact your Client Services Manager directly or email your enquiry to client.enquiries@abc.com where
it will be picked up by a member of the team.';
PARAGTXT/A410 = PARAG(400, V_TEST, '|', 100, PARAGTXT);
SUBHEAD1/A100 = GETTOK(PARAGTXT, 410, 1, '|', 100, SUBHEAD1);
SUBHEAD2/A100 = GETTOK(PARAGTXT, 410, 2, '|', 100, SUBHEAD2);
SUBHEAD3/A100 = GETTOK(PARAGTXT, 410, 3, '|', 100, SUBHEAD3);
SUBHEAD4/A100 = GETTOK(PARAGTXT, 410, 4, '|', 100, SUBHEAD4);


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Many Thanks Dan,
I have used the method given in the above link.

It worked fine but with a small issue still there.

the output of the car example given is

ENGLAND Fully Justified Heading: Customer Service Is
Everything. At Information Builders, we are as open and flexible as
our software, and our customers are our greatest asset. For every
new product and feature, there's a customer who drove it. For every
customer there's an answer. Our customer-centric philosophy is
backed up by an integrated support network of people passionately
dedicated to the success of your business initiatives. Consulting,
Education, Technical Support, Product Development the support
network is the sum of these groups, and it stands ready to help you.
Information Builders has also created a community Web site for our
developers.At Focal Point, you can visit our message boards and
browse through numerous helpful resources.browse through numerous helpful resources.

the las line "browse through numerous helpful resources." is repeating twice.

Can you suggest again how to supress the repeating last line?

Regards,
Ravneet


WebFOCUS 7.6.1
Windows
All Outputs
 
Posts: 11 | Registered: November 25, 2009Report This Post
Member
posted Hide Post
Thanks Dan,

MARKUP=ON is also required.

Regards,
Ravneet


WebFOCUS 7.6.1
Windows
All Outputs
 
Posts: 11 | Registered: November 25, 2009Report This Post
Expert
posted Hide Post
Wow, you always learn something new in this forum. Good One


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
You can also achieve full justification in HTML and EXCEL output, but it requires an external style declaration in conjunction with HTMLFORM.
This same code will generate HTML output simply by removing the line: SET HTMLFORMTYPE = XLS.

DEFINE FILE CAR
 XX/A1000 = '<b>' | COUNTRY | 'Fully Justified Heading:</b> Customer Service Is Everything. At Information Builders, we are as open and flexible as our software, and our customers are our greatest asset. For every new product and feature, there's a customer who drove it. For every customer there's an answer. Our customer-centric philosophy is backed up by an integrated support network of people passionately dedicated to the success of your business initiatives. Consulting, Education, Technical Support, Product Development the support network is the sum of these groups, and it stands ready to help you. Information Builders has also created a community Web site for our developers. At Focal Point, you can visit our message boards and browse through numerous helpful resources.';
END
-*
TABLE FILE CAR
 BY COUNTRY NOPRINT PAGE-BREAK
 HEADING
  "<XX"
 ON TABLE SET PAGE-NUM OFF
 ON TABLE HOLD FORMAT HTMTABLE
 ON TABLE SET STYLE *
 TYPE=REPORT, FONT=COURIER, SIZE=10, $
 TYPE=HEADING, CLASS=justify, $
 ENDSTYLE
END
-*
SET HTMLFORMTYPE = XLS
-*
-RUN
-HTMLFORM BEGIN
<style type="text/css">
.justify {text-align:justify;}
</style>
!IBI.FIL.HOLD;
-HTMLFORM END

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Virtuoso
posted Hide Post
Well....actually you don't need to use HTMLFORM with HTML and EXCEL output to accomplsih full justification. You can place in-line style
justification attributes directly into your text. But don't forget to place the closing
</p>
marker at the end of the text.

DEFINE FILE CAR
 XX/A1000 = '<p style="text-align:justify"><b>' | COUNTRY | 'Fully Justified Heading:</b> Customer Service Is Everything. At Information Builders, we are as open and flexible as our software, and our customers are our greatest asset. For every new product and feature, there's a customer who drove it. For every customer there's an answer. Our customer-centric philosophy is backed up by an integrated support network of people passionately dedicated to the success of your business initiatives. Consulting, Education, Technical Support, Product Development the support network is the sum of these groups, and it stands ready to help you. Information Builders has also created a community Web site for our developers. At Focal Point, you can visit our message boards and browse through numerous helpful resources.</p>';
END
-*
TABLE FILE CAR
 BY COUNTRY NOPRINT PAGE-BREAK
 HEADING
  "<XX"
 ON TABLE SET PAGE-NUM OFF
 ON TABLE SET HTMLCSS ON
 ON TABLE PCHOLD FORMAT EXL2K
-* ON TABLE PCHOLD FORMAT HTML
 ON TABLE SET STYLE *
 TYPE=REPORT, FONT=COURIER, SIZE=10, $
 ENDSTYLE
END

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report 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     [SOLVED] How to set right margin in heading with WRAP function

Copyright © 1996-2020 Information Builders