andre187 Posted June 28, 2011 Share Posted June 28, 2011 Hi everybody!In an ad-hoc-report after grouping some columns and adding a column to calculate, the ad-hoc-reporting-mask shows me a preview with some data and detail rows.In the menu, top right, I can hide/show the detail rows. The default is "show detail rows". Now my question:How can I change the default from "show detail rows" to "hide detail rows" in an ad-hoc-report? What I've done until now:In webappsjasperserver-proWEB-INFadhocactionModel_TableViewModel.xml I've found following at row line 15: <condition test="getShowDetailMenu"> <option labelCondition="getShowTableDetails" action="toggleTableDetails"> <labelOption functionResponse="false" labelKey="ADH_242_SHOW_TABLE_DETAILS"/> <labelOption functionResponse="true" labelKey="ADH_241_HIDE_TABLE_DETAILS"/> </option> </condition>My buzzword was "ShowTableDetails" to make further search in Java-files.I found following Class AdhocUnifiedState in Package com.jaspersoft.ji.adhoc (It's in the ji-gyroscope jar)There is a boolean "showTableDetails" and it was initialized with "true". So I changed and deployed it on my Jasperserver, reload the application and testing it, but the change has no effects.I'm using Jasperserver 3.7.1. Thanks for any suggestions and help! Best regardsAndreePost Edited by andre187 at 2011-06-28 16:07Post Edited by andre187 at 2011-06-29 08:02 Link to comment Share on other sites More sharing options...
andre187 Posted July 19, 2011 Author Share Posted July 19, 2011 No suggestions? No ideas? Link to comment Share on other sites More sharing options...
mdahlman Posted July 19, 2011 Share Posted July 19, 2011 It sounds like you made reasonable changes to get it working.Be sure to log it with technical support. It seems there is definitely a valid enhancement request:1. It should be possible to default to "hide detail rows" by making a config change (no recompilation should be required).And based on your post, it seems like there could be a bug:2. The initialization value for showTableDetails in AdhocUnifiedState.java (in gyroscope.jar) is ignored.I cannot confirm #2. Perhaps you've made a silly mistake. But it sounds like you've done things correctly. In any case, support should be able to assist.Regards,Matt Link to comment Share on other sites More sharing options...
VanyaC Posted July 29, 2011 Share Posted July 29, 2011 I believe if you want to modify a default property of AdhocUnifiedState, you will most like want to edit WEB--INF/applicationContext-adhoc-.xml. Look for bean id adhocUnifiedStateTemplate in that xml file and add the property that you want to modify. However, this is just the initial property setting, not sure doesn't it work for your case or not. - ivan Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now