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     [CLOSED] Looking at the last 3 of a param value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Looking at the last 3 of a param value
 Login/Join
 
Platinum Member
posted
I am making a static drop down menu to choose a
department ID. If I do an WHERE DEP_ID EQ 500 it does not find any records because 500 could be in the database as ' 500' or ' 5000' or ' 500' or any number of random spaces.

If I do a CONTAINS 500 I get records, but I get
500, 465001, anything that contains 500.

I just want the param to look at the last 3 places.

WHERE ( DEP_ID CONTAINS '&DEP_ID.(<500,500>,<501,501>).Department:.' )


I thought $* or '%500' would work, but I am getting no output.

This message has been edited. Last edited by: <Kathryn Henning>,


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Expert
posted Hide Post
How about
WHERE DEP_ID LIKE '%500'


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
Platinum Member
posted Hide Post
I can get this to work as a stand alone WHERE statement, but it does not work as part of a param in a drop down menu.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Platinum Member
posted Hide Post
Have you tried to create you dropdown with a procedure,

This would allow you to use your
WHERE DEP_ID EQ '&DEP_ID';

Call your fex something like dropdown_for_dep_id.fex

TABLE FILE YOUR DB2 TABLE
BY DEP_ID
BY DEP_ID
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
END


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Platinum Member
posted Hide Post
I will try this in the morning. But it looks like it will work.

Thanks!


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Expert
posted Hide Post
quote:
500 could be in the database as ' 500' or ' 5000' or ' 500' or any number of random spaces.
How about TRUNCATE'g the incoming field and then chack on it in your WHERE statement?

quote:
WHERE DEP_ID LIKE '%500'
Not sure this as that would also bring back department '46500'.
 
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     [CLOSED] Looking at the last 3 of a param value

Copyright © 1996-2020 Information Builders