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     [CLOSED] How to use amper variable in a hyperlink

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to use amper variable in a hyperlink
 Login/Join
 
Member
posted
I have an HTML page with a drop down box where a user can select a location. I have created a run button and would like to be able to open different excel spreadsheets based on the location selected. I have multiple spreadsheets with the following names excel1.xls, excel2.xls, excel3.xls, etc. I would like to build a dynamic URL on the run button where excel(location).xls is opened based on the location selected. I've tried several diffrent ways but cannot get it to work. Has anyone done something like this? Thanks

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


WebFOCUS 8009, All Outputs
 
Posts: 26 | Registered: February 28, 2013Report This Post
Master
posted Hide Post
You'll need to post an example of what your doing and the actual error or response your getting.

If your being prompted for variable information, then it's because you have &var1=value.. in your URL. To get around that you have to place a '|' behind the &, for example. http://mydom/folder/file?&|var1=value&|var2=value



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Virtuoso
posted Hide Post
Instead of a button, I suggest to display an hyperlink and have a on change event on the list box that, depending on selection made, assign the proper URL to the displayed hyperlink.
So the user will have to click on the hyperlink instead of a button to open the spreadsheet.


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
Expert
posted Hide Post
escape the & sign with a &|
here's an example of a redirect i use, running a fex with parms

 
<head>
<META HTTP-EQUIV="Refresh"
CONTENT="0 ;
URL=/ibi_apps/WFServlet?IBIF_webapp=/ibi_apps&|IBIC_server=EDASERVE&|IBIWF_msgviewer=OFF
&|IBIAPP_app=ec_app&|&|IBIMR_drill=X,dsomgran/dsomgran.htm
&|IBIF_ex=&redirectfex&|CLICKED_ON=&|USER_ID=&USER_ID&|WFFMT=&WFFMT&|REPDATE=&REPDATE&|PROJECTID=&PROJECTID"> 
</head>


oh i see Gavin already said that. yep, do what Gavin says.




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
Member
posted Hide Post
the URL I have specified on the run button is as follows:

/approot/uabserver/medicalpracticetest?&|Loc=1.xlsm

I get the following error. I think I have some type of syntax problem.

HTTP Status 404 - /approot/uabserver/medicalpracticetest

--------------------------------------------------------------------------------

type Status report

message /approot/uabserver/medicalpracticetest

description The requested resource is not available.


--------------------------------------------------------------------------------

Apache Tomcat/7.0.41

I am populating the variable from a selection made from a list box. If I change the URL to /approot/uabserver/medicalpracticetest1.xlsm the spread sheet opens. I just can't get it to work with the amper variable.


WebFOCUS 8009, All Outputs
 
Posts: 26 | Registered: February 28, 2013Report This Post
Expert
posted Hide Post
what is the ? doing in there?
there's no ? between your file name and your parm value in your hardcoded example




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
Member
posted Hide Post
quote:
Originally posted by GavinL:
You'll need to post an example of what your doing and the actual error or response your getting.

If your being prompted for variable information, then it's because you have &var1=value.. in your URL. To get around that you have to place a '|' behind the &, for example. http://mydom/folder/file?&|var1=value&|var2=value


I had the ? in there like the above example.

If I remove it I get the following:

HTTP Status 404 - /approot/uabserver/medicalpracticetest&%7CLoc=1.xlsm

--------------------------------------------------------------------------------

type Status report

message /approot/uabserver/medicalpracticetest&%7CLoc=1.xlsm

description The requested resource is not available.


--------------------------------------------------------------------------------

Apache Tomcat/7.0.41


WebFOCUS 8009, All Outputs
 
Posts: 26 | Registered: February 28, 2013Report This Post
Expert
posted Hide Post
How are you running launching this page?
If you are launching from a fex with -HTMLFORM then the &var can be evaluated
but if not, then the .htm hasn't got a clue what an &var is.




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
Member
posted Hide Post
It's a button on my html page and I'm putting the URL in the source for hyperlink properties within the HTML composer.


WebFOCUS 8009, All Outputs
 
Posts: 26 | Registered: February 28, 2013Report This Post
Expert
posted Hide Post
well, it sounds like the htm source page cna't evaluate an &var, you gotta put that source htm into a fex with -HTMLFORM
See how i did that redirect page?
that's a fex that launches an htm (or anything) and the name of the page that is being launched is an &var. that's what you need.




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
Expert
posted Hide Post
What is medicalpracticetest ?

Is it a folder or file ?

If its a file, then anything after the ? will only be part of the URL


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 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     [CLOSED] How to use amper variable in a hyperlink

Copyright © 1996-2020 Information Builders