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 main report that has 5 paramters that are multi-select, the child report has the same paramters but when selecting ALL it is returning 0 rows. Any idea's?
Here is the parent report text:
SET LINES = 9999 SET PAGE-NUM = NOPAGE
TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING SUM CNT.SERVER_NAME AS 'Instance Count' AAA_APP_STATUS/I5 AS 'AAA Apps' MONTH_ENDING NOPRINT LVL14_DESC NOPRINT LVL13_DESC NOPRINT LVL12_DESC NOPRINT LVL11_DESC NOPRINT BY DATA_TYPE AS '' BY HIGHEST STATUS AS '' BY SUBGROUP AS ''
ON DATA_TYPE SUBTOTAL AS 'TOTAL' ON TABLE SUBHEAD "Monthly EOL Reporting - "&LVL12_DESC" WHERE DATA_TYPE EQ &DATA_TYPE.(OR(FIND DATA_TYPE IN eolmonthlyrawhldfile_working)).Select a Category(s).; WHERE LVL12_DESC EQ &LVL12_DESC.(OR(FIND LVL12_DESC IN eolmonthlyrawhldfile_working)).LVL12_DESC.; WHERE MONTH_ENDING EQ '&MONTH_ENDING.(FIND MONTH_ENDING IN eolmonthlyrawhldfile_working).Select a Month.'; WHERE LVL14_DESC EQ &LVL14_DESC.(OR(FIND LVL14_DESC IN eolmonthlyrawhldfile_working)).Select OCM.; WHERE LVL13_DESC EQ &LVL13_DESC.(OR(FIND LVL13_DESC IN eolmonthlyrawhldfile_working)).Select Midlevel.; WHERE LVL11_DESC EQ &LVL11_DESC.(OR(FIND LVL11_DESC IN eolmonthlyrawhldfile_working)).LVL11_DESC.; ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT &WFFMT.(,,,).Select type of display output. ON TABLE SET HTMLCSS ON
Here is the child report text:
TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING PRINT DATA_TYPE PARENT_GROUP MONTH_ENDING SUBGROUP STATUS SERVER_NAME AAA_APP_STATUS/I5 COST_CENTER/I5 LV/I5 CC_KEY_DESC CC_MGR_NAME LVL14_DESC AS 'OCM_DETAIL' LVL13_DESC AS 'OCM_BU_MIDLEVEL_DETAIL' LVL12_DESC AS 'BU_DETAIL' LVL11_DESC AS 'BU_DEPARTMENT' HEADING "" FOOTING "" WHERE DATA_TYPE EQ '&DATA_TYPE'; WHERE LVL14_DESC EQ '&LVL14_DESC'; WHERE LVL13_DESC EQ '&LVL13_DESC'; WHERE LVL11_DESC EQ '&LVL11_DESC'; WHERE LVL12_DESC EQ '&LVL12_DESC'; WHERE MONTH_ENDING EQ '&MONTH_ENDING'; ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2KThis message has been edited. Last edited by: Kerry,
What's in the stylesheet for the drill on the parent report. You have to pass the selected parms to the child report. It doesn't automatically know what was selected in the parent report.
TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING SUM CNT.SERVER_NAME AS 'Instance Count' AAA_APP_STATUS/I5 AS 'AAA Apps' MONTH_ENDING NOPRINT LVL14_DESC NOPRINT LVL13_DESC NOPRINT LVL12_DESC NOPRINT LVL11_DESC NOPRINT BY DATA_TYPE AS '' BY HIGHEST STATUS AS '' BY SUBGROUP AS ''
The ALL selection generates the string FOC_NONE and the entire line with that on it is not placed in the focstack. For the stylesheet drill for the child report, you are either going to have to pass the value FOC_NONE so that the where in it will be bypassed or you are going to have to alter your drill to pass a flag to bypass the where statements in the child.
Hopefully, this will help you understand what is happening. If you do a view source on your parent output, check out how the drill syntax is represented when you select ALL. That will give you a better idea as to why your child program is failing to return any rows.
Also do a forum search on FOC_NONE. There are lots of discussions on how it operates which might help you.
The HTML Source from the Parent: Looks Like the one paramter sent is defaulting to all the other parameters??
WebFOCUS Report <script language='javascript'> var ibiOptions = new Array("multidrill"); var focexurl = "/ibi_apps/WFServlet?IBIF_webapp=/ibi_apps&IBIC_server=EDASERVE&IBIWF_msgviewer=OFF&IBIAPP_app=a314262_mcgowan&"; var fochtmlurl = "/ibi_html"; var serverLanguage='en';
A couple of things - First, in order to display your HTML code (and not the report rendered by the HTML code,) you've got to click on the OPTIONS when you post and disable HTML. Otherwise we don't see the code.
Second, in your code, you are not passing ANY of the selected parameters. You are only passing field values. In order to pass parameter values it would be something like DATA_TYPE=&DATA_TYPE (needs quotes if the value contains embedded spaces).
Last, Ginny has made a couple of excellent suggestions to help you out. Do some research on FOC_NONE to see how it works. I usually prefer NOT to use it (because it likes to make code disappear) and instead test for the ALL or $* values and branch around WHERE statements.
Also, turn on the ECHO (-SET &ECHO=ALL;) in the parent and child procedures and when you view source for the browser report, you can see how the parameter values are affecting your code.This message has been edited. Last edited by: Darin Lee,
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
When ALL is selected, did you mean the ALL in one of the selection parameters or did you mean the 'Export ALL categories' from the drilldown menu?
If it is the first, then follow Ginny and Darin's suggestion of the echo to find out what exactly gets sent on to your child process.
If the latter, then your child report should cater for the absence of the DATA_TYPE variable, since if you do select ALL from the drilldown, this parameter is not included in the parameters that get sent to the child. Alternatively you could give it a standard value in the drilldowns, but then you'd still have to check it in the child process.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Like I mentioned before, you are passing field values for those parameters to the child instead of passing the parameter values themselves.
Instead of having
DRILLMENUITEM='Export ALL Categories', FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL14_DESC=N7 LVL13_DESC=N8 LVL12_DESC=N9 LVL11_DESC=N10 MONTH_ENDING=N6),
You should have
DRILLMENUITEM='Export ALL Categories', FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL14_DESC=&LVL14_DESC LVL13_DESC=&LVL13_DESC LVL12_DESC=&LVL12_DESC LVL11_DESC=&LVL11_DESC MONTH_ENDING=&MONTH_ENDING),
For some of those parameters you may want to the the actual field value in which case you would use the Nn notation instead of the parameter name, but if your are passing field values for ALL of the parameters, it is not possible to pass the "ALL" value through to the child.
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 really. As Ginny mentioned, any line that contains FOC_NONE is completely ignored, so if you try to pass that value the line in the stylesheet that contains the value is ignored and the parameter is not passed at all. The way around it is to set the default value in the child fex to FOC_NONE using the code you last posted. Then if the value is not passed, the parameter defaults to ALL. If the value is something other than ALL then the correct parameter value is passed. You'll need to make sure that your stylesheet is formed correctly in order to pass the parm correctly (i.e. the parm with a value that may be FOC_NONE must be on a line by itself.) See my example below:
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
WHERE DATA_TYPE EQ 'HW EOL - Monthly Raw Data'; WHERE LVL14_DESC EQ 'Devonshire Investors'; WHERE LVL13_DESC EQ 'Devonshire Investors Administration'; WHERE LVL11_DESC EQ 'KVH/Asia Telecom'; WHERE LVL12_DESC EQ 'Devonshire Investors Operations & HR Services'; WHERE MONTH_ENDING EQ '07/31/2009'; . . . END 0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
The valid entried that were selected at run time were: WHERE DATA_TYPE EQ 'HW EOL - Monthly Raw Data'; WHERE LVL14_DESC EQ 'Devonshire Investors'; WHERE LVL13_DESC EQ SHOULD BE ALL; WHERE LVL11_DESC EQ SHOULD BE ALL; WHERE LVL12_DESC EQ SHOULD BE ALL; WHERE MONTH_ENDING EQ '07/31/2009';
and I can not determine what it is grabbing for the paramters that should be 'ALL'
It was grabbing then, as directed, from the NOPRINT values that you referenced in the parent's drilldown stylesheet code:
TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING SUM CNT.SERVER_NAME AS 'Instance Count' AAA_APP_STATUS/I5 AS 'AAA Apps' MONTH_ENDING NOPRINT LVL14_DESC NOPRINT <-- LVL13_DESC NOPRINT <-- LVL12_DESC NOPRINT <-- LVL11_DESC NOPRINT <-- BY DATA_TYPE AS '' BY HIGHEST STATUS AS '' BY SUBGROUP AS ''
ON TABLE SUBHEAD "Monthly EOL Reporting - WHERE DATA_TYPE EQ &DATA_TYPE.(OR(FIND DATA_TYPE IN eolmonthlyrawhldfile_working)).Select a Category(s).; WHERE LVL12_DESC EQ &LVL12_DESC.(OR(FIND LVL12_DESC IN eolmonthlyrawhldfile_working)).LVL12_DESC.; WHERE MONTH_ENDING EQ '&MONTH_ENDING.(FIND MONTH_ENDING IN eolmonthlyrawhldfile_working).Select a Month.'; WHERE LVL14_DESC EQ &LVL14_DESC.(OR(FIND LVL14_DESC IN eolmonthlyrawhldfile_working)).Select OCM.; WHERE LVL13_DESC EQ &LVL13_DESC.(OR(FIND LVL13_DESC IN eolmonthlyrawhldfile_working)).Select Midlevel.; WHERE LVL11_DESC EQ &LVL11_DESC.(OR(FIND LVL11_DESC IN eolmonthlyrawhldfile_working)).LVL11_DESC.; . . . TYPE=DATA, COLUMN=N1, . . . DRILLMENUITEM='Export this Category only', FOCEXEC=eolmonthlyrawdetailchild_test(DATA_TYPE=N1 LVL14_DESC=N7 LVL13_DESC=N8 LVL12_DESC=N9 LVL11_DESC=N10 MONTH_ENDING=N6), <-- DRILLMENUITEM='Export ALL Categories', FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL14_DESC=N7 LVL13_DESC=N8 LVL12_DESC=N9 LVL11_DESC=N10 MONTH_ENDING=N6), <-- $
The drilldown parameter phrases LVL14_DESC=N7 LVL13_DESC=N8 LVL12_DESC=N9 LVL11_DESC=N10 refers back to the four corresponding NOPRINT verb objects in... SUM ... LVL14_DESC NOPRINT LVL13_DESC NOPRINT LVL12_DESC NOPRINT LVL11_DESC NOPRINT
which is equivalent to SUM ... LST.LVL14_DESC NOPRINT LST.LVL13_DESC NOPRINT LST.LVL12_DESC NOPRINT LST.LVL11_DESC NOPRINT -- i.e., the drilldown report is screening for the single value (last incoming value within sort-break) of each of the four variables (the values that would have appeared in the report line that the user clicked on if not for the NOPRINT). Depending on the relationship of the data columns in the original data ource, such a combination might not exist, in which case LINES=0 would be the natural outcome.
As far as I can see, these four NOPRINT verb objects serve no purpose in the parent report.
BTW, the HEADING is missing a closing double-quote. Is the code you copied complete and accurate?
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
I am new to WEBFocus and this is really frustrating. When I remove the hidden columns, i.e. the NOPRINT columns, they are not available as fields to map to the child parameters? My parent reports has them as paramters as does the child report but can not map to them.
Also when trying to update the Text on the drill downs per Darin's suggestions the report error's out, i.e.
DRILLMENUITEM='Export ALL Categories',
FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL14_DESC=&LVL14_DESC LVL13_DESC=&LVL13_DESC LVL12_DESC=&LVL12_DESC LVL11_DESC=&LVL11_DESC MONTH_ENDING=&MONTH_ENDING),
"For some of those parameters you may want to the the actual field value in which case you would use the Nn notation instead of the parameter name, but if your are passing field values for ALL of the parameters, it is not possible to pass the "ALL" value through to the child."
I am not sure what is meant by the "Nn notation".
I am at my wits end and hoping someone can help me, please.
I have read every forum post for the FOC_NONE, FOC_ALL and have tried most of the suggestions and I am still at a loss. I need this report ready by tomorrow and time is of the essence for me right now. So if I have to pay someone to get me through this issue I will!
I have tried -Default's and -SET and still have no luck. I need a specific breakdown on what needs to be in the parent and what the child needs.
Again I am posting my code for the parent and child below.
Ok, I have adjusted my parent, but now I am getting the message of (FOC3209) UNKNOWN KEYWORD IN STYLESHEET FILE AT LINE 190: LVL14_DESC?? This happens to be the parameter that I did select a value?
put -SET &ECHO=ALL; at the top of your parent and child reports. Also, in your child report add -? &
This will show all the parameter settings that will be used for the child report.
Run the parent report, view source and scroll to where the code is to see what values have been inserted wherever you have used a parameter.
Then click on a link in the parent report to run the child procedure and see what values were passed as well. I am guessing that you are not passing what you are wanting to pass. If you are multi-selecting values, this is going to cause syntax errors because it inserts quote marks and ORs into the parm string. (OR 'value' OR 'value')
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, my parent report is picking up the parameters as expected but it is adding quotes to the selection which is causing the error? How do I get rid of the quotes?
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
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
AM: Please, re-read Darin Lee's response on 8/27, and mine on 8/28.
Try the parent and Child fex code below. I stripped out the format-related code, retaining just the drilldown.
Substantive changes:
coded the four "Level" WHEREs in the parent to reference the "&" parameter values (within quotes!) for the four LVL descriptions, rather than values listed in the parent report. (If the values may include quote characters, you should use =&var.QUOTEDSTRING in place of ='&var')
removed LVL11 thru 14 as verb objects in the parent report.
placed each focexec parameter of the drilldowns in the parent's stylesheet on a separate line, as required for proper handling of FOC_NONE.
added DATA_TYPE as a drilldown parameter, and inserted a corresponding WHERE in the child report.
changed the columns title for DATA_TYPE from empty ('') to something printable to hold the hyperlink for the second drilldown.
* Parent:
-SET &ECHO=ON;
-? &LVL
-? &DATA
-? &MONTH
TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING
SUM
CNT.SERVER_NAME AS 'Instance Count'
AAA_APP_STATUS/I5 AS 'AAA Apps'
MONTH_ENDING NOPRINT
-* LVL14_DESC NOPRINT
-* LVL13_DESC NOPRINT
-* LVL12_DESC NOPRINT
-* LVL11_DESC NOPRINT
BY DATA_TYPE AS 'Data Type'
BY HIGHEST STATUS AS ''
BY SUBGROUP AS ''
ON TABLE SUBHEAD
"Monthly EOL Reporting - <MONTH_ENDING "
"&LVL12_DESC"
WHERE DATA_TYPE EQ &DATA_TYPE.(OR(FIND DATA_TYPE IN EOLMONTHLYRAWHLDFILE_WORKING)).Select a Category(s).;
WHERE MONTH_ENDING EQ '&MONTH_ENDING.(FIND MONTH_ENDING IN eolmonthlyrawhldfile_working).Select a Month.';
WHERE LVL14_DESC EQ &LVL14_DESC.(OR(FIND LVL14_DESC IN eolmonthlyrawhldfile_bulistings_working)).Select OCM.;
WHERE LVL13_DESC EQ &LVL13_DESC.(OR(FIND LVL13_DESC IN eolmonthlyrawhldfile_bulistings_working)).Select Midlevel.;
WHERE LVL12_DESC EQ &LVL12_DESC.(OR(FIND LVL12_DESC IN eolmonthlyrawhldfile_bulistings_working)).Select a Business Unit(s).;
WHERE LVL11_DESC EQ &LVL11_DESC.(OR(FIND LVL11_DESC IN eolmonthlyrawhldfile_bulistings_working)).Select a Dept.;
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>,<Excel 2000,EXL2K>,<PowerPoint,PPT>).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$ ...
TYPE=DATA,
COLUMN=N1,
DRILLMENUITEM='Export this Category only',
-* FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL11_DESC=N10 LVL12_DESC=N9 LVL13_DESC=N8 LVL14_DESC=N7 MONTH_ENDING=N6),
FOCEXEC=eolmonthlyrawdetailchild2_test1( \
LVL11_DESC='&LVL01_DESC' \
LVL12_DESC='&LVL12_DESC' \
LVL13_DESC='&LVL13_DESC' \
LVL14_DESC='&LVL14_DESC' \
MONTH_ENDING=N6 \
DATA_TYPE='&DATA_TYPE' \
),
$
TYPE=TITLE,
COLUMN=N1,
DRILLMENUITEM='Export every Category',
-* FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL11_DESC=N10 LVL12_DESC=N9 LVL13_DESC=N8 LVL14_DESC=N7 MONTH_ENDING=N6),
FOCEXEC=eolmonthlyrawdetailchild2_test1( \
LVL11_DESC='&LVL01_DESC' \
LVL12_DESC='&LVL12_DESC' \
LVL13_DESC='&LVL13_DESC' \
LVL14_DESC='&LVL14_DESC' \
MONTH_ENDING=N6 \
),
$
ENDSTYLE
END
* Child:
-SET &ECHO=ON;
-DEFAULT &LVL14_DESC = 'FOC_NONE'
-DEFAULT &LVL13_DESC = 'FOC_NONE'
-DEFAULT &LVL12_DESC = 'FOC_NONE'
-DEFAULT &LVL11_DESC = 'FOC_NONE'
-? &LVL
-? &DATA
-? &MONTH
TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING
PRINT
DATA_TYPE
PARENT_GROUP
MONTH_ENDING
SUBGROUP
STATUS
SERVER_NAME
AAA_APP_STATUS/I5
COST_CENTER/I5
LV/I5
CC_KEY_DESC
CC_MGR_NAME
LVL14_DESC AS 'OCM_DETAIL'
LVL13_DESC AS 'OCM_BU_MIDLEVEL_DETAIL'
LVL12_DESC AS 'BU_DETAIL'
LVL11_DESC AS 'BU_DEPARTMENT'
WHERE DATA_TYPE EQ '&DATA_TYPE';
WHERE LVL14_DESC EQ '&LVL14_DESC';
WHERE LVL13_DESC EQ '&LVL13_DESC';
WHERE LVL11_DESC EQ '&LVL11_DESC';
WHERE LVL12_DESC EQ '&LVL12_DESC';
WHERE MONTH_ENDING EQ '&MONTH_ENDING';
ON TABLE PCHOLD FORMAT EXL2K
END
Let us know whether you can get this basic code working.
Note: The way you have them, LVL11 thru 14 are prompted for independently. If any of the four are "nested" (rather than "crossed"), you should use a launch page with appropriate chaining of parameters, rather than relying on Autoprompt. -- but first get the basic report working.
EDITED: .QUOTEDSTRINGThis message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Parameters are nowing passing to the child, except the Month_ending, that is one parameter that has to be selected. (BTW, there is a luach page with the chained parameters)
Here is what is being passed to the child:
CURRENTLY DEFINED & VARIABLES STARTING WITH 'LVL': &LVL11_DESC = FOC_NONE &LVL12_DESC = FOC_NONE &LVL13_DESC = FOC_NONE &LVL14_DESC = Devonshire Investors CURRENTLY DEFINED & VARIABLES STARTING WITH 'DATA': &DATA_TYPE = FOC_NONE CURRENTLY DEFINED & VARIABLES STARTING WITH 'MONTH': &MONTH_ENDING = TABLE FILE EOLMONTHLYRAWHLDFILE_WORKING PRINT DATA_TYPE PARENT_GROUP MONTH_ENDING SUBGROUP STATUS SERVER_NAME AAA_APP_STATUS/I5 COST_CENTER/I5 LV/I5 CC_KEY_DESC CC_MGR_NAME LVL14_DESC AS 'OCM_DETAIL' LVL13_DESC AS 'OCM_BU_MIDLEVEL_DETAIL' LVL12_DESC AS 'BU_DETAIL' LVL11_DESC AS 'BU_DEPARTMENT' HEADING "" FOOTING "" WHERE DATA_TYPE EQ 'FOC_NONE'; WHERE LVL14_DESC EQ 'Devonshire Investors'; WHERE LVL13_DESC EQ 'FOC_NONE'; WHERE LVL11_DESC EQ 'FOC_NONE'; WHERE LVL12_DESC EQ 'FOC_NONE'; WHERE MONTH_ENDING EQ ' '; ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K
My guess is that you've got a syntax error somewhere that is causing it to lose the last parm - like the double quotes around the lvl14_desc. &MONTH_ENDING is just a regular string so it should be the easiest of all to pass - MONTH_ENDING='&MONTH_ENDING'This message has been edited. Last edited by: Darin Lee,
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
As your code stands, when the launch or autoprompt page feeds LVL11_DESC=FOC_NONE to the parent fex the whole line reading FOCEXEC=eolmonthlyrawdetailchild2_test1(LVL11_DESC='FOC_NONE' \ and the other two lines with FOC_NONE all effecively get dropped. After removing them, what's left of this stylesheet phrase is
TYPE=TITLE, COLUMN=N1, BACKCOLOR=RGB(204 255 204), STYLE=BOLD, DRILLMENUITEM='Export this Category only', LVL14_DESC=''Devonshire Investors'' \ MONTH_ENDING='07/31/2009'), $ which has unbalanced parens amonf other things.
2. The value received for LVL14_DESC already contains surrounding quotes; so you need to use .QUOTEDSTRING: LVL14_DESC=&LVL14_DESC.QUOTEDSTRING \
Correct those items and you should be able to get the child report. When you run the parent to HTML, "view source" should show the stylesheet drilldown as:
TYPE=TITLE, COLUMN=N1, BACKCOLOR=RGB(204 255 204), STYLE=BOLD, DRILLMENUITEM='Export this Category only', FOCEXEC=eolmonthlyrawdetailchild2_test1( \ LVL11_DESC='FOC_NONE' \ LVL12_DESC='FOC_NONE' \ LVL13_DESC='FOC_NONE' \ LVL14_DESC='''Devonshire Investors''' \ MONTH_ENDING='07/31/2009' \ ), $This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005