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.
DEFINE FILE EMPLOYEE NEWDATE/MDYY=HIRE_DATE; END TABLE FILE EMPLOYEE SUM MAX.NEWDATE ON TABLE HOLD AS HOLD1 FORMAT ALPHA END -RUN -READ HOLD1, &LDATE -* The TYPE is simply for testing purposes. -TYPE &LDATE
Simply -INCLUDE this routine at the top of your focexecs.
You can create more than one. In the example below, I changed the -READ syntax slightly. Notice I don't have a comma after HOLD1 and individual variables have the format specified after them. These options mean you are reading fixed format file. See the doc I mention below for more details.
DEFINE FILE EMPLOYEE NEWDATE/MDYY=HIRE_DATE; END TABLE FILE EMPLOYEE SUM MAX.NEWDATE MAX.EMP_ID ON TABLE HOLD AS HOLD1 FORMAT ALPHA END -RUN -READ HOLD1 &LDATE.A8. &MAX_EMP.A9.
-TYPE &LDATE -TYPE &MAX_EMP
Look in the Developing Reporting Applications manual (DN4500514.0903) for more examples of loading variables from a file.
wondering if you can pass this date field and the other fields to all your other fexes via drill downs? or are all your other fexes independently launched?
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
As I understand your reply, I need to retrieve only 1 date from a parameters table and have that date available to all my focexecs. I'm using this date to pull data in all my reports but I didn't want to duplicate code across my twenty some focexecs in my Self Serv App. The focexecs aren't all connnected to pass via a drilldown.
There may have been a better way but I thought 1 program to my parms table, -INCLUDE in my focexecs and a common variable would be easier to maintain, connect and reuse.........
If you have other ideas I'm always look for new things to try I'd love to hear them ......
Posts: 132 | Location: Kansas | Registered: November 12, 2003
take Kyles idea..make a hold file format alpha with the key date, say 20040109 Call the file MYDATEFF then in your fexes, use this : IF DATE EQ (MYDATEFF) and this will cause the DATE field in each fex to compare itself to the contents of that MYDATEFF file, which can, btw, contain a whole bunch of dates.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003