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] in fex setting the html

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] in fex setting the html
 Login/Join
 
Gold member
posted
-HTMLFORM BEGIN
<_FORM>
<_SELECT>
<_select name=test1>
<_option value=1 selected>a<_/option>
<_option value=2>b<_/option>
<_option value=3>c<_/option>
-* others
!IBI.FIL.S001;
<_/SELECT>
<_/FORM>
-HTMLFORM END

how to setting the b is selected in fex file ?

or others?


Thanks
Yang

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


WebFOCUS 7.6.8
WebFOCUS 7.6.10
BI
FLEX
.NET
 
Posts: 97 | Registered: August 18, 2009Report This Post
Member
posted Hide Post
You want "B" to be the default selected?

 
-HTMLFORM BEGIN
<_FORM> 
<_SELECT>
<_select name=test1>
<_option value=1>a<_/option>
<_option value=2 selected>b<_/option>
<_option value=3>c<_/option>
-* others
!IBI.FIL.S001;
<_/SELECT>
<_/FORM>
-HTMLFORM END

This message has been edited. Last edited by: john drews,


7.7.02 on Windows
 
Posts: 14 | Location: Minneapolis | Registered: August 24, 2004Report This Post
Expert
posted Hide Post
Yang, if you put your code between
[code]
[/code]
tags, you would not need to have the "_" in your posting:

-HTMLFORM BEGIN
<FORM>
<SELECT name=test1>
<option value=1>a</option>
<option value=2 selected>b</option>
<option value=3>c</option>
-* others
!IBI.FIL.S001;
</SELECT>
</FORM>
-HTMLFORM END


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
Gold member
posted Hide Post
thanks john drews
thanks Francis Mariani


is not default selected,

it's dynamic.

Thanks,
Yang


WebFOCUS 7.6.8
WebFOCUS 7.6.10
BI
FLEX
.NET
 
Posts: 97 | Registered: August 18, 2009Report This Post
Expert
posted Hide Post
The same way as you can reference a file within the HTMLFORM, you can reference an amper variable using
!IBI.AMP.variablename; (The semi colon is mandatory and is what folks normally forget).

So you could code -
<option value=1 !IBI.AMP.SelA;>a</option>
<option value=2 !IBI.AMP.SelB;>b</option>
<option value=3 !IBI.AMP.SelC;>c</option>
after setting one of &SelA, &SelB and &SelC to selected accordingly.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Hope this will help you ?

SET PAGE=NOLEAD
SET LINES=99999
DEFINE FILE CAR 
S1/A8  = IF CAR EQ 'BMW' THEN 'selected' ELSE '' ; 
H1/A255='<select>';
L1/A255='<option value ="' | CAR |'"' | S1 |'>' | CAR  |'</option>' ; 
F1/A255= '</select>'; 
END 
TABLE FILE CAR 
"<H1"
PRINT L1
FOOTING
"<F1"
ON TABLE HOLD FORMAT DOC
END 
-RUN 
-HTMLFORM BEGIN
<form>
Select a value : !IBI.FIL.HOLD;
</form>
-HTMLFORM END 


Damien
WF 8202
DB : NETEZZA, MSSQL, DB2, ORACLE
Output : ALL
 
Posts: 11 | Location: Belgium- Luxembourg | Registered: May 08, 2006Report This Post
Gold member
posted Hide Post
thanks Damien
thanks Tony A


i'm trying.

Thanks
Yang


WebFOCUS 7.6.8
WebFOCUS 7.6.10
BI
FLEX
.NET
 
Posts: 97 | Registered: August 18, 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] in fex setting the html

Copyright © 1996-2020 Information Builders