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]passing a value from a fex to html

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]passing a value from a fex to html
 Login/Join
 
Guru
posted
I am trying to pass a value from a fex to a html page. Can I do it using !IBI.AMP ? Below is the code I have been trying to use.

function onInitialUpdate() {

var box3 = document.getElementById('combobox3');
var search_value = '!IBI.AMP.SEARCH_VALUE;';


if (box3 !== null & search_value == '!IBI.AMP.SEARCH_VALUE;' ) {
box3.style.backgroundColor = "red";
}

//if (box3 !== null) {
// box3.selectedvalue = "D_CUST5";
//}
}
//End function onInitialUpdate

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Master
posted Hide Post
http://forums.informationbuild...1057331/m/1517094626


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Guru
posted Hide Post
This is a different question then posed earlier. The earlier one, I was trying to pass a paramter to a textbox. The was figured out. I was adding it in the wrong property. This one am trying to use it within javascript.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Guru
posted Hide Post
Why don't you populate a hidden control with a fex. Then you can get the value out of the control:
 
function onInitialUpdate() {

var search_value = IbComposer_getCurrentSelection('combobox3');
...
 


You can find documentation on the HTML Composer JS API functions under Using JavaScript Code With HTML Composer Pages

BTW put your code in the [code ] [/code ] tags so it is easier to read Big Grin .


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Guru
posted Hide Post
Thank You! This has worked for me.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Guru
posted Hide Post
Instead of a hidden control, I usually use a hidden text box so that I can show/hide it as needed when testing. Also, if you are using forms and hidden controls I have had some weird issues with reports in Chrome. Text boxes work much nicer.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report 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]passing a value from a fex to html

Copyright © 1996-2020 Information Builders