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] Set an URL with ampersand(&) in it to a variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Set an URL with ampersand(&) in it to a variable
 Login/Join
 
Gold member
posted
I need to set a variable as below:-

-SET &URL_LINK = 'http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management&LMCS_ID=studies

but i am not able to do so. It is giving error as "value missing for LMCS_ID". how can I nullify the ampersand(&) effect?

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


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Silver Member
posted Hide Post
Include a pipe symbol after the '&' to avoid this.

-SET &URL_LINK = 'http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management&|LMCS_ID=studies';


Webfocus 8002M, 8009
OS: Windows7
 
Posts: 33 | Registered: July 31, 2008Report This Post
Gold member
posted Hide Post
Now i think pipe did nullify &, but it is giving new error now. As
(FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE: 462
URL=http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management&LMCS_ID=studies/


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Virtuoso
posted Hide Post
MKS,
Can you show the stylesheet element where you have the URL? Maybe you have a comma or a comma-dollar missing?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Gold member
posted Hide Post
Here it is

TYPE=SUBHEAD,
BY=11,
LINE=2,
OBJECT=TEXT,
ITEM=2,
SIZE=14,
COLOR='RED',
URL=&URL_LINK,
$


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Gold member
posted Hide Post
I have checked it and it seams the ' =' in the URL is creating trouble. I have tried to escape the '=' using pipe(|) but it didn't work as it did for '&'.

Any thoughts please....


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Guru
posted Hide Post
Have tried directly without using the variable URL_LINK?

TYPE=SUBHEAD,
BY=11,
LINE=2,
OBJECT=TEXT,
ITEM=2,
SIZE=14,
COLOR='RED',
URL=http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management&|LMCS_ID=studies,$

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
Gold member
posted Hide Post
quote:
directly without using the variable URL_LINK



I have tried that too. It gave same error.


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Virtuoso
posted Hide Post
If you enc;lose the URL value in quotes(like 'RED' in the line above that), that may overcome the stylesheet parser's dyslexia.
TYPE=SUBHEAD,
BY=11,
LINE=2,
OBJECT=TEXT,
ITEM=2,
SIZE=14,
COLOR='RED',
URL='&URL_LINK',
$
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Gold member
posted Hide Post
quote:
http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management&|LMCS_ID=studies

This too didn't help me, it gave error as
(FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE: 462 URL=http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management&LMCS_ID=studies


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Virtuoso
posted Hide Post
The url you use is a standard URL with parameters. That means that you should code your URL with parameters in the syntax provided for this. So, code it as follows:
URL=http://www.XXXXXX.com/yy/as/df/kl(LMCS_UGT='management' LMCS_ID='studies'), $

and your problems are gone.

Hope this helps ...


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
GamP,
Thanks a lot that did the trick, it worked.


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Master
posted Hide Post
This my be easier

-SET &URL_LINK = 'http://www.XXXXXX.com/yy/as/df/kl?LMCS_UGT=management' | '&' | 'LMCS_ID=studies';




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
Tex,
The string has to be used in a drill-down instruction in the style sheet. It won't work that way. In styling you have to do it the parameterized way that I showed a few posts back in this thread.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 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] Set an URL with ampersand(&) in it to a variable

Copyright © 1996-2020 Information Builders