Jump to content
Changes to the Jaspersoft community edition download ×

jo_atman

Members
  • Posts

    31
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by jo_atman

  1. Admins almighty, I decided to start a separate thread here to elicit your response on whether this should be classified as a bug or as a feature request: As clarified by Lucian, "The JR engine does not start to render a band unless there is enough space on the current page to fit the band's declared height" So if i create a band that's larger than what a page can accommodate, it goes into an infinite loop trying to add page breaks and starting new pages. I have attached a simple example. In the example, the subreport specifies a large height (809) for the detail band, which causes the infinite loop. Overall, my request is that the band be allowed to start on a page even if it's too big for the page, and let it wrap onto the next page(s) if need be. [file name=InfiniteLoop.zip size=3208]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/InfiniteLoop.zip[/file]
  2. Lucian, Thanks for the clarification and the suggestions. I have a related question: If i happen to create a page that's just too big (e.g. i add so many elements on a 595 X 842 page that the required height goes beyond 842), will i get a compile error, or would it throw a runtime error? Thanks, Nilesh
  3. I happen to need this functionality too. we tried giving a different orientation to each subreport, and that didn't work, so now we are doing some funky, ugly, klugy stuff...
  4. it's me again. Ok, so after debugging through the src, the reason is clear. the detail for the subreport is too big to fit on the remainder of the page, so a page break is introduced. So the simple question is, how do i say that it's ok for the detail to span across multiple pages, so that it continues the detail from the current page instead of starting on a new page? Thanks, nilesh
  5. I have a report consisting of a few subreports, with the order of the subreports being changeable. the guilty subreport has a title and a detail area (with the detail area having quite a bit of content). If the guilty subreport is put ahead of all the other subreports, it shows up fine. however, if it is stuck in the middle, the title shows immediately after the previous subreport, then the remaining page is blank, and the detail of the subreport starts on the next page. e.g. Code:guilty subreport first guilty subreport in middle ------- page 1-------- -------- page 1 --------- Report title Report title guilty subreport title Other subreport title guilty subreport detail Other subreport detail ... ... ... ... ... ... next subreport title guilty subreport title next subreport detail **** blank line **** ... **** blank line **** ... **** blank line **** --------page 2 -------- --------page 2 -------- ... guilty subreport detail next subreport title ... next subreport detail ... ... ... ... ------- page 3 --------i have looked at all the parameters i could think of, but can't find the problem. anyone have any ideas what might be causing this? Thanks, Nilesh Code:[code]Post edited by: jo_atman, at: 2006/10/23 20:24
  6. So you escape the first one by saying & a m p; and then you escape the ampersand in that escaped ampersand: ( & a m p ; ) a m p ; (parentheses are just for illustration) thus: & a m p ; a m p ; :) Post edited by: jo_atman, at: 2006/10/20 21:18
  7. Hi, Similar to removeLineWhenBlank, i'm wondering if there is a way to reclaim a cell if the value is null/empty. e.g. if i have a row: field1 field2 field3 if $F{field2} is null/empty i would like the row to be: field1 field3 right now, with isBlankWhenNull="true" will do: field1 field3 Thanks, nilesh
  8. you may need to post your jrxml to help diagnose the problem...
  9. If you're passing it in through the data source's getFieldValue() like i am, you have to double escape it - once for the jrxml parsing, and the second time for the style parsing. so you would say & Hope this helps. Nilesh
  10. Lucian, Although the super-convoluted way in which i tried to do this didn't work, i just realized that there is a much simpler way of doing this. i don't need the hyperlink hashmap that i have created. just adding the $F{} in the anchorName and the hyperlinkanchor expression is more than enough. Thanks a lot for your time. I am withdrawing my erroneous conclusion about hyperlinks. Thanks, nilesh
  11. Lucian, Thanks for the reply. I'm attaching a simple report that i'm having problems with. my strategy is this: create a hyperlink map that gets passed in as a parameter. the hyperlink map will contain the hyperlink anchornames and are used by the hyperlink anchor expression. i have attached a zip file containing a jrxml, and a java file. i'm sure i'm doing something stupid, but i need someone else to look at it and tell me what :) [file name=hyperlink.zip size=1816]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/hyperlink.zip[/file]
  12. At this point, the only conclusion i can draw is that dynamic (resolved during fill-time) hyperlinks are not possible. I noticed that in the <hyperlinkAnchorExpression> as well as the <anchorNameExpression>, if the CDATA was enclosed in quotes, it was used. if not, it was ignored. Now if it's in quotes, it assumes that it's a string constant expression, not something to be evaluated. I'm surprised that no one has felt the need for something of this sort. here's my business case: in one subreport, i have a list of user-defined city groups shown. for e.g. CityGroup1 <-- this needs to be an anchor LAX/SFO/OAK further down, in another subreport (for that matter, it could be in the same subreport), there's a table that has the citygroup listed in one of the columns e.g. From To Fare CityGroup1 HKG $1200 Here, CityGroup1 needs to be a hyperlink that takes me back to the definition of the subreport. The way i tried to accomplish this is as follows: 1. Add an <anchorNameExpression> <![CDATA[$F{groupCode}]]> </anchorNameExpression> up where the anchor is. 2. created a map in my code, which contains hyperLinkMap.put( groupCode, groupCode ); 3. and at the place where the hyperlink needs to be, i have <hyperlinkAnchorExpression> <![CDATA[$P{hyperlinkMap.get($F{groupCode})]]> </hyperlinkAnchorExpression> of course, with the reportElement stating that it's a "LocalAnchor". Anyone have any ideas/suggestions? Thanks, Nilesh </hyperlinkAnchorExpression> is to create a hyperlink map in my code, that says
  13. Could you explain (or provide a code snippet of) how your app is displaying the pdf report after jasper generates it? does it come up in a window created by your app, or does it come up in the acrobat reader? Thanks, Nilesh
  14. Could you perhaps post the details of the error, and maybe a snippet of the jrxml showing the style declaration and where you're using the style? Thanks, Nilesh
  15. Friends, I have scoured the discussion for hyperlink-related questions, but didn't find what i was looking for, so here goes: i'm using hyperlinks between subreports within one master report. So, in subreport1, i have: <textField ... hyperlinkType="LocalAnchor"> ... <hyperlinkAnchorExpression> expr (a fill-time evaluated expression) </hyperlinkAnchorExpression> </textField> and in subreport2: <textField> ... <anchorNameExpression> expr (the same fill-time evaluated expression) </anchorNameExpression> </textField> The questions are: 1. is "LocalAnchor" ok for linking between subreports within the same report? 2. are the links evaluated at compile time or fill-time? because my expressions are $F{} fields evaluated at fill-time Currently, the symptom is that clicking on my hyperlink doesn't do anything. when i debug with source code, it says that the hyperlink has null hyperlinkAnchor, so i'm not sure why the anchor didn't get set. Any help is as always greatly appreciated. Thanks, Nilesh
  16. Teodor, Thanks a lot. That helped me fix the problem. Since we determine the font dynamically, in the datasource, we wrap the actual value with a <style> element. so, as you said, the & in this styled value needed a double escaping. So adding a double escape of the ampersand in the getFieldValue() did the trick. Thanks again, Nilesh
  17. Sorry, another question for the admins and fathers of JasperReports: If i do the replaceAll() for special characters (like &) in the jrxml, it works. If i do it in the getFieldValue() in my DataSource (so i can handle it generically for all my data), it somehow seems to get converted to a plain & again, and i get a SAXParseException. Any idea how i can get around this? Thanks, Nilesh
  18. Sorry, i guess i started a new topic about the same issue without searching the forum. I did the same thing replaceAll("&", "&"), but still got the error. the only difference is that i do this replaceAll in my data source... I'm also confused as to how you were able to show the escape sequence on the forum, since my escape sequence gets converted into an ampersand!
  19. Folks, I have a styled text with the character "&" in the text. I tried to replaceAll the "&" with the escape sequence (i tried to type the escape sequence here, but the editor recognized it as an ampersand and replaced it with "&" :( ) but i still get the familiar "The entity name must immediately follow the '&' in the entity reference", meaning, i'm assuming, it didn't accept my escaping. What am i missing? Thanks, Nilesh Post edited by: jo_atman, at: 2006/10/10 00:26 Post edited by: jo_atman, at: 2006/10/10 00:29
  20. Teodor, Thanks for the response. I tried it. The hitch is that even in the summary section i have more than one element. so for example in the detail section i had, say, 3 citygroups, so in the summary section i need to display 3 citygroups. The 3 is of course dynamic. it could be 1 or 10 or any other number. And i don't think the summary section iterates over your data, does it? at this point, i can't think of anything better than breaking it into 2 subreports...
  21. Folks, I have a not unusual scenario where i'm displaying my main data in the detail section at the end of which, i want to show a legend e.g. --------------------------------- OriginCity OriginCityGroup DestCity DestCityGroup Fare DFW ORD 200 WestCoast ORD 400 ... ... CityGroupLegend WestCoast: LAX SFO SAN -------------------------------- this is a subreport inside of a main report with other subreports. I thought i could put the legend in my subreport page footer, but the subreport page footer ends up appearing on every page of the main report. What's the best way to do something like this? Thanks, Nilesh
  22. Sorry about specifying a name in the subject, but i thought Teodor might be the best person to answer this: I noticed that JRBeanCollectionDataSource and others need the collection/array to be specified in the constructor. I was hoping i could use a setter to set my collection in, perhaps after creating the data source through a spring config file. I guess the question is whether there is a specific reason that we can't use a setter to set the collection in the datasource. Thanks, Nilesh
  23. Okay, to clarify: usually, if a report has, say, 3 subreports within it, i'll have ... <detail> <band> <subreport> ... </subreport> <subreport> ... </subreport> <subreport> ... </subreport> </band> </detail> ... What i'm doing is passing in as a parameter, a List of subreports. It can have anywhere from 1 to 9 subreports in there. So i don't know statically how many subreport sections to add in the report beforehand. so how do i dynamically add as many subreport sections as the size() of my List? Hope that helps. I was hoping to use the <printWhenExpression>, but i'm not sure how to use it to skip <subreport> sections...
  24. Hi all, basically i have a list of elements that a user can choose from, and each element has its own subreport. So i end up with a list of subreports. The question is: is there something like creating a loop within my main report jrxml which i can call for the list of subreports? Alternatively, if the number of subreports that will be in the main report is dynamic, how do i incorporate this variable number of subreports in my main report? Thanks, Nilesh
×
×
  • Create New...