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 retrieve the HTM name and the path in HTML page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to retrieve the HTM name and the path in HTML page
 Login/Join
 
Platinum Member
posted
How can you retrieve the file name and path of an HTML page and have it appear in the HTML page?

We need to have this info appear on our launch pages.

Thank you.

This message has been edited. Last edited by: Kerry,


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
Where is the HTML page coming from ?

Is it under the IBI_HTML alias ?

Do you want the physical path on the server ?


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
Platinum Member
posted Hide Post
To be more clear, we need the application folder name that the html page is in, and the filename of the html page to appear in the html page.

This can be easily done with a focexec so that this application name and the focexec filename appear in a report footing. We now need to do the same for html pages.


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
Is the HTML page being called directly of from a FEX ?

You should be able to get the app folder and name from the URL if its direct.

Typically the URL should be
http://server/approot/{folder name}/{file name}  


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
Virtuoso
posted Hide Post
There is an HTTP header variable named PATH_INFO, which "supplies any path information attached to the URL after the server address but before the query string." You may be able to parse this value to get the necessary info. For more info see page 283 of the WebFOCUS Security and Administration manual: WF Security and Admin


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
taking the easy way out,John,
make your html page into a fex
-SET &thisfex = 'thenameyouwant';
-SET &thisapp = 'whateverappname you want';
-HTMLFORM BEGIN
...slap all your htmlcode in here
...add some bits to display whatever vars you want
<TR><TD>THIS IS &thisapp/&thisfex </td></tr>
-HTMLFORM END

Save this .fex as the same name as your original .htm
Now, there are variables that can pull the app and fexname directly,
&FOCFEXNAME and &FOCFOCEXEC, eg.
i can't remember the syntax for the app one, but i'll look it up and get back to you...
But do you get the idea?




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
Platinum Member
posted Hide Post
The html page is not being called by a focexec. It is being called either another html file or by a URL that the user has added to their Favorites in Intenet Explorer.


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
But do you want the physical path (Path on the server) or URL shown ?


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
Platinum Member
posted Hide Post
If the launch page is named empdata_launch and is in the test application folder in Dev. Studio, they want to see the following at the bottom of the launch page:

Application: test
filename: empdata_launch.htm


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
Try this out.

<html>
 <head>
  <title> Location Test </title>
  <script type="text/javascript">
   <!--
     function getname() {
       var _PathParts = document.location.pathname.toString().split('/') ;
       document.getElementById('file_locn').innerText = _PathParts[2] ;
       document.getElementById('file_name').innerText = _PathParts[_PathParts.length-1] ;
     }
   //-->
  </script>
 </head>

 <body onload="getname()">
  Application: <span id=file_locn></span>
  <br>
  Filename: <span id=file_name></span>
 </body>
</html>

This does assume that the Appfolder is the second level of the location, but should work.


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 retrieve the HTM name and the path in HTML page

Copyright © 1996-2020 Information Builders