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     Passing Defined Fields as Parameters in a where statement

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Passing Defined Fields as Parameters in a where statement
 Login/Join
 
<Deb>
posted
I am just beginning to work with parameters in the GUI tool. I cannot figure out how to refer to a defined field as a variable.

I have these fields defined

TDAY/MDYY='&DATEMDYY';
TDAY1/TRMDYY=DATEADD (TDAY,'D',+29);
BEGINDATE/MDYY=TDAY;
ENDDATE/MDYY=TDAY1;

This is my where statement:

WHERE ( OWNR_STUS_CD EQ 'SCHD' ) AND ( SCHD_DATE GE '&BEGINDATE.Enter Begin Date.' ) AND ( SCHD_DATE LE '&ENDDATE.Enter End Date.' );

How do I refer to the begindate and enddate fields to have it show up as the default option in my where statement?

Any assistance is appreciated. I am sure it is very easy but I know I am missing something!
 
Report This Post
Silver Member
posted Hide Post
I don't think the GUI tool will let you default a dialogue manager variable. It only lets you create one. What you would have to do is to add the code to the completed procedure by editing the focexec as text. Then you can use something like this:
  <br />-DEFAULT &STARTDATE=&YYMD;<br />-DEFAULT &ENDDATE = AYMD(&YYMD, -1,'I8');
You'll have to check my code on the AYMD function, I don't have the parameters memorized, and my manual is not handy right now.

This code will now show the values as defaults when the user is prompted.
 
Posts: 44 | Location: New York City | Registered: May 23, 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     Passing Defined Fields as Parameters in a where statement

Copyright © 1996-2020 Information Builders