Focal Point
[CLOSED] Title BOLD Variable after break with ,

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

February 12, 2019, 10:44 AM
jenni
[CLOSED] Title BOLD Variable after break with ,
Hi,

I've got a title, where I Need to style one part bold.

Did it, but in that part my Title got a , sothat it's in the next Line.


-DEFAULTH &FONDSAUSWEIS_FETT=' ';
TABLE FILE SQLOUT
PRINT
COMPUTE FONDAUSWEIS_FETT/A200 = '' || STR2 || ''; AS 'FONDSAUSWEIS_FETT'
WHERE STR1 EQ 'FONDSAUSWEIS';
ON TABLE HOLD AS H_FONDSAUSWEIS_FETT FORMAT SQL_SCRIPT
END
-RUN
-READFILE H_FONDSAUSWEIS_FETT
-CLOSE H_FONDSAUSWEIS_FETT
-RUN
...

BY LEER AS '&DISCL_FSP ,,&FONDSAUSWEIS_FETT'
...

TYPE=TITLE, STYLE=NORMAL, FONT=&FONT, SIZE=11, JUSTIFY=LEFT, BORDER-TOP=LIGHT, BORDER-COLOR=WHITE, MARKUP=ON,$


where &FONDAUSWEIS_FETT is something like "blabla1, blabla2"

The blabla2 is not bold, and I don't know how to Change.

The Problem is, that &DISCL_FSP is not supposed to be bold

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Windows, All Outputs
February 12, 2019, 11:19 AM
MartinY
You cannot style differently a column title based on the displayed line.
A column title it's one element that can be styled one way only,
The use of the coma only produce a carriage return/line feed, not two elements (first line, second line) that can be referenced

But you can maybe use the SUBHEAD instead of column TITLE


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 12, 2019, 11:38 AM
David Briars
Try something like...?
TABLE FILE CAR
PRINT CAR AS 'Ford has a, <b> BOLDER </b> Idea'
END

This message has been edited. Last edited by: David Briars,
February 12, 2019, 01:25 PM
MartinY
TABLE FILE CAR
PRINT CAR AS 'Ford has a, [b] BOLDER [/b] Idea'
END

Good One


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 12, 2019, 03:16 PM
Waz
You can also use MARKUP to style items on the report.

RE: [SOLVED] Formatting bits of text in output formats


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

February 19, 2019, 03:44 AM
jenni
already did, but when there is a break within the Bold area, the part after the break is normal again.

that's the Problem.

... part which has to be bold, not bold anymore


WebFOCUS 8.1.05
Windows, All Outputs
February 19, 2019, 01:18 PM
Waz
Does this work for you ?, it bolds the first and second line of the title.

TABLE FILE CAR
PRINT COUNTRY AS '<b>My,Country</b>,Title'
ON TABLE SET STYLE *
MARKUP=ON, $
END



Can you supply a working example with one of the sample files ?

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


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

February 20, 2019, 06:19 AM
jenni
quote:
TABLE FILE CAR
PRINT COUNTRY AS 'My,Country,Title'
ON TABLE SET STYLE *
MARKUP=ON, $
END


ACTUALLY it doesn't work at al, I'm in Version 8.204

I think there hast to be <> instead of [] anyway


WebFOCUS 8.1.05
Windows, All Outputs
February 20, 2019, 10:08 AM
Les J
This worked for me.

TABLE FILE CAR
PRINT COUNTRY AS 'My,Country,Title'
ON TABLE SET STYLE *
MARKUP=ON, $
END


WebFOCUS 8

Windows, All Outputs
February 20, 2019, 03:09 PM
Waz
quote:
I think there hast to be <> instead of [] anyway



Either I posted [] or Focalpoint changed it.

Should have been <>


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

February 21, 2019, 09:49 AM
Les J
I think my code I posted got transformed. I added spaces and double quotes to avoid any transformations.

PRINT COUNTRY AS 'My, "<" b ">" Country "<" "/" b ">",Title'


WebFOCUS 8

Windows, All Outputs
February 24, 2019, 03:06 PM
Waz
When you post code, please use the code tags, top right in the options bar.

</>


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

February 25, 2019, 09:33 AM
Les J
Never noticed that. Thanks Waz


WebFOCUS 8

Windows, All Outputs