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     [SOLVED] Syntax for a Multi-selection Parameter (OR)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Syntax for a Multi-selection Parameter (OR)
 Login/Join
 
Gold member
posted
I am trying to get the syntax below to prompt me twice for field value. Want to use an OR in a where clause with Parameters. It seems that the follow should work but I only get prompted once. Can someone please assist. Smiler WHERE END_DATE EQ '&END_DATE' OR '&END_DATE';

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


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
Just use distinct variable names, such as &DATE1 and &DATE2.

WHERE END_DATE EQ '&DATE1' OR '&DATE2';

Keep Smiling Smiler




   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
Gold member
posted Hide Post
How would you do the Date2. Would you create a define or print the field twice changing one of the fields to Date2.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
quote:
END_DATE' OR '&END_DATE';

Just -DEFAULT them both. Are you using Auto Prompting of have you created a lauch page for this fex?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
I will be creating a launch page once I get it to work.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Gold member
posted Hide Post
I created a define.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
The DEFINE would use &DATE1 and &DATE2, as would the launch page...

One of many ways (this one's explicit):
DEFINE FILE MyFile
ShowThisRecord/A3 = IF END_DATE EQ &DATE1 OR END_DATE EQ &DATE2 THEN 'YES' ELSE 'NO' ;
END
TABLE FILE MyFile
DO THIS
WHERE ShowThisRecord EQ 'YES'

So many other ways...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Guru
posted Hide Post
I always go to the GUI to determine the syntax for a Multi-Select OR. I always forget because I do not use it that much. The syntax is different based on whether it is a static list or a dynamic list that comes from a master.

  
TABLE FILE CAR
PRINT 
     COUNTRY
     CAR
     MODEL
HEADING
""
FOOTING
""
WHERE COUNTRY EQ &COUNTRY.(OR(<C1Text,C1Value>,<England,ENGLAND>)).Country.;
WHERE CAR EQ &CAR.(OR(FIND CAR,CAR IN CAR)).Car.;
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
ENDSTYLE
END


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Gold member
posted Hide Post
Thanks Doug, the define worked but the simple distinct variable names worked just as well. Much easier.

Also thanks Mighty Max, I will experiment with the GUI. Issue solved.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report 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     [SOLVED] Syntax for a Multi-selection Parameter (OR)

Copyright © 1996-2020 Information Builders