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.
Hi - I hope someone can help me. This is my url http://server/approot/rental/test.htm And i want to pass a variable to "test" and put the value in a text box. so i think my URL would look like this http://server/approot/rental/test.htm?id=123 Now how do i get the value of id into my textbox? I need to be able to get ahold of this value so i can use it. I would appreciate any help on this. Thanks, tami
WebFOCUS 7.6.0 Windows Output: Excel, HTML and PDF.
There have been many responses on the forum to questions exactly like this one.
There are several ways to do this, but the easiest method for a WebFOCUS developer is to call a WebFOCUS program instead of an HTML file. The WebFOCUS program could contain one line:
-HTMLFORM test
In test.htm you can include the variable being passed into a JavaScript variable or use it in the HTML code by placing the value of the WebFOCUS variable like this:
!IBI.AMP.id;
You would call the WebFOCUS program with a URL like this:
Tami, You might want to read up on FORM tags in HTML. Get a basic HTML book from amazon, and see how variables are passed via FORM elements. the FORM element called ACTION is the one containing your call to the webfocus engine. If your FORM in your .htm contains no variable, the the click on the submit button produces your 1st example.. If your FORM in your .htm contains 1 variable, "id", then your click on the submit button produces your 2nd example. Any help?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
If you really do have a requirement of being able to pick up the variable from your URL as you described in the first post, you could use some small javascript code to accomplish this. I had this requirement for an app I built some years ago. In this case it concerned a username that was present in the url as http://system/location?my username. The following code located the username string and presented it on the page:
<table align="center" width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td><br></td></tr>
<tr>
<td class="textcenter">Welcome<br>
<form name="user">
<input type="hidden" name="name" size="35">
</form>
<script>
var locate = window.location;
document.user.name.value = locate;
var text = document.user.name.value;
var punt=text.indexOf("?");
document.write(text.substring(punt+1,text.length));
</script>
<br><br>to my system</td>
</tr>
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007