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.
The simple answer is , you can't drill down based upon what is in another report (unless you are talking about simply passing parameters from one report to the next). You can, however, create the data for the first report, then join to that data and create your drilldowns from there. This is what Tony was referring to - making a couple of passes against the data to get what you need for the drilldowns.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
So if you want to build your "drill down menu based upon the results of another report", you should manage to retrieve the results of your previous report in &variables so that you can code:
The number of variables is probably not an issue. For example, you could index the &variables. If you post a simple repro of your problem with one of the IBI files (CAR, GGSALES etc.), we could try to concoct a solution.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
My issue with that approach is that there are no fields that I can join to
One of two things. Either 1. The data is completely unrelated in which case the question is how are you determining drilldowns when the data is completely unrelated to what is on your report? OR 2. There IS a field you can join to, you just need to make some creative use of DEFINE-based joins or some nifty HOLD files.
As Daniel suggests, maybe an example to help us see what it is your are trying to do would be helpful.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Darin, in answer to your reply I'm number 1. what I have is a list of orders which can be cancelled. So I want to build for each cancellation code a drillmenu item which is going to pass the order and the cancellation code to a URL. I hope this explains it a little better.
Danny-SRL, thanks for your interest. in answer to you reply, if we had the CAR file as our main file and then a drill down showing all the employees from the employee master.
In your example, you would just have a second procedure for the employee report that is executed by clicking on a line in the car file and passing no parameters. I don't think this is what you are intending.
So to get this straight (we'll get there eventually) You're running a WF report that lists orders. 1. If you click on an order does it always send a cancellation request or is this just one of the things that could happen? (This determines a straight drilldown vs. multi-drill.) 2. Does the drill run a second WF request or is it just sending a URL string to some other place with the necessary parms? (This detemines the action of the drill - WF procedure vs. URL.)
Other questions (I'm sure) to follow--
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Darin in answer to 1. It is just one of the actions. I would expect to see n cancellations reason without drilling out to another report. Number 2 just a URL string.
So you create the drill to a URL as one of the multidrill items, passing whatever parameters (whether dynamic or static) are required for that URL.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Do you know what those parameter values are at the time you run the report? They can't be variable by the record displayed because you say they are unrelated. That leaves them to be fixed, so if they're fixed, just set the parameter value as a constant in the first report and execute the drilldown. But this means that you get the same 2nd report/process running regardless of which record you click on in the first report.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
not quite, they are not variable by the record displayed. There could however be 1 or 50 potential paramater values. Each one I would like to have as the drilldown menu item eg. Number 1 cancel due to customer request Number 2 cancel due out of stock...etc etc
In the interests of moving forward, and as it appears that you are not keen to "jump in the water", try this code and see if you can understand it.
Note: All the code used here can be built using information gleaned from various documents, help files and the like. You only have to have the courage to get off of your ****, locate them and read them.
However, if you find that you cannot even follow the code example I give, then approach your management and ask them to send you on some basic training courses.
TABLE FILE EMPLOYEE
PRINT EMP_ID
BY DEPARTMENT
ON TABLE SAVE AS OZIHOLD1 FORMAT ALPHA
END
-RUN
TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
GRID=OFF, SIZE=9, $
TYPE=DATA, COLUMN=COUNTRY,
-READ OZIHOLD1 &Dept.A10. &Emp_Id.A9.
-SET &Cnt = 1;
-REPEAT :Loop WHILE &IORETURN EQ 0;
DRILLMENUITEM='Item &Cnt',FOCEXEC=yourdrilldown(Dept='&Dept' Emp_Id='&Emp_Id'),
-READ OZIHOLD1 &Dept.A10 &Emp_Id.A9
-SET &Cnt = &Cnt + 1;
-:Loop
$
ENDSTYLE
END
T
p.s. Let me know to whom you wish my invoice to be sent!!
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
If you notice, the example I gave you uses exactly what I suggested you did in the very first reply to your question. Most of the subsequent posts inferred the method to use, you just needed to try it out using actual code.
For future reference, and as a suggested pre-cursor, try and reproduce what you are trying to do using the sample data supplied with the "standard" install - CAR, GGSALES, GGORDER etc - so that folks can look at your code and run it to experience your question for themselves. It is also a suggested method before reporting a fault to Tech Support because, if you can show the problem on the sample data then it is likely that Tech Support can understand your problem quicker and thereby suggest a solution, work around or identify it as a real bug.
Don't be concerned that your code may not show exactly what you need provided it is very close, after all a picture paints a thousand words and running code to get an output provides that picture.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004