Focal Point
[CLOSED] Need to have an & as part of report title

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

November 15, 2017, 09:56 AM
RobertF
[CLOSED] Need to have an & as part of report title
I simply want to hard code my report title to:

B&G Department

When I do this it prompts me for: G!

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


WebFOCUS 8206.08
Windows, All Outputs
November 15, 2017, 09:59 AM
BabakNYC
Could you post your example? By title are you looking for the column title or are you talking about the heading of the report?

 TABLE FILE CAR
SUM SALES
BY COUNTRY AS 'B&|G'
BY CAR
HEADING
"B&|G"
ON TABLE PCHOLD FORMAT HTML
END 



WebFOCUS 8206, Unix, Windows
November 15, 2017, 10:16 AM
RobertF
Not looking to substitute...just want the literal value:

TABLE FILE TBLMSTR_MESSAGES
PRINT
TBLMSTR_MESSAGES.TBLMSTR_MESSAGES.MESSAGE
TBLMSTR_MESSAGES.TBLMSTR_MESSAGES.CONDSW NOPRINT
ON TABLE SUBHEAD
"This Report is specifically for the B&G Department"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML


WebFOCUS 8206.08
Windows, All Outputs
November 15, 2017, 10:25 AM
RobertF
further...assuming I get the B&G literal in my title....I want the title to act as a link to PDF doc on our share. I have done this successfully before as shown below... but this time its erroring out because the one folder name has a 'space' in it's name and perhaps because the next folder has an '&'..anyone know the syntax to get this to work?

TABLE FILE TBLMSTR_MESSAGES
PRINT
TBLMSTR_MESSAGES.TBLMSTR_MESSAGES.MESSAGE
TBLMSTR_MESSAGES.TBLMSTR_MESSAGES.CONDSW NOPRINT
ON TABLE SUBHEAD
"This Report is specifically for the XXX Department. Click Here for Dept Head List"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=REPORT,
TARGET='_blank',
URL=X:\Main\my reports\D&H\DeptHeadlst.PDF,
$
ENDSTYLE
END


WebFOCUS 8206.08
Windows, All Outputs
November 15, 2017, 10:33 AM
Frans
Did you try quote or double quote around the URL?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
November 15, 2017, 10:35 AM
BabakNYC
quote:
ON TABLE SUBHEAD
"This Report is specifically for the B&|G Department"


You need a pipe between the & and G.

 
TABLE FILE CAR
BY  COUNTRY
ON TABLE SUBHEAD
"This Report is specifically for the B&|G Department"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = warm,
$
TYPE=TABHEADING,
     FOCEXEC=ibisamp/carinst( \
     CONTRY=COUNTRY \
     ),
          TARGET='_blank',
$
ENDSTYLE
END
 



WebFOCUS 8206, Unix, Windows
November 15, 2017, 10:46 AM
RobertF
quote:
TYPE=REPORT, TARGET='_blank', URL=X:\Main\my reports\D&H\DeptHeadlst.PDF,$

Pipe Worked!

Any idea how the syntax for the hyperlink:
TYPE=REPORT,
TARGET='_blank',
URL=X:\Main\my reports\D&H\DeptHeadlst.PDF,
$


WebFOCUS 8206.08
Windows, All Outputs
November 15, 2017, 11:36 AM
Frans
quote:
TYPE=REPORT,
TARGET='_blank',
URL=X:\Main\my reports\D&H\DeptHeadlst.PDF,
$


COMPUTE URLTXT/A150='X:\Main\my reports\D&|H\DeptHeadlst.PDF';
..........
TYPE=REPORT,
TARGET='_blank',
URL=(URLTXT),
$


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.