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     SQL parameter for multisource tree

Read-Only Read-Only Topic
Go
Search
Notify
Tools
SQL parameter for multisource tree
 Login/Join
 
Platinum Member
posted
Hi,

We need to have the selection parameters like following to get a multisourcetree with multiple selections (check boxes in trees structure).

  

WHERE ( COUNTRY EQ &country_sel.(OR(FIND COUNTRY IN CAR)).COUNTRY:. );
WHERE ( CAR EQ &car_sel.(OR(FIND CAR IN CAR)).CAR:. );
WHERE ( MODEL EQ &model_sel.(OR(FIND MODEL IN CAR)).CAR:. );



Any idea how these will be in an SQL query? When I have IN() in SQL, WebFOCUS is not recoconizing it has a multiple OR/AND and I am unable to get checkboxes in the tree control. It is appearing as radio buttons in tree with single select. I am using App Studio.

Thanks for any help.

Regards,
Cyril Joy.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
<Kathryn Henning>
posted
Hi Cyril,

It seems you want multi-select, but from SQL PASSTHRU.

The syntax for using the IN keyword is as follows:
 
SELECT column_name 
FROM derived_table 
WHERE column_name [NOT] IN ('value1', 'value2', ... ,'value_n') 
 

This SQL statement will return the records where column1 is value1, value2..., or value_n. The number of values in the parenthesis can be one or more, and they can be numerical or characters.

So, using multi-select, you would probably want a delimiter of ',' (comma), rather than 'OR'.

A comma is allowed as a delimiter, but it doesn’t quote the values.

So, you'll need to use OR, and use STRREP to replace ' OR ' with ','
(<space>OR<space> with comma) 
in the result.

Cheers!

Kathryn
 
Report This Post
Platinum Member
posted Hide Post
No, When we use 'IN' in SQL query, WebFOCUS will not create a tree with a checkbox for the GUI selection.

WF is not identifying 'IN' inside SQL Query as a parameter to create a multisource tree with checkbox for GUI selection.

Regards,
Cyril Joy.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 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     SQL parameter for multisource tree

Copyright © 1996-2020 Information Builders