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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Dealing with special characters in data fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Dealing with special characters in data fields
 Login/Join
 
Silver Member
posted
I am trying to do the following:

  
TABLE FILE TBL1
PRINT
  CUSTNAME
WHERE CUSTNO EQ &CNO
ON TABLE HOLD AS CNAME FORMAT ALPHA
END
-RUN
-READ CNAME &CUST_NAME.A30.
-RUN


It works wonderfully until I run into a name with special characters such as 'N&R CONCRETE'.

How does one work around this?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8202M
Client: Windows Server 2012R2/Tomcat 8.0/IIS
Server: IBM i v7r2m0
MS-SQL
 
Posts: 28 | Location: Saskatchewan, Canada | Registered: March 03, 2011Report This Post
Guru
posted Hide Post
Use a quoted string.

quote:
'&CNO.EVAL'


We ran into this a few years back, but we did some data scrubbing.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Silver Member
posted Hide Post
It's not the &CNO that's causing the issue, it's reading the CUSTNAME.


WebFOCUS 8202M
Client: Windows Server 2012R2/Tomcat 8.0/IIS
Server: IBM i v7r2m0
MS-SQL
 
Posts: 28 | Location: Saskatchewan, Canada | Registered: March 03, 2011Report This Post
Virtuoso
posted Hide Post
Is there an error message? I would expect the -READ to work without a hitch.

-- But if you have a line further down with
&CUST_NAME.EVAL

that could cause a problem ("&R is undefined")
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
I actually use the field as an input to an HTML page so it tries displaying in a text field !IBI.AMP.CUST_NAME; The HTML page just spins and doesn't load .... every.

I've done some more tracing and it does look like all the dialogue manager code is executing just fine, it's when it hits that HTML page.


WebFOCUS 8202M
Client: Windows Server 2012R2/Tomcat 8.0/IIS
Server: IBM i v7r2m0
MS-SQL
 
Posts: 28 | Location: Saskatchewan, Canada | Registered: March 03, 2011Report This Post
Platinum Member
posted Hide Post
You could replace any customer names that have a & symbol to &| so 'N&R CONCRETE' becomes 'N&|R CONCRETE' and then it will not error because it can't resolve &R.
Ian


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Expert
posted Hide Post
lenny, once you have read the custname into the variable &CUSTNAME, then whenever you reference that variable later, be SURE to use
&CUST_NAME.QUOTEDSTRING
and that should avoid the & problem.
eg:
DEFINE FILE CAR
somename/A30 WITH CAR = &CUST_NAME.QUOTEDSTRING ;
...
or
IF SOMEFIELD EQ &CUST_NAME.QUOTEDSTRING

If you're having issues still, with your html page, then do it the hard way and sledge hammer some quotes around it
-SET &CUST_NAME='''| &CUST_NAME || ''';
(you may have to tinker with that, i can't log on to test it right now)




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
Platinum Member
posted Hide Post
Hi,
try with this..
May be it will help....
==========================
TABLE FILE TBL1
PRINT
CUSTNAME
WHERE CUSTNO EQ &CNO
ON TABLE HOLD AS CNAME FORMAT ALPHA
END
-RUN
-READ CNAME &DUMMY.A6. &CUST_NAME.A30.
-RUN


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report 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] Dealing with special characters in data fields

Copyright © 1996-2020 Information Builders