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     URL gets truncated in Javascript

Read-Only Read-Only Topic
Go
Search
Notify
Tools
URL gets truncated in Javascript
 Login/Join
 
Platinum Member
posted
Hi All,

I am trying to do a drilldown from a cell on a table that I made in the HTMLFORM section of a fex. The table looks great and I hooked a little code like this on the cell: onmouseup="runDrill()". runDrill just contains this:
var myUrl = "http://webfocus/ibi_apps/WFServlet?IBIAPP_app=otc&IBIF_ex=trendgr01";
window.open(myUrl, "mywindow");

After running the report and clicking on the cell I got an error on the HTML report page. I viewed the source and see that the url for the drilldown has been truncated at the ampersand. Consequently I can't open the window and run the drilldown report - not to mention the paramters that need to be passed as well.

How can I get past this problem?

Thanks,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Platinum Member
posted Hide Post
Not sure if your URL is legal.

Mine are always like:
http://webfocus/ibi_apps/WFServlet?IBIF_ex=trendgr01

ie) IBIF_ex component right after '?', with no preceding '&'.

Then all amper variables are appended at the end.

Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Expert
posted Hide Post
Whenever you use an ampersand in the HTML portion of a fex, you need to code it like this &| - this is to prevent Dialogue Manager from assuming it's a DM variable.

Instead of this:
var myUrl = "http://webfocus/ibi_apps/WFServlet?IBIAPP_app=otc&IBIF_ex=trendgr01";


Try this:
var myUrl = "http://webfocus/ibi_apps/WFServlet?IBIAPP_app=otc&|IBIF_ex=trendgr01";


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
Virtuoso
posted Hide Post
Norb

If this is run from a fex, then WF will see the & and think it's an &variable.

Use &| (& followed by the concat symbol).


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Platinum Member
posted Hide Post
Well you little geniuses were right again! I did the concatenation and it works. Thank you.

However, next I tried to pass a single parameter and I it doesn't work! I could just start crying!

This is the url from the source HTML file: http://webfocus/ibi_apps/WFServlet?IBIAPP_app=otc&IBIF_...gr02&USERID='957244'

When I copy it into the browser address bar it executes correctly. But this doesn't happen when I click on the cell to use the window.open() function. I also built the url without the single quote around the variable values. Any more ideas? I'm so close to the solution that I can taste it.

Thanks,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Platinum Member
posted Hide Post
HOLD IT! STOP THE PRESSES!

I tracked down some offensive javascript variables, promptly booted them out and now this thing runs!

Woo Hoo! Party on Garth!

Thanks for everyone's assistance, thoughts, and prayers.

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 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     URL gets truncated in Javascript

Copyright © 1996-2020 Information Builders