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     Any one got a wf function for escaping a URL?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Any one got a wf function for escaping a URL?
 Login/Join
 
Master
posted
...that they would care to share.

eg passing % as wildcard in URL needs to be replaced with %25



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
Expert
posted Hide Post
John, may I ask in what context you'd like this functionality?

Is it a drill-down generated by a WebFOCUS Style-sheet declaration or by a DEFINE or COMPUTE?

One suggestion that might work, depending on how this URL is generated, is to call a JavaScript function that creates the URL, using escape() to encode the %...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Francis

It was building up a URL
/ibi_apps/WFServlet?IBIF_ex=report¶m=U% 
in DM. Solved the problem using STRREP but thought someone might have done something a bit more classy that would take account of other characters that might need replacing



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
Expert
posted Hide Post
I would call a JS function, something like:

COMPUTE XXX/A200 = 'RunURL("/ibi_apps/WFServlet?IBIF_ex=report¶m=U%");';

...

<script type="text/javascript" language="JavaScript">
function RunURL(myURL)
{
self.location.href = escape(myURL);
}
</script>


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Cheers Francis

I am guessing there should be something round the RunURL in the compute statement to identify the myURL as a javascript routine.

Ne est ce pas?



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
Expert
posted Hide Post
I apologize that my code snippet wasn't accurate.

The whole thing would look something like this:

-SET &ECHO=ON;

TABLE FILE CAR
SUM
SALES

COMPUTE LINK1/A200 = 
  '<input type=button value="Click me" onClick="RunURL(''/ibi_apps/WFServlet?IBIF_ex=car1'',''&|param=U%'');">';

COMPUTE LINK2/A10 = 'Click me';
BY CAR

ON TABLE SET STYLE *
TYPE=DATA, COLUMN=LINK2, JAVASCRIPT=RunURL('/ibi_apps/WFServlet?IBIF_ex=car1' '&|param=U%'), $
ENDSTYLE

ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<html>
<head>
<script type="text/javascript" language="JavaScript">
function RunURL(myURL, myParms)
{
alert(myURL + myParms);
self.location.href = myURL + escape(myParms);
}
</script>
</head>

<body>
!IBI.FIL.H001;
</body>
-HTMLFORM END


I've illustrated two ways of linking to the drill-down fex, one through a compute and one via a style-sheet declaration.

I hope this helps.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<Shyam L>
posted
Francis,
Cud u pls explain what "U%" and escape function does in your code?

Thanks,
Shyam L
 
Report 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     Any one got a wf function for escaping a URL?

Copyright © 1996-2020 Information Builders