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     [Solved] Capturing Parameter from URL

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Capturing Parameter from URL
 Login/Join
 
Member
posted
Hi,

I have an html page which I would like to invoke directly, say - http://192.178.231.14:8080/app...st/plan.htm?PlanID=2

This html files contains a frame, which invokes a Maintain Procedure which is an Update form. The record that needs to be updated is the PlanID in the URL.

Is there anyway I can capture this PlanID inside the Maintain procedure, within the frame in the html page?

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Registered: May 31, 2011Report This Post
Virtuoso
posted Hide Post
In the HTML, grab the variable from the initial url with an onload and create the iframe url.
for a url like:
http://localhost:8080/approot/baseapp/passvar.htm?car=TRIUMPH

use a js function:
<html>
  <head>
    <title>Parent</title>
    <script>
window.onload=function() {
var data=location.search;
if(data) {
    data = window.location.search.substring(1);
    var childFrame = "http://localhost:8080/ibi_apps/WFServlet?IBIF_cmd=MNTCON%20EX%20PASSVAR" + "&" + data;
    child.location.href = childFrame;
    }
};
</script>
  </head>
  <body>
    <iframe name="child" id="child" src=""></iframe>
  </body>
</html>


In the Maintain, use getHTMLfield.
MAINTAIN file car
.
chosenCar/a16 = formName.getHTMLfield("car");
.
for all next country into carStack
  where car eq chosenCar;
.

the parameter is case sensitive, so must match the name as passed in the url.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Hi,

Thanks Alan.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Registered: May 31, 2011Report 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     [Solved] Capturing Parameter from URL

Copyright © 1996-2020 Information Builders