Home
Analytics
Display description in footer if superscript is present
mukesh
<p>Hello everyone,</p>
<p>I am creating a report in birt version 4.3.2.i have a requirement wherein i need to display description of superscript in footer when there is superscript present in one of the column.i am able to implement superscript but i want to display its description in footer as well only if the superscript is present o that page,also if the table spans across multiple pages and suppose there is no superscript present in the page then the footer display i.e. description should get blocked.</p>
<p> </p>
<p>please suggest.</p>
Find more posts tagged with
Comments
JFreeman
<p>How are you implementing the superscript?</p>
<p> </p>
<p>It should be possible to pass a value about the superscript to a persistent global variable and then read it in a text element on the footer to display your description.</p>
<p> </p>
<p>It should also be possible to set the visibility of footer to hide if there is nothing to display.</p>
<p> </p>
<p>Some of the specifics will vary depending on how you have implemented the super script.</p>
mukesh
<p>Hi Jesse</p>
<p> </p>
<p>Actually i am creating a table in birt and displaying superscript in one of the column when the column have a particular value in a row.</p>
<p> </p>
<p>Approach</p>
<p> </p>
<p>1 I am deriving integer value when my row has value "DSC" and storing the value in variable</p>
<p>like</p>
<p> </p>
<div><structure></div>
<div> <property name="name">Load Superscript</property></div>
<div> <expression name="expression">if (row["load"] == "DSC") </div>
<div>1 </div>
<div>else </div>
<div>null</expression></div>
<div> <property name="dataType">integer</property></div>
<div> </structure></div>
<div> </div>
<div>2) once i have the derived value in variable i am concatenating it like to display superscript</div>
<div> </div>
<div><text-property name="content"><![CDATA[<VALUE-OF>row["Holdings::name"]</VALUE-OF><sup><VALUE-OF format="HTML">row["Hodling::Load superscript"]</VALUE-OF></sup>]]></text-property></div>
<div> </div>
<div> </div>
<div>so far s good and also i am able to put visibility condition on my footer section where i have written my description and its working fine.</div>
<div> </div>
<div>the Only thing i want is that if the table spans across multiple pages and suppose if there is no superscript on page at all ,how will i am going to capture that instance and block the display in footer of description.</div>
<div> </div>
<div>to cut short:</div>
<div>simply i want to display my footer if the table rows on that page have superscript and if table spans on page two and the rows which are getting displayed on page two don't have the superscript then the footer description needs to be blocked.</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>Please guide</div>
JFreeman
<p>I believe I am understanding.</p>
<p>I think it may be possible to put some scripting in the onPageBreak of the table to find and hide the footer based on the variable values.</p>
<p> </p>
<p>Can you attach a sample report that uses a flat file data source that replicates the issue and your report layout?</p>