Focal Point
[SOLVED] basic parameter question

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/640107271

July 06, 2009, 02:01 PM
Rob OMahoney
[SOLVED] basic parameter question
Hi,

My company is brand new to WebFocus so I apologize for this question being somewhat basic. I am trying to include a .htm file into a .fex report as a header. Part of this header has a drop down which will be used to set which database I will connect to in my report. The drop down is defined as a select like below:

< id=Select1 style="WIDTH: 152px" name=cboDB>





I would like to use that value in the report like so:

-ENGINE SQLORA SET DEFAULT_CONNECTION &cboDB

However, I am not picking up the value correctly in the report.

Any suggestions?

Thanks in advance.

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


Web Focus Version 7.6.8
Win XP 2002
July 06, 2009, 03:13 PM
EWoerle
try putting this code at the top of your fex instead of your html code

 -PROMPT &cboDB.(<DATA BASE 1,DB1>,<DATA BASE 2,DB2>,<DATA BASE 3,DB3>,<DATA BASE4,DB4>.Please select your database. 


this will create the drop down for you.

If you don't like the way that works, you can always create the html using the html composer and then reference the fex in the html.

I hope this helps


Eric Woerle
WF 7.6.7 Reportting Server
ETL 7.6.10
Dev Studio 7.6.7
July 06, 2009, 04:31 PM
GamP
I should be something like this:
 <select id=Select1 style="WIDTH: 152px" name=cboDB>
<OPTION selected value=DB1>DB1</OPTION>
<OPTION value=DB1>DB2</OPTION>
<OPTION value=DB1>DB3</OPTION> 
<OPTION value=DB1>DB4</OPTION>
</select> 

You'll have to give every iption a value, otherwise it will not return anything.
In your fex you can then say:
ENGINE SQLORA SET DEFAULT_CONNECTION &cboDB

(WITHOUT the '-' in front)
Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
July 06, 2009, 04:44 PM
Francis Mariani
All this is as long as you already have a form in the HTML with the WebFOCUS servlet as the form action...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 07, 2009, 10:04 AM
Rob OMahoney
Thanks for the responses. They were very helpful, we've figured out how we are going to solve this.


Web Focus Version 7.6.8
Win XP 2002