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     Problem of loading the dropdown dynamically based on value passed from previous page.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Problem of loading the dropdown dynamically based on value passed from previous page.
 Login/Join
 
Member
posted
Hi,

I have two html pages. In first one, I have input textbox. Once user enters value and click on submit, this value should pass to second page. In the second page I have a dropdown which is loading using another procedure. Now how can I pass the textbox value to the procedure. I want the dropdown values to be loaded based on the selected textbox value.

Any help will be greately appreciated.

Thanks in advance,
Webfocus 7.6.9.
 
Posts: 21 | Registered: June 08, 2008Report This Post
Virtuoso
posted Hide Post
If there is a procedure executed in between the two html pages, then the procedure will automatically receive the user-entered text from the text input if the call is performed using a form.
Since you want the dropdown on the second page to conform to the entered selection, I think you indeed need a procedure in between, so it should not be a problem.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
Inject the Value from the previous page to an XML fex in the next page, wont work.

Someway try out Cookies....


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Guru
posted Hide Post
This Might Help You.

Please go through the above link for more stuff....


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
<FreSte>
posted
Hi,

Below you'll find 2 very basic HTML-pages.

<!-- page1.htm -->
<html>
<script>
function loadNextPage() {
  var _value = document.getElementById("value2Submit").value.toUpperCase() ;
  window.open("page2.htm?" + _value);
}
</script>
<body>
Value to submit (A,B,C,D,E) = <input type="text" id="value2Submit">
<br><br>
<input type=button value="Submit" onclick=loadNextPage()>
</body>
</html>


<!-- page2.htm -->
<html>
<script>
function getSubmittedValue() {
  var _submittedValue = location.search.substring(1,99);
  var _obj = document.getElementById("selbox1");
  for (var i=0; i<_obj.length; i++) {
    if (_obj[i].value == _submittedValue) {
      _obj[i].selected = true;
      return;
    }
  }
}
</script>
<body onload=getSubmittedValue();>
<select size=5 id="selbox1">
  <option value="A">Text A</option>
  <option value="B">Text B</option>
  <option value="C">Text C</option>
  <option value="D">Text D</option>
  <option value="E">Text E</option>
</select>
</body>
</html>
 
Report This Post
Member
posted Hide Post
Thanks all.

The above link helped me to resolve the issue.

Once again thanks for your valuable suggesions.

Regards,

Srinivas
 
Posts: 21 | Registered: June 08, 2008Report This Post
Guru
posted Hide Post
Hi Srinivas,

Happy that your issue is resolved. Mark this as Solved.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report 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     Problem of loading the dropdown dynamically based on value passed from previous page.

Copyright © 1996-2020 Information Builders