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

deepakrsarangi

Members
  • Posts

    4
  • 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 deepakrsarangi

  1. Hi There, Page break has become a nightmare for me in Jaspersoft reports. With contents expanding to multiple pages, the page breaks should occur properly without disrupting data display. I have this problem when remaining data for the previous record and current data both(from detail bands of both records) are being displayed on the same page. However page header displays data for the current data. Please refer to the below image for the actual problem and suggest some resolution to it. Thanks for your help.
  2. Thanks. Let me clear out any confusion here. I am displaying both Dynamic1 and Dynamic1_Val. The following conditions are being calculated for each record retrived from DB. If Param_Dynamic1 = "IT_PM, then Dynamic1 = "IT Project Manager", Text Field1.text = "IT Project Manager" (Value of Dynamic1) If Dynamic1= "IT Project Manager", then Dynamic1_Val = Query Field {IT_PM}, Text Field2.text = IT PM Value from DB (Value of Dynamic1_Val) The problem is that, not a single text field value is being displayed on the report. To your point: I agree that calculation of Dynamic1_Val is wrong. I will rectify that. But why Dynamic1 variable value is not displayed on the report even.
  3. Hi, I have this unique problem of displaying variable value at runtime for each record basis. The variable values should be calculated at runtime based on the parameter value provided. However the values are not getting rendered on the report. I have already tried to set the variable "reset type to Page", still no success. Here is the JRXML for the same. Please resolve. Parameter JRXML: <parameter name="PARAM_DYNAMIC1" class="java.lang.String"><defaultValueExpression><![CDATA["IT_PM"]]></defaultValueExpression></parameter><parameter name="PARAM_DYNAMIC2" class="java.lang.String"><defaultValueExpression><![CDATA["IT_PM"]]></defaultValueExpression></parameter> Field JRXML: <field name="ITPM" class="java.lang.String"><fieldDescription><![CDATA[iTPM]]></fieldDescription></field><field name="ITPMOLEAD" class="java.lang.String"><fieldDescription><![CDATA[iTPMOLEAD]]></fieldDescription></field><field name="BUSPMOLEAD" class="java.lang.String"><fieldDescription><![CDATA[bUSPMOLEAD]]></fieldDescription></field>Variable JRXML: <variable name="Dynamic1" class="java.lang.String"><variableExpression><![CDATA[($P{PARAM_DYNAMIC1} == "IT_PMO" ? "IT PMO Lead" : ($P{PARAM_DYNAMIC1} == "BUS_PMO" ? "Business PMO Lead" : ($P{PARAM_DYNAMIC1} == "IT_PM" ? "IT Project Manager" : ($P{PARAM_DYNAMIC1} == "IT_SPONSOR" ? "IT Sponsor" : ""))))]]></variableExpression><initialValueExpression><![CDATA[($P{PARAM_DYNAMIC1} == "IT_PMO" ? "IT PMO Lead" : ($P{PARAM_DYNAMIC1} == "BUS_PMO" ? "Business PMO Lead" : ($P{PARAM_DYNAMIC1} == "IT_PM" ? "IT Project Manager" : ($P{PARAM_DYNAMIC1} == "IT_SPONSOR" ? "IT Sponsor" : ""))))]]></initialValueExpression></variable><variable name="Dynamic2" class="java.lang.String"><variableExpression><![CDATA[($P{PARAM_DYNAMIC1} == "IT_PMO" ? "IT PMO Lead" : ($P{PARAM_DYNAMIC1} == "BUS_PMO" ? "Business PMO Lead" : ($P{PARAM_DYNAMIC1} == "IT_PM" ? "IT Project Manager" : ($P{PARAM_DYNAMIC1} == "IT_SPONSOR" ? "IT Sponsor" : ""))))]]></variableExpression><initialValueExpression><![CDATA[($P{PARAM_DYNAMIC1} == "IT_PMO" ? "IT PMO Lead" : ($P{PARAM_DYNAMIC1} == "BUS_PMO" ? "Business PMO Lead" : ($P{PARAM_DYNAMIC1} == "IT_PM" ? "IT Project Manager" : ($P{PARAM_DYNAMIC1} == "IT_SPONSOR" ? "IT Sponsor" : ""))))]]></initialValueExpression></variable><variable name="Dynamic1_Val" class="java.lang.String"><variableExpression><![CDATA[($V{Dynamic1} == "IT_PMO" ? ($F{ITPMOLEAD} == null ? "Nothing to display" : $F{ITPMOLEAD} ):($V{Dynamic1} == "BUS_PMO" ? ($F{BUSPMOLEAD} == null ? "Nothing to display" : $F{BUSPMOLEAD} ):($V{Dynamic1} == "IT_PM" ? ($F{ITPM} == null ? "Nothing to display" : $F{ITPM} ):($V{Dynamic1} == "IT_SPONSOR" ? ($F{ITSPONSOR} == null ? "Nothing to display" : $F{ITSPONSOR} ) : ""))))]]></variableExpression></variable><variable name="Dynamic2_Val" class="java.lang.String"><variableExpression><![CDATA[($V{Dynamic2} == "IT_PMO" ? ($F{ITPMOLEAD} == null ? "Nothing to display" : $F{ITPMOLEAD} ):($V{Dynamic2} == "BUS_PMO" ? ($F{BUSPMOLEAD} == null ? "Nothing to display" : $F{BUSPMOLEAD} ):($V{Dynamic2} == "IT_PM" ? ($F{ITPM} == null ? "Nothing to display" : $F{ITPM} ):($V{Dynamic2} == "IT_SPONSOR" ? ($F{ITSPONSOR} == null ? "Nothing to display" : $F{ITSPONSOR} ) : ""))))]]></variableExpression></variable> Text field JRXML: <textField evaluationTime="Page"><reportElement x="102" y="59" width="121" height="17" uuid="46801896-fe76-418d-8ec8-e672bccfd86c"/><textElement verticalAlignment="Bottom"><font fontName="VoyaArial" size="9"/></textElement><textFieldExpression><![CDATA[$V{Dynamic1_Val}]]></textFieldExpression></textField><textField evaluationTime="Page"><reportElement x="102" y="75" width="121" height="17" uuid="46801896-fe76-418d-8ec8-e672bccfd86c"/><textElement verticalAlignment="Bottom"><font fontName="VoyaArial" size="9"/></textElement><textFieldExpression><![CDATA[$V{Dynamic2_Val}]]></textFieldExpression></textField> The text fields are not getting rendered for any parameter value specified.Any help would be much appreciated. Thanks.
  4. I have a Base64 image inside the pageheader. However upon running the report the image only displays on the first page, not on rest of the pages. The JRXMLs are given as below: <variable name="PageHeader" class="java.lang.String"><initialValueExpression><![CDATA["iVBORw0KGgoAAAANSUhEUgAABh4AA...........AAAAASUVORK5CYII="]]></initialValueExpression></variable> Page Header: <pageHeader><band height="55" splitType="Stretch"><image><reportElement mode="Opaque" x="-10" y="-10" width="772" height="55" isPrintWhenDetailOverflows="true" uuid="81b42e7c-9af4-4c80-8034-2783000e584e"><property name="com.jaspersoft.studio.unit.width" value="pixel"/><printWhenExpression><![CDATA[boolean.TRUE]]></printWhenExpression></reportElement><imageExpression><![CDATA[new ByteArrayInputStream(Base64.decodeBase64($V{PageHeader}.getBytes()))]]></imageExpression></image><textField evaluationTime="Page"><reportElement x="-5" y="2" width="735" height="33" forecolor="#050000" uuid="a719242d-3931-4867-9322-462e4cf0e9b9"/><textElement><font fontName="Arial" size="13" isBold="true"/></textElement><textFieldExpression><![CDATA["Program / Project Status Report "+ $V{ProjectCode_Name} + $V{AsOfDate} + $V{VoyaStatusReportStage}]]></textFieldExpression></textField></band></pageHeader> Is there any other configurational entries, I missed???
×
×
  • Create New...