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     Passing Quoted String to Focexec in Stylesheet (Drilldown)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Passing Quoted String to Focexec in Stylesheet (Drilldown)
 Login/Join
 
Guru
posted
I have a focexec that is run using a launch html. The html passes a variable to the focexec using multi-select list box. This variable is used in a WHERE statement. Due to multi-select option, the value(s) passed by the HTML is already enclosed in quotes. So the WHERE clause & var is not enclosed in quotes.

Now, I want to use the same focexec in a drilldown from another focexec. I'm trying to pass the required parameter but I couldn't figure out how to pass it with quotes.
Here's the stylesheet code:
TYPE=DATA,
     COLUMN=RNAME,
	 FOCEXEC=DTIME(VNAME=RNAME CDISP='YES' PRD=PRD_FINISH FMT='HTML'),
	 TARGET='_blank',
$


I tried using
''' |RNAME| ''' 

both as a define or directly into VNAME= and it doesn't work.

Prod WF713 Dev WF714 WinXP


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Master
posted Hide Post
can you do an edit on it once it is recieved?

since you're using it in your where clause, could you just concatenate the ' on?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
Anatess,
In your focexec you have a statement in the form:
WHERE FIELD EQ &VNAME
&VNAME has quotes in it
Now you want to drill-down to this focexec using FOCEXEC=DTIME(VNAME=RNAME ...

Before your WHERE you can have the following
-SET &Q='''';
-SET &VNAME=IF &VNAME CONTAINS &Q THEN &VNAME ELSE '''' || &VNAME || '''';


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
Master
posted Hide Post
Solution is already posted - you have to use ctran to encode and decode arguments that contain quotes. Search on this and you will find more.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 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     Passing Quoted String to Focexec in Stylesheet (Drilldown)

Copyright © 1996-2020 Information Builders