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     Ampersand in string variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Ampersand in string variable
 Login/Join
 
Gold member
posted
All,

Have an ampersand in the string that is passed in.

When I use something like this
HEADING
""
""
"&BR"
""
And the value is in &BR is "Bill & Jake"

I get "Bill" only.
What is the work around for this problem?
Thanks in advance.
 
Posts: 72 | Registered: April 03, 2006Report This Post
Master
posted Hide Post
If that value is hardcoded one, then you can make that as Bill & amp Jake.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Guru
posted Hide Post
Here is something else you can try:
-SET &STRING = 'Bill &| Jake';
-TYPE STRING: &STRING


Also if you are getting the string passed from a GUI you could ascii encode the string. We did this and it works great.

Your url should look something like this:
http://servername/ibi_apps/WFServlet?IBIF_ex=report.fex&HEADING=Bill+%26+Jake

This message has been edited. Last edited by: reFOCUSing,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Expert
posted Hide Post
I decided to replace all the & in my inbound character strings with + using the CTRAN function.
MYFIELD/A30=CTRAN(MYFIELD,30,38,43,MYFIELD);
ascii for & is 38 and for + is 43
Cheating, i know,
but works for me!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Used the recommended suggestion from reFocusing in my VB.net code and it worked like a charm.
 
Posts: 72 | Registered: April 03, 2006Report 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     Ampersand in string variable

Copyright © 1996-2020 Information Builders