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] How to enclose a column name with single quotes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to enclose a column name with single quotes
 Login/Join
 
Member
posted
I am trying to add single quotes to a field name as shown below. However, no value is passed on to the target procedure. Please advise

TYPE=DATA,
COLUMN=sub_cnt,
COLOR=BLUE,
TARGET=_BLANK,
FOCEXEC=xxxx.fex (
CTRY_LIST=country.QUOTEDSTRING)

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


Webfocus 8
Windows, All Outputs
 
Posts: 22 | Registered: May 07, 2013Report This Post
Virtuoso
posted Hide Post
.QUOTEDSTRING can only be applied to Dialogue Manager's &variables, not to actual table or hold file fields.

Why do you want to add quotes to it? the notation CTRY_LIST=country should build a proper URL for your drill-down hyperlink.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
If you need, for any reasons, your country list enclosed between quotes, I suggest to add them in your drill-down fex which is receiving the value in an amper variable.

-*FEX : xxxx.fex

-SET &CTRY_LIST = &CTRY_LIST.QUOTEDSTRING;


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
quote:
-SET &CTRY_LIST = &CTRY_LIST.QUOTEDSTRING;

Actually, that does nothing. The .QUOTEDSTRING implies .EVAL, and the assignment strips off the enclosing quotes, so net-net you're left with the original value.

Code:
-DEFAULT &z1 = O'Realy & O'Reily ;
-SET &z2 = &z1.QUOTEDSTRING ;
-SET &z3 = '''' | &z1.QUOTEDSTRING | '''' ;
-? &z

Result:
CURRENTLY DEFINED & VARIABLES STARTING WITH 'z':
 &z1           = O'Realy & O'Reily
 &z2           = O'Realy & O'Reily
 &z3           = 'O'Realy & O'Reily'


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
Thank you! It's now working. I made a change in the target procedure.

-*FEX : xxxx.fex
-* This procedure is used by other reporting applications
-*
-* CTRY_LIST can have multiple alphanumeric values (comma delimited and enclosed in quotes)
-*

-DEFAULT &CTRY_LIST ='FOC_NONE';

-SET &CTRY_LIST_X = IF &SOURCE_CODE = 'Fex1' THEN '''' || &CTRY_LIST || '''' ELSE &CTRY_LIST;

ENGINE SQLPSTGR SET DEFAULT_CONNECTION ServiceMetrics
SQL SQLPSTGR PREPARE COUNTRY_TXNS FOR
select distinct c.country,
sum(transaction_cnt) as country_cnt
from country_rollup sdc
join geo.countries c on sdc.country_code = c.iso2
where 1 =1
and c.country in (&CTRY_LIST_X)
group by
country
) foo

END


Webfocus 8
Windows, All Outputs
 
Posts: 22 | Registered: May 07, 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     [SOLVED] How to enclose a column name with single quotes

Copyright © 1996-2020 Information Builders