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] basic parameter question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] basic parameter question
 Login/Join
 
Member
posted
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
 
Posts: 11 | Registered: June 25, 2009Report This Post
Gold member
posted Hide Post
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
 
Posts: 95 | Registered: July 31, 2007Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 11 | Registered: June 25, 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     [SOLVED] basic parameter question

Copyright © 1996-2020 Information Builders