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] Passing parameters from Dropdown to fex file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Passing parameters from Dropdown to fex file
 Login/Join
 
Member
posted
Hi Friends,

I Just wanted to know how to pass the dropdown parameter value to the fex file.

Please find the below code i am trying.
 
-HTMLFORM BEGIN
< !-- BELOW IS THE DYNAMIC DROPDOWN BOX -->
<TD width="236">
<p align="left">
<SELECT NAME="CTRY" size=1>
<OPTION VALUE="FOC_NONE">ALL</OPTION>
<OPTION VALUE="ENGLAND">ENGLAND</option>
<option value="MANUAL">NotUniversal</option>
</SELECT>
>
</TD>
-HTMLFORM END
 


TABLE FILE CAR
PRINT
COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST SALES LENGTH WIDTH HEIGHT WEIGHT WHEELBASE FUEL_CAP BHP RPM MPG ACCEL
WHERE COUNTRY EQ '&CTRY'
END

As i am not able to that, please can anyone help me out.

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


7.1.7 windows/XP
HTML, EXCEL, PDF
 
Posts: 12 | Location: USA | Registered: January 29, 2009Report This Post
Member
posted Hide Post
quote:
Originally posted by Ravi Reddy:
Hi Friends,

I Just wanted to know how to pass the dropdown parameter value to the fex file.

Please find the below code i am trying.
  
-HTMLFORM BEGIN
< !-- BELOW IS THE DYNAMIC DROPDOWN BOX -->
<TD width="236">
<p align="left">
<SELECT NAME="CTRY" size=1>
<OPTION VALUE="FOC_NONE">ALL</OPTION>
<OPTION VALUE="ENGLAND">ENGLAND</option>
<option value="MANUAL">NotUniversal</option>
</SELECT>
>
</TD>
-HTMLFORM END


TABLE FILE CAR
PRINT
COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST SALES LENGTH WIDTH HEIGHT WEIGHT WHEELBASE FUEL_CAP BHP RPM MPG ACCEL
WHERE COUNTRY EQ '&CTRY'
END

As i am not able to that, please can anyone help me out.

Thanks


7.1.7 windows/XP
HTML, EXCEL, PDF
 
Posts: 12 | Location: USA | Registered: January 29, 2009Report This Post
Master
posted Hide Post
From parameters tab in html composer, you can easily bind variables.
You could refer to documentation from IBI also.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
Thanks Prasad,

Am not using HTML composer, as my requirement is to do it from one fex file.

Thanks,


7.1.7 windows/XP
HTML, EXCEL, PDF
 
Posts: 12 | Location: USA | Registered: January 29, 2009Report This Post
Master
posted Hide Post
Steps to follow.

1. Using HTMLFORM command create form with listbox control in one.fex
2. Form action should call two.fex and method can be GET or POST
3. Keep your list box and create a submit button within the form in one.fex
4. In two.fex, you can refer to the listbox name to get the selected value.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
hello,

try this :

-*test.fex
-DEFAULT &ACTION='PARAM'
-DEFAULT &CTRY='FOC_NONE'

-GOTO &ACTION

-PARAM

-HTMLFORM BEGIN
<HTML><BODY>
<form name=form1 action=/ibi_apps/WFServlet method="get()">
<!-- BELOW IS THE DYNAMIC DROPDOWN BOX -->
<SELECT NAME="CTRY" size=1>
<OPTION VALUE="FOC_NONE">ALL</OPTION>
<OPTION VALUE="ENGLAND">England</option>
<option value="ITALY">Italy</option>
</SELECT>
<input type=hidden name=IBIF_ex value=test>
<input type=hidden name=IBIAPP_app value=baseapp>
<input type=submit name=b1 value=Run>
<input type=hidden name=ACTION value=RUNQUERY>
</form></body></html>

-HTMLFORM END
-EXIT


-RUNQUERY


TABLE FILE CAR
PRINT
COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST SALES LENGTH WIDTH HEIGHT WEIGHT WHEELBASE FUEL_CAP BHP RPM MPG ACCEL 
WHERE COUNTRY EQ '&CTRY'
END

  


This single fex is 2 parts :

run it : it prompts for choice for country
Click on the RUN button, it will sumit the same fex but goes to the report part rather than the prompt part as the parameter ACTION is set to RUNQUERY in the HTMLFORM section

hopes it helps


8207, Windows 2016 64b, HTML, AHTML, PDF, EXL07...
 
Posts: 27 | Location: Suresnes | Registered: August 26, 2010Report 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] Passing parameters from Dropdown to fex file

Copyright © 1996-2020 Information Builders