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     dynamic query for report painter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
dynamic query for report painter
 Login/Join
 
Gold member
posted
Hi;

I have an text field in report painter and i need to retrieve it in my SQL report.

If $textField = 'XX'
Where country != 'UA'
else
where country like $textField.

Since i did everything through DevStudio, i don't know the focus language. Can you tell how can i write it in focus language.

Thanks in advance

-M


====================
Production: WebFOCUS 7.1.1 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLOGIC 8.1 sp4
Dev: WebFOCUS 7.6.4 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLogic 8.1 sp4
 
Posts: 52 | Registered: June 28, 2005Report This Post
Silver Member
posted Hide Post
Using the values you provided, the syntax would be something along the lines of:

WHERE ( $textField EQ 'XX' AND country NE 'UA' )
OR ( $textField NE 'XX' AND country LIKE $textField )
 
Posts: 40 | Registered: March 10, 2004Report This Post
Expert
posted Hide Post
Hi Maria,

Has this issue been resolved? Did Terry's suggestion help you?

I ran a quick search on Information Builders' online documents and came across the following topics which may be of interest:

How to pass a dynamic value to an Oracle stored procedure?
http://techsupport.informationbuilders.com/ibi/sps_i/83521040.html

Dynamic WHERE with OR's do not get translated by FOCUS
http://techsupport.informationbuilders.com/sps/73121062.html

Hope this helps. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report 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     dynamic query for report painter

Copyright © 1996-2020 Information Builders