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.
I have a fex that will retrieve all invoices created in a date range. It contains several amper variables. For simplicity, I will discuss only the date range. The MR HTML file allows the user to choose a begin and end create date range. I want to add another line in the fex that limits what ever they pick to a 6 month max range subtracting 6 months from the end date. In this case, the user entered a 12 year date range. I would like a way to add a where in the fex that says the begin date (&BDATE) is less than the end date (&EDATE) minus 6 months but keep the &BDATE since it could be a range of only 1 month. I see how to default a date based on the current date but our date ranges can vary. Does anyone have a solution for this?
TABLE FILE THAT1 PRINT INVOICE CREATE_DATE WHERE CREATE_DATE GE '&BDATE' AND CREATE_DATE LE '&EDATE'; -*add me WHERE CREATE_DATE LE '2011/10/01'; ON TABLE HOLD AS THAT2 END
For example, the user enters 2010/03/01 as &BDATE and 2012/03/31 as &EDATE. I want to add an additional line to the fex that says &BDATE is LE 2011/10/01 (6 months).
Thank you, GeriThis message has been edited. Last edited by: Geri,
add a where in the fex that says the begin date (&BDATE) is less than the end date (&EDATE) minus 6 months
You can try the code below which will give a 6-month period-cap as needed in a way that will be "SQL-friendly", that is, your iWay adapter will be able to pass the filter for the database to handle.
-DEFAULT &BDATE = '2010/03/01';
-DEFAULT &EDATE = '2010/03/31';
-* Determine 1st day of the 6th month before end date
-SET &EDATE_YYM = EDIT(&EDATE, '9999$99');
-SET &MIN_BDATE = EDIT(AYM(&EDATE_YYM, -6, 'I6YYM'), '9999/99') || '/01';
TABLE FILE FOO
PRINT THIS AND THAT
WHERE FOO_DATE FROM '&BDATE' TO '&EDATE'
WHERE FOO_DATE GE '&MIN_BDATE'
END
That way, you will be limiting your date period to span no more than 6 months while still honouring smaller ranges if the user chooses so.
Hope this helps.This message has been edited. Last edited by: njsden,