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     Placing 'SELECTED' in html

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Placing 'SELECTED' in html
 Login/Join
 
Gold member
posted
Hi,

I am trying to load an HTML page which has a list box. Since the values in list are hard coded I am creating the

but after running the html it was not coming highlighted and when I did a view source I could see the statement as it is i.e. !IBI.AMP.V_SEL; did not get replaced with 'selected'.

Am I missing something here??

Thanks
 
Posts: 78 | Registered: December 11, 2005Report This Post
Gold member
posted Hide Post
read it as

{option value = "abc" selected} "abc" {/option}
please ignore curly braces
 
Posts: 78 | Registered: December 11, 2005Report This Post
Virtuoso
posted Hide Post
CD
have never known an !IBI.AMP.var; to fail, so have to check the real basics.

When you say you are loading an HTML page, you do mean with -HTMLFORM in a fex? If the &var has not been set you would, at least, expect a couple FOC error messages.

Or this could happen if you use
-SET &select='!IBI.AMP.select;';
in your code.

Apart from that I can't think.

BTW, if you want to display HTML, select the Options link and tick Disable HTML.
<option value = "abc" selected> "abc" </option>


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
Hi Alan,

I am setting the variable in a Fex file (which then calls the HTML file) and using that &variable in html using !IBI.AMP.VARNAME;

This variable is basically used to write the word 'selected' in the option tag. But the code !IBI.AMP.VARNAME; is not replacing itself with 'selected' when fex calls the html.

I know this can be handled through Javascript but using & var is easier I guess.

Thanks,
CD
 
Posts: 78 | Registered: December 11, 2005Report This Post
Master
posted Hide Post
Tried the below code and it works fine in 716 version.

-SET &VAR='SELECTED';

-HTMLFORM BEGIN
<HTML>
<BODY>
<FORM NAME="FRM">
<SELECT NAME="TT">
<OPTION VALUE="YY">YY</OPTION>
<OPTION VALUE="XX">XX</OPTION>
<OPTION VALUE="ZZ" !IBI.AMP.VAR;>ZZ</OPTION>
</SELECT>
</FORM>
</BODY>
</HTML>
-HTMLFORM END


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
What is the name of your variable?

And you're not coding it as: !IBI.AMP.&VARNAME;


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
Guru
posted Hide Post
Code Digger,

Try the other syntax < !-- WEBFOCUS VAR V_SEL -->

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
Expert
posted Hide Post
Sorry Fernando, but that is old-style, probably-will-not-be-supported syntax.


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
Virtuoso
posted Hide Post
CD
Had a check this morning and can find nothing to stop an &variable being evaluated with !IBI.AMP.var; as long as the HTML page is directly passed through WebFOCUS with -HTMLFORM.

Can you provide an extract of your code.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report 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     Placing 'SELECTED' in html

Copyright © 1996-2020 Information Builders