Jump to content
We've recently updated our Privacy Statement, available here ×

jonataswingeter

Members
  • Posts

    9
  • 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 jonataswingeter

  1. Hi Lucian. I've already requested a new project on jasperforge.org. Thanks. Jônatas
  2. Lucian. I've started a small project to help programmer developer reports. it consist to determine, by a class configurator, the field avaiable in report. After it, a datasource is associated with the report and each Bean of the List can be conected to the field set definition. At this way, isn't needed to implement XML, because the report is simple, as a template. 1) You tell the fields you want in report; 2) customize each field, if needed (Sum, Total, Count, Alignment, Pattern, etc); 3) Associate the datasource. Ready. It makes sense for many simple report. I recently did it at my work and now I'm doing a version more powerful and consistence. I tried publish a new project at jasperforge (I don't know it its ok), but if you have interest, contact me. It will be available under GPL.
  3. Hi Lucian. I understood. I put the code and textField has that instance (JRStyle) but on PDF view nothing changes or appear. I made a test with iReport and it runs, but with coding no. Have you any idea?
  4. Hi Lucian. I added just in component textfield. If I insert into jasperDesign, the xml generated returns <style name="formaNegrito" ... /> and <style name="formaNegrito1" .../> It repeats de code. What is correct? In both case, the conditional tag isn't created, but just style tag with nothing more. Thanks. Jônatas
  5. Hi Lucian, How could I inserted the XML tags through runtime? I tried something like that: Code: JRDesignStyle jrStyle = new JRDesignStyle(); JRDesignConditionalStyle jrconditionalStyle; { jrconditionalStyle = new JRDesignConditionalStyle(); JRDesignExpression expressao; { ResourceBundle rb = ServiceLocator.getInstance().getResourceMensagem(); expressao = new JRDesignExpression(); expressao.setValueClass(Boolean.class); expressao.addTextChunk("new Boolean(true)"«»); } jrconditionalStyle.setConditionExpression(expressao); jrconditionalStyle.setBold(true); } jrStyle.addConditionalStyle(jrconditionalStyle); jrStyle.getConditionalStyleList().add(jrconditionalStyle); jrStyle.setName("formaNegrito"«»); [/ciode] But it didn't create the tags that you supose in your last post. Thanks. Jônatas
  6. Hi Lucian. firstly I thank you for your help. I've a report made at runtime, using JRDesign. The group band is added according my logic and it has a group expression. Inside group header, it has a textfield with textexpression, that returns a method $P{REPORT_SCRIPTLET}.getTotal(). The group expression is evaluated correctly, just on groupexpression $F{representante} changes, but the method getTotal() is executed every row inserted in detail. I debugged the application and the method is called every row request, processed by callBeforeDetailEval(). Note I don't have the method inserted in some event of scriptlet, but only the method declaration to be called by report. It is a stranger behavior. I don't have time to look sources yet, but I cam check it too. Regards, Jônatas
  7. Hi People. I'm enthusiast for jasper and newer here, hello for all. I'm facing a problem I don't found solution. 1) I have a field $F{campo} that need be evaluated in runtime, cause I need change the textField to Bold or not, depending of the case. I wanna know if setting both textfield (one with bold and other not) and alternate its visibility from $F{campo} changes is the only one solution. Can I do something like quickreport of delphi, where I set the textfield to bold at runtime according field value? 2) I have a method that is called by Scriptlet in a group. The group has a evaluation expression to make grouping from SQL command, therefore, the method is called not just on group evaluation, but each detail record show it has been called. Is it a bug or may be a something wrong no xml? Thanks. Jônatas
×
×
  • Create New...