iReport Ultimate Guide - Nimsoft Library
iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library
iReport Ultimate Guide5.6.1 Hyperlink TypeUR provides five types of built-in hypertext links: Reference, LocalAnchor, LocalPage, RemoteAnchor andRemotePage. Anyway, other types can be implemented and plugged into UR (like the type ReportExecutionused by UR to implement the drill down features). Here is a list of the link types:ReferenceLocalAnchorLocalPageRemoteAnchorRemotePageThe Reference link indicates an external source that is identified by a normal URL.This is ideal to point, for example, to a servility to manage a record drill-down tools.The only expression required is the hyperlink reference expression.To point to a local anchor means to create a link between two locations into thesame document. It can be used, for example, to link the titles of a summary to thechapters to which they refer.To define the local anchor, it is necessary to specify a hyperlink anchor expression,which will have to produce a valid anchor name.If instead of pointing to an anchor you want to point to a specific current reportpage, you need to create a LocalPage link. In this case, it is necessary to specifythe page number you are pointing to by means of a hyperlink page expression (theexpression has to return an Integer object).If you want to point to a particular anchor that resides in an external document, youuse the RemoteAnchor link. In this case, the URL of the external file pointed to willhave to be specified in the Hyperlink Reference Expression field, and the name ofthe anchor will have to be specified in the Hyperlink Anchor Expression field.This link allows you to point to a particular page of an external document. Similarly,in this case the URL of the external file pointed to will have to be specified in theHyperlink Reference Expression field, and the page number will have to bespecified by means of the hyperlink page expression.Some export formats have no support for hypertext links.5.6.2 Hyperlink ParametersSometimes you will need to define some parameters that must be “attached” to the link. The Link parameters table provides aconvenient way to define them. The parameter value can be set using an expression. The parameter expression is supposed tobe a string (since it will be encoded in the URL). But when using custom link types it makes sense to set different types forparameters.5.6.3 Hyperlink TooltipThe tooltip expression is used to set a text to display as tooltip when the mouse is over the element that represents thehyperlink (this only works when the document is exported in a format that supports this type of interactive use).94
Fields, Parameters, and VariablesCHAPTER 6FIELDS, PARAMETERS, AND VARIABLESIn a report, there are three groups of objects that can store values:• Fields• Parameters• VariablesiReport uses these objects in data source queries. In order to use these objects in a report, they must be declared with a discretetype that corresponds to a Java class, such as String or Double. After they have been declared in a report design, the objectscan be modified or updated during the report generation process.Figure 6-1Report objects in outline viewAfter they have been declared, they can be managed using the Report Inspector view. In the Report Inspector you can modifyor remove objects and declare new objects, as well.This chapter has the following sections:• Working with Fields• Working with Parameters• Working with Variables• Evaluating Elements During Report Generation95
- Page 43 and 44: Basic Notions of iReport(new java.l
- Page 45 and 46: Report StructureCHAPTER 4REPORT STR
- Page 47 and 48: Report StructureGroup HeaderDetailG
- Page 49 and 50: Report StructureThe page margin dim
- Page 51 and 52: Report StructureFigure 4-6Result of
- Page 53 and 54: Report StructureMultiple columns ar
- Page 55 and 56: Report StructureFigure 4-11Properti
- Page 57 and 58: Report StructureAs you can see in F
- Page 59 and 60: Report Structure4.1.3.12 ImportsThe
- Page 61 and 62: Report Structureexample, in a repor
- Page 63 and 64: Report ElementsCHAPTER 5REPORT ELEM
- Page 65 and 66: Report ElementsFigure 5-3Guidelines
- Page 67 and 68: Report ElementsFigure 5-6Element no
- Page 69 and 70: Report ElementsTable 5-1Formatting
- Page 71 and 72: Report ElementsFigure 5-10Table 5-2
- Page 73 and 74: Report ElementsFigure 5-11Custom el
- Page 75 and 76: Report Elements5.1.5.2 RectangleThe
- Page 77 and 78: Report ElementsTable 5-4TypeImage E
- Page 79 and 80: Report ElementsTable 5-5OptionImage
- Page 81 and 82: Report ElementsCode Example 5-1Dyna
- Page 83 and 84: Report ElementsCode Example 5-2Prin
- Page 85 and 86: Report ElementsPDF font namePDF enc
- Page 87 and 88: Report ElementsFor your convenience
- Page 89 and 90: Report ElementsHere there are some
- Page 91 and 92: Report ElementsThe following briefl
- Page 93: 5.5 Adding Custom Components and Ge
- Page 97 and 98: Fields, Parameters, and VariablesIn
- Page 99 and 100: 6.1.2 Accessing the SQL Query Desig
- Page 101 and 102: Fields, Parameters, and Variables6.
- Page 103 and 104: 6.2.3 Built-in ParametersFields, Pa
- Page 105 and 106: Fields, Parameters, and VariablesRe
- Page 107 and 108: Fields, Parameters, and Variables6.
- Page 109 and 110: Fields, Parameters, and VariablesTa
- Page 111 and 112: Bands and GroupsCHAPTER 7BANDS AND
- Page 113 and 114: Bands and Groupsexpression may be r
- Page 115 and 116: Bands and GroupsFigure 7-6Dragging
- Page 117 and 118: Bands and GroupsFigure 7-10The firs
- Page 119 and 120: Bands and GroupsFigure 7-14 shows t
- Page 121 and 122: 7.3 Other Group OptionsBands and Gr
- Page 123 and 124: Fonts and StylesCHAPTER 8FONTS AND
- Page 125 and 126: Fonts and StylesThe list of availab
- Page 127 and 128: Fonts and StylesFigure 8-5Font Exte
- Page 129 and 130: Fonts and StylesFigure 8-7Font Exte
- Page 131 and 132: Fonts and StylesFigure 8-10The new
- Page 133 and 134: Fonts and StylesTo apply a style to
- Page 135 and 136: Fonts and StylesFigure 8-17The outl
- Page 137 and 138: TemplatesCHAPTER 9TEMPLATESOne of t
- Page 139 and 140: TemplatesFigure 9-2Columnar reportA
- Page 141 and 142: TemplatesFigure 9-4Group by step in
- Page 143 and 144: TemplatesIf a static text element i
<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>5.6.1 Hyperlink TypeUR provides five types of built-in hypertext links: Reference, LocalAnchor, LocalPage, RemoteAnchor andRemotePage. Anyway, other types can be implemented and plugged into UR (like the type ReportExecutionused by UR to implement the drill down features). Here is a list of the link types:ReferenceLocalAnchorLocalPageRemoteAnchorRemotePageThe Reference link indicates an external source that is identified by a normal URL.This is ideal to point, for example, to a servility to manage a record drill-down tools.The only expression required is the hyperlink reference expression.To point to a local anchor means to create a link between two locations into thesame document. It can be used, for example, to link the titles of a summary to thechapters to which they refer.To define the local anchor, it is necessary to specify a hyperlink anchor expression,which will have to produce a valid anchor name.If instead of pointing to an anchor you want to point to a specific current reportpage, you need to create a LocalPage link. In this case, it is necessary to specifythe page number you are pointing to by means of a hyperlink page expression (theexpression has to return an Integer object).If you want to point to a particular anchor that resides in an external document, youuse the RemoteAnchor link. In this case, the URL of the external file pointed to willhave to be specified in the Hyperlink Reference Expression field, and the name ofthe anchor will have to be specified in the Hyperlink Anchor Expression field.This link allows you to point to a particular page of an external document. Similarly,in this case the URL of the external file pointed to will have to be specified in theHyperlink Reference Expression field, and the page number will have to bespecified by means of the hyperlink page expression.Some export formats have no support for hypertext links.5.6.2 Hyperlink ParametersSometimes you will need to define some parameters that must be “attached” to the link. The Link parameters table provides aconvenient way to define them. The parameter value can be set using an expression. The parameter expression is supposed tobe a string (since it will be encoded in the URL). But when using custom link types it makes sense to set different types forparameters.5.6.3 Hyperlink TooltipThe tooltip expression is used to set a text to display as tooltip when the mouse is over the element that represents thehyperlink (this only works when the document is exported in a format that supports this type of interactive use).94