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     [CLOSED] Moving (local) variable to field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Moving (local) variable to field
 Login/Join
 
Gold member
posted
Is there a possibility to move a local variable to a field?

The reason for asking this question is that WF does the line feed for fields in the correct way but not for headings or footings.

My fex looks like that (and also look for the comments I do):
-* start of fex
-*
-*-SET &ECHO = ALL;
-*
-* This &HTML_TEXT is read from a table by an index
-* eight times in the original fex
-SET &HTML_TEXT = 'Dies ist mein HTML-Text
mit einem Zeilenumbruch XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
-*
DEFINE FUNCTION RHTMLPDF (XXINSTR/A1024)
-*
STRY /A1024 = XXINSTR;
STRY00 /A1024 = STRREP(1024, STRY, 3, '', 0, 'xxx', 1024, 'A1024');
STRY01 /A1024 = STRREP(1024, STRY00, 3, '

', 0, 'xxx', 1024, 'A1024');
STRY02 /A1024 = STRREP(1024, STRY01, 4, '
', 0, 'xxx', 1024, 'A1024');
STRY03 /A1024 = STRREP(1024, STRY02, 4, '

', 0, 'xxx', 1024, 'A1024');
STRY04 /A1024 = STRREP(1024, STRY03, 4, '
', 1, '^', 1024, 'A1024');
STRY05 /A1024 = STRREP(1024, STRY04, 5, '
', 0, 'xxx', 1024, 'A1024');
STRY06 /A1024 = STRREP(1024, STRY05, 7, ' STRY07 /A1024 = STRREP(1024, STRY06, 4, '', 0, 'xxx', 1024, 'A1024');
-*
RHTMLPDF /A1024 = STRY07;
END
-RUN
-*
-SET &PDF_TEXT = RHTMLPDF(&HTML_TEXT);
-SET &PDF_TTLB = CTRAN(1024, &PDF_TEXT, 94, 13, 'A1024');
-*
-*
DEFINE FILE CAR
HTML_ALT/A1024 = 'Dies ist mein HTML-Text
mit einem Zeilenumbruch XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
HTML_NEU/A1024 = RHTMLPDF(HTML_ALT);
HTML_NEU2/A1024 = CTRAN(1024, HTML_NEU, 94, 13, 'A1024');
END
TABLE FILE CAR
PRINT
CAR
MODEL
HTML_NEU2
BY COUNTRY
WHERE RECORDLIMIT EQ 1
HEADING
"PDF_TEXT text: &PDF_TEXT"
FOOTING
"PDF_TTLB text: &PDF_TTLB"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
-*
TYPE=REPORT,
LINEBREAK='CR',
-*
GRID=OFF, SIZE=8, FONT=ARIAL,
$
TYPE=DATA,
SIZE=8, FONT= ARIAL,
BORDER-TOP=OFF, BORDER-BOTTOM=OFF, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE,
BACKCOLOR=( WHITE RGB(238 238 238) ),
$
TYPE=TITLE,
BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT, BORDER-TOP-COLOR=WHITE,
BORDER-BOTTOM-COLOR=WHITE, BORDER-LEFT-COLOR=WHITE,
BORDER-RIGHT-COLOR=WHITE,
$
ENDSTYLE
END
-* end of fex

Thank you very much in advance

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


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Virtuoso
posted Hide Post
First of all, if you post code place it between the code tags, this is the red < / >icon when you're entering your post.

I'm not quite sure what it is that you're looking for, but maybe the below helps a bit:
-SET &HTML_TEXT = 'Dies ist mein HTML-Text <br>' | 
-                 'mit drei Zeilen XXXXXXXXXXXXXXX<br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' |
-                 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
-*
DEFINE FILE CAR
HTML_TXT/A1024 = 'Dies ist mein HTML-Text <br>' |
                 'mit mehrere Zeilen<br>' |
                 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>' |
                 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>' |
                 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>' |
                 'XXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxx<br>' |
                 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
HLINE/A1024 = &HTML_TEXT.QUOTEDSTRING;
END
TABLE FILE CAR
PRINT CAR
      MODEL
      HTML_TXT
BY COUNTRY
WHERE RECORDLIMIT EQ 1
HEADING
"<HLINE"
""
""
""
FOOTING
""
""
""
""
""
"<HLINE"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, LINEBREAK='CR', GRID=OFF, SIZE=8, FONT=ARIAL, $
TYPE=HEADING, SIZE=8, markup=on, FONT=ARIAL, $
TYPE=footing, SIZE=8, markup=on, FONT=ARIAL, $
TYPE=DATA, column=html_txt, SIZE=8, markup=on, FONT=ARIAL, $
ENDSTYLE
END
And I also do not know if this feature (markup=on) is alreeady available in the 76 version that you're using.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Works !!!

Thank you very much.

Because I'm new in this forum I don't know all rule of the game.


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report 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     [CLOSED] Moving (local) variable to field

Copyright © 1996-2020 Information Builders