Focal Point
Subtotal NOPRINT Drilldown
September 26, 2007, 09:05 AM
TravSubtotal NOPRINT Drilldown
Would someone mind trying this little snippet of code and tell me if it works?
We're trying to add a drill-down to a subtotal but we don't want the by field to be displayed. So the snippet works as long as I take the noprint off of the by field, but as soon as the noprint is there, it results in an agent crash. I'd like to know what, if anything, it does on someone else's installation -- be it crash, work, or error.
TABLE FILE CAR
PRINT
CAR
DEALER_COST
BY COUNTRY NOPRINT
ON COUNTRY SUBTOTAL AS '*TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=SUBTOTAL,
BY=1,
FOCEXEC=app/test2y45,
BACKCOLOR=YELLOW,
$
ENDSTYLE
END
Thanks!!
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
September 26, 2007, 09:18 AM
LeahWhat is the code in test2y45?
Leah
September 26, 2007, 09:36 AM
TravIt's just a dummy fex -- it doesn't matter. When I run the above, I never even get a report to display so I never even get the opportunity to drill to anything.
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
September 26, 2007, 09:46 AM
LeahWell, under MRE 7.6.2 on Win platform, the report ran fine, yellow highlight came up and I changed the drill down to a fex in the area and it ran from the drill down.
Leah
September 26, 2007, 10:04 AM
Francis MarianiReport ran fine as-is in 5.3.2 self-service and MRE.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 26, 2007, 11:50 AM
N.SelphIt ran fine as is in 7.1.3 Self-Serve.
(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
September 26, 2007, 11:52 AM
TravI think I oversimplified my repro. Would one of you try this please?
TABLE FILE CAR
PRINT
CAR
DEALER_COST
BY COUNTRY NOPRINT
ON COUNTRY SUBTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,
BY=1,
-* COLUMN=DEALER_COST,
FOCEXEC=app/test2y45,
$
ENDSTYLE
END
If that blows up, try uncommenting the "COLUMN=DEALER_COST" line. If that works, switch it back and try commenting out the "SET HTMLCSS ON" line. If I leave it as-is above, it blows up, if I make either of the changes then it works. As it turns out, we might end up using the COLUMN= anyway -- just confusing why I'm getting agent crashes. I'll be working with techsupport too -- just wondering who else is experiencing the same thing.
thanks for your help!!
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
September 26, 2007, 12:04 PM
SayedThese both works for me in 762
TABLE FILE CAR
PRINT
CAR
DEALER_COST
BY COUNTRY NOPRINT
ON COUNTRY SUBTOTAL
ON TABLE PCHOLD FORMAT HTML
-*ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,
BY=1,
COLUMN=DEALER_COST,
FOCEXEC=app/unix_test.fex,
$
ENDSTYLE
END
-------------------------OR------------------------
TABLE FILE CAR
PRINT
CAR
DEALER_COST
BY COUNTRY NOPRINT
ON COUNTRY SUBTOTAL
ON TABLE PCHOLD FORMAT HTML
-*ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,
BY=1,
-* COLUMN=DEALER_COST,
FOCEXEC=app/unix_test.fex,
$
ENDSTYLE
END
WF 8.x and 7.7.x Win/UNIX/AS400, MRE/Portal/Self-Service, IIS/Tomcat, WebSphere, IWA, Realmdriver, Active Directory, Oracle, SQLServer, DB2, MySQL, JD Edwards, E-BIZ, SAP BW, R/3, ECC, ESSBASE
September 26, 2007, 12:11 PM
TravWhat about as-is? Did it work that way too?
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
September 26, 2007, 12:13 PM
LeahUnknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log.
Leah
September 26, 2007, 12:19 PM
Travquote:
Unknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log.
Good! Welll, not good, but glad that I'm not the only one.
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
September 26, 2007, 12:19 PM
LeahIf I comment out BY=1 and leave DEALER_COST, the fex runs shows the link on the dollar field totaled with link.
If I put both in BY=1, column=dealer_cost, the output looks the same.
Leah
September 26, 2007, 12:34 PM
LeahI think the issue is that you have to let WebFOCUS know what you are subtotaling on so it knows how to handle the data. When it doesn't, the system crashes and burns.
Not sure what BY=1 is getting you of course I learn something new almost daily from this forum.
Leah
September 26, 2007, 01:10 PM
Francis Marianiworked fine as-is in 5.3.2
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 26, 2007, 01:34 PM
Travquote:
Originally posted by Leah:
I think the issue is that you have to let WebFOCUS know what you are subtotaling on so it knows how to handle the data. When it doesn't, the system crashes and burns.
Not sure what BY=1 is getting you of course I learn something new almost daily from this forum.
The BY=1 tells WF that you want the drilldown to only appear on the first by field. Funny thing is, the exact syntax that Dev Studio produces is what crashes. If I modify it as described above then it works. No worries, I'll end up putting the column on there anyway.
Thanks for your help!
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
September 26, 2007, 04:51 PM
SayedDoes not work as is on 762. Get agent crash on edaserver.
WF 8.x and 7.7.x Win/UNIX/AS400, MRE/Portal/Self-Service, IIS/Tomcat, WebSphere, IWA, Realmdriver, Active Directory, Oracle, SQLServer, DB2, MySQL, JD Edwards, E-BIZ, SAP BW, R/3, ECC, ESSBASE
October 11, 2007, 12:18 PM
ihfTABLE FILE CAR
PRINT CAR DEALER_COST
BY COUNTRY NOPRINT
ON COUNTRY SUBTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,
BY=1,
COLUMN=DEALER_COST,
FOCEXEC=app/xxxxxx(MYCOUNTRY=N1),$
ENDSTYLE
END
this worked fine in 5.3.6 from mre. Ira