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     [RESOLVED] Variables, Values, and Ampersands (Oh No)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[RESOLVED] Variables, Values, and Ampersands (Oh No)
 Login/Join
 
Expert
posted
What's the new methodology in using Ampersands in Values?

Case in point: I have a drop down list with "AT&T" in it. It displays as "AT&T" in the drop down list and is passed to the fex as "AT&T" which produced the "A required parameter is missing" message indicating that the value for the "&T" variable is missing (Actually it displays "Detail: &T" when clicking on the word "parameter" in that message.)

I know I'm missing something and pretty sure that this "issue" is accounted for in 8202. So, what's the trick? I'll RTFM if I knew which on had this information.

A Link to the image

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Hi Doug,

Please try like this : "AT&|T".

Is this helpful?
 
Posts: 109 | Registered: February 02, 2016Report This Post
Virtuoso
posted Hide Post
What's the context of your question? HTML Composer, Autoprompt or Designer page? Also, what does the WHERE test look like? I can't remember anything changing when it involves & in the value.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
Thanks Pav,

The value is coming in from a source table as "AT&T" and I don't have the option to change that. Thus, it needs to accounted for upon population of the drop down list and as it's being passed to the fex as a parameter.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Guru
posted Hide Post
I wonder if you couldn't do something like the following

1. Unbind the variable from the drop-down.
2. Add a hidden input and bind the drop down variable to that.
3. Create an on_change event for the drop-down.
3. When the value changes, trap it and put double quotes around the value.

 var v1 = IbComposer_getCurrentSelection("combo_box1");  

        var v2 = '"'+ v1 + '"';




4. Load it into the hidden input which return it to the procedure on refresh.

document.getElementById("inputhidden1").value = v2;


5. Strip the double quotes off the value in the procedure.

Might work, I don't know.


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
BabakNYC, Context:

This is the result of using a "Filter Page" in a portal. The drop down list is populated via sources file which has several values containing the ampersand.

My filter line should look like this:
 WHERE MyField EQ 'ABC' OR 'AT&T' OR 'DEF' OR 'GHI' 
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Thanks Don Garland,

That sounds probable and I'll check it out while waiting for an 'out-of-the-box' solution, as per the client's desires. So, im the meantime, I'll work with your idea.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Perhaps you can replace any occurrences of '&' with '&|' in your dropdown list?

You could either do that by adding a virtual field to your data source MFD or by adding a DEFINE or COMPUTE to an 'external procedure' for your control.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
quote:
Perhaps you can replace any occurrences of '&' with '&|' in your drop down list?

That's kind of what pav said, above. I'll check it out as a DEFINE field. Any idea as to what variation is displayed after selecting it? As seen in this image
, Or link to it here.

PS: It gets passed to the associated fex correctly... It's just not intuitive to the users, especially execs, CxOs.

This message has been edited. Last edited by: Doug,
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I opened a case on this.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I may be wrong but I think using QUOTEDSTRING is supposed to make it work without fiddling:

OR
WHERE COL1 EQ &VAR1.QUOTEDSTRING

COMMA
WHERE COL1 IN ( &VAR1.QUOTEDSTRING )


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
Expert
posted Hide Post
This issue has been resolved with the installation of the latest maintenance release available, WebFOCUS 8202M Gen 60 (Done on Jun 7 2018).

This particular issue was resolved in Gen 8202M Gen 24.

If you have any issues with this, ask IB to refer to
Case Number: 180424068
Customer Label: Variables, Values, and Ampersands
Issue: Drop down list has "AT&T"

Enjoy the progress that IB is making with WebFOCUS, App Studio, Portals, and beyond. Next: 8203.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     [RESOLVED] Variables, Values, and Ampersands (Oh No)

Copyright © 1996-2020 Information Builders