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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dynamic Operators
 Login/Join
 
Member
posted
I would like the my procedure to have dynamic operators. For example: A user could select equals, does not equal, contains, etc. from a drop down to determine how the parameter is interpreted by the procedure.

Account Number equals 1234 or
Account Number contains 3 or
Account Number is like %21

With the operator being seleted from a drop down list.
Any help is greatly appreciated.
 
Posts: 25 | Location: VA | Registered: May 13, 2005Report This Post
Platinum Member
posted Hide Post
This is a part of code which i have done for building the where clause for selection. Give different names to the items in the drop menu to identify it by WF.

-IF &TXT_PARTID EQ ' ' GOTO NO6C;
-SET WHRCLS6 = IF &WHRCLS6 NE '' THEN &WHRCLS6 || ' AND ' ELSE '';
-IF &RAD_PRTNUM NE 'E' GOTO NO6CA;
-SET WHRCLS6 = &WHRCLS6 || ' A.PART_ID LIKE (''%' || &TXT_PARTID || ''')';
-NO6CA
-IF &RAD_PRTNUM NE 'S' GOTO NO6CB;
-SET WHRCLS6 = &WHRCLS6 || ' A.PART_ID LIKE (''' || &TXT_PARTID || '%'')';
-NO6CB
-IF &RAD_PRTNUM NE 'C' GOTO NO6CC;
-SET WHRCLS6 = &WHRCLS6 || ' A.PART_ID LIKE (''%' || &TXT_PARTID || '%'')';
-NO6CC
-IF &RAD_PRTNUM NE 'N' GOTO NO6CD;
-SET WHRCLS6 = &WHRCLS6 || ' A.PART_ID <> ''' || &TXT_PARTID || '''';
-NO6CD
-IF &RAD_PRTNUM NE 'D' GOTO NO6CE;
-SET WHRCLS6 = &WHRCLS6 || ' A.PART_ID NOT LIKE ( ''%' || &TXT_PARTID || ''')';
-NO6CE
-IF &RAD_PRTNUM NE 'Q' GOTO NO6C;
-SET WHRCLS6 = &WHRCLS6 ||' A.PART_ID LIKE ( ''' || &TXT_PARTID || ''')';
-NO6C
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Expert
posted Hide Post
have in your form
<SELECT NAME="RELAT" >
<OPTION VALUE=" GE ">greater than or equal to</option>
<option value=" CONTAINS ">contains</option>
...etc
</select>
and then in your fex
-DEFAULT &RELAT = ' EQ ' ;
TABLE FILE ....
WHERE SOMEVAR &RELAT SOMEVALUE
...
END
works.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<toby mills>
posted
Do it like susannah says.... Simple and straight forward.

-Toby
 
Report This Post
Member
posted Hide Post
Thanks for the tips. I did it the way Susannah suggested and it was very straightforward and gave me exaxtly what I was looking for.
 
Posts: 25 | Location: VA | Registered: May 13, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders