Home
Analytics
Hiding header data on pagebreak
birt_ag
<p>Hi,</p>
<p> </p>
<p>I've a requirement were i need to hide the header table data from 2nd page onwards.</p>
<p>But i'm not able to do that. </p>
<p> </p>
<p>I've tried few things like hiding based on the Total.count() and Total.runningcount() but both didnt work.</p>
<p> </p>
<p>Only in the 1st page the data in the header section should get printed, but from 2nd page onwards those data should not be repeated.</p>
<p> </p>
<p>Repeat header should not be unchecked here as there are few labels in the header section which needs to be displayed in each and every page.</p>
<p> </p>
<p>Can any one help me on achieving this.</p>
<p> </p>
<p>I'm attaching an image which shows the problem.</p>
<p> </p>
<p>I'm also attaching the sample template and xml file for reference.</p>
<p> </p>
<p>Thank U.</p>
Find more posts tagged with
Comments
mwilliams
Try this design out.<br><br>On the grid row in the header, I did a check for the pageNumber and set the display property to none if it was greater than 1.
birt_ag
<p>hi mwilliams,</p>
<p> </p>
<p>Thank u for the reply..</p>
<p> </p>
<p>problem is i've attached only the table which is causing the problem, there are many other pages preceding this one. This table wont be the first page of the report.</p>
<p> </p>
<p>Thank u.</p>
mwilliams
How about this one?<br><br>onCreate and onRender of the header grid row.
birt_ag
<p>Hi williams,</p>
<p> </p>
<p>Thank u for the reply.</p>
<p> </p>
<p>The attached template is hiding the data only for 2nd page and so on, but as i mentioned before this table wont be the first page, there can be many other pages preceding this.<br><br>
Also the entire row is getting hidden, i just want to hide the cell data and maintain the rows without affecting the table structure.</p>
<p> </p>
<p>I tried hiding the element based on the <span><</span><span>page-data-count</span><span>></span><span>1</span><span></</span><span>page-data-count</span><span>> tag, like if the tag value is 2 hide the element using the visibility property but it didnt work.</span></p>
<p> </p>
<p><span>Any other solution for this.</span></p>
<p> </p>
<p>Thank You</p>
mwilliams
Just because I didn't add any extra tables in front of the table you put in the report doesn't mean it doesn't work for what you asked.
<br><br>When you said it wouldn't be on the first page, I changed the logic to not care what page it's on. As you can see in the attached report, I have added a table to the beginning of the report. I also moved the visibility logic to the onRender of the individual elements rather than the row so that only the elements are hidden and the row remains.<br><br>Hope this helps. Let me know if you have further questions.
birt_ag
<p>Hi williams,</p>
<p>sorry for the inconvinience, i thought it in wrong way.</p>
<p> </p>
<p>i tried placing the on render script on individual elements, but its not working, even with the report generated by the above attached template is not giving the required result.</p>
<p> </p>
<p>I'm trying for both pdf and word views</p>
<p> </p>
<p>THank u</p>
mwilliams
Make sure you're using separate run and render tasks. If you're executing from the designer, you must go to the viewer, then export the report.<br><br>Here are pages 4 and 5 when you run it in the viewer:<br><br>
birt_ag
<p>I'm just trying by Run-View Report - Doc in eclipse</p>
<p> </p>
<p>will it not work in this way ?</p>
<p> </p>
<p>I've implemented the reports only for doc and pdf views, and the web viewer is not considered</p>
mwilliams
From Eclipse, you'll have to go through the viewer. If you do so, you'll get this when you export to DOC:<br><br>
mwilliams
<blockquote class="ipsBlockquote" data-author="birt_ag" data-cid="132139" data-time="1416461697"><p>I'm just trying by Run-View Report - Doc in eclipse<br> <br>will it not work in this way ?<br> <br>I've implemented the reports only for doc and pdf views, and the web viewer is not considered</p></blockquote><br>Not the way this is set up, but this should work for you unless you're only using the designer to run the reports. Though, that's not really true either because you could run the report by URL the same way with designer's viewer as with the deployed viewer which I describe below.<br><br>When you deploy the sample viewer, you'll be able to run your reports directly to whatever output you want with the frameset URL. Going through the viewer from the designer is just because this is how everything is set up in the designer (The viewer is the only one that uses frameset, the others use the preview or run servlets). When you run the report to the web viewer from your designer (using external browser), you can change the __format=html to __format=pdf or __format=docx and you'll see what I'm saying will happen when you create your own link to the deployed viewer.<br><br>Hopefully this makes better sense. I can try to set something up to work for the RunAndRender task which is what you're using, but I think that might be a bit tougher. Let me know.
birt_ag
<p>Thank you very much for the quick help williams,</p>
<p>But we've already implemened only doc and pdf view based on the customer requirements without the birt viewer,</p>
<p> </p>
<p>will it be not possible to hide the data at all for just doc and pdf views ?</p>
<p> </p>
<p>Thanks again.</p>
birt_ag
<p>Thank you very much for the quick help williams,</p>
<p>But we've already implemened only doc and pdf view based on the customer requirements without the birt viewer,</p>
<p> </p>
<p>will it be not possible to hide the data at all for just doc and pdf views without using the report viewers?</p>
<p> </p>
<p>within the applcation we've deployed BIRT using the java api's</p>
<p> </p>
<p>Thanks again.</p>
mwilliams
I'm not sure I'm understanding your point. How are you planning on your or your customer executing your reports from your application?<br><br>In no way am I saying you have to run the reports through the viewer in the paginated HTML view, then export to your desired output. You can go directly to the report in PDF or DOC. You could also write your own Java class if you're wanting to avoid deploying the viewer to an application server.
mwilliams
<blockquote class="ipsBlockquote" data-author="birt_ag" data-cid="132143" data-time="1416464244"><p>Thank you very much for the quick help williams,<br>But we've already implemened only doc and pdf view based on the customer requirements without the birt viewer,<br> <br>will it be not possible to hide the data at all for just doc and pdf views without using the report viewers?<br> <br>within the applcation we've deployed BIRT using the java api's<br> <br>Thanks again.</p></blockquote><br>Okay. If you're using the BIRT Java APIs, all you need to do for this method to work is to use the IRunTask and IRenderTask separately instead of using the IRunAndRenderTask.
birt_ag
<p>Hi williams,</p>
<p> </p>
<p>currenly i'm using IRunAndRenderTask to do the following things - </p>
<p> </p>
<p>IRunAndRenderTask task = null;</p>
<p>task = engine.createRunAndRenderTask(design);</p>
<p>task.setAppContext(contextMap);</p>
<div>task.setRenderOption(options);</div>
<div>task.run();</div>
<div> </div>
<div>now by using <span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">IRunTask and IRenderTask separately, which object should be called for above mentioned methods ?</span></div>
<div> </div>
<div><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Thank You</span></div>
mwilliams
Try changing that to something more like this:<br><br><pre class="_prettyXprint _lang-auto _linenums:0">
IRunTask task = engine.createRunTask(design);
task.run("path_to/myReportDocument.rptDocument");
IReportDocument rptdoc = engine.openReportDocument("path_to/myReportDocument.rptdocument");
IRenderTask rtask = engine.createRenderTask(rptdoc);
PDFRenderOption options = new PDFRenderOption();
options.setOutputFileName("myReport.pdf");
options.setOutputFormat("pdf");
rtask.setRenderOption(options);
rtask.render();
task.close();
</pre>
birt_ag
<p>Hi williams,</p>
<p> </p>
<p>creating rpt documents is mandatory in this case ?</p>
<p>coz till now we had been just working on rptdesign file</p>
<p> </p>
<p>THank you</p>
mwilliams
Yes. You'll have to create the document as the transition step between tasks.
birt_ag
<p>Ok willams,</p>
<p> </p>
<p>Thank You very much for quick reply and timely help.. will check this out.</p>
mwilliams
No problem. If you have issues, just let me know. That code was more or less off the top of my head to help get you started in the right direction, but I think that should do it. If not, I'll look at it in the morning (1am where I'm at).
birt_ag
<p>Hi williams,</p>
<p> </p>
<p>I'm extmely sorry for troubling you..</p>
<p> </p>
<p>I tried the way u told, but didnt get the expected result..<br><br>
Also i'm getting an exception while running the report - </p>
<p> </p>
<div>
<blockquote class="ipsBlockquote">
<div>A report document error occurred when getting the load stream.</div>
<div>org.eclipse.birt.data.engine.core.DataException: A report document error occurred when loading: Subquery.</div>
<div>A report document error occurred when getting the load stream.</div>
<div>at org.eclipse.birt.data.engine.impl.document.ResultIterator.getSecondaryIterator(ResultIterator.java:381)</div>
<div>at org.eclipse.birt.data.engine.impl.document.ResultIterator.getSecondaryIterator(ResultIterator.java:328)</div>
<div>at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.doExecuteSubQuery(AbstractDataEngine.java:331)</div>
<div>at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:262)</div>
<div>at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1941)</div>
<div>at org.eclipse.birt.report.engine.internal.document.v4.ReportItemExecutor.executeQuery(ReportItemExecutor.java:412)</div>
<div>at org.eclipse.birt.report.engine.internal.document.v4.TableItemExecutor.doExecute(TableItemExecutor.java:72)</div>
<div>at org.eclipse.birt.report.engine.internal.document.v4.ReportItemExecutor.execute(ReportItemExecutor.java:294)</div>
<div>at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.prepareChildExecutor(ContainerExecutor.java:226)</div>
<div>at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.hasNextChild(ContainerExecutor.java:110)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:86)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:86)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:62)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:669)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:302)</div>
<div>at com.ags.mhlwreports.generator.BirtReportGenerator.generateBirtReport(BirtReportGenerator.java:70)</div>
<div>at com.ags.mhlwreports.generator.MHLWBirtReport.generateReport(MHLWBirtReport.java:315)</div>
<div>at com.ags.mhlwreports.generator.MHLWBirtReport.generateReport(MHLWBirtReport.java:212)</div>
<div>at com.ags.mhlwreports.generator.MHLWBirtReport.main(MHLWBirtReport.java:476)</div>
<div>Caused by: org.eclipse.birt.data.engine.core.DataException: A report document error occurred when getting the load stream.</div>
<div>at org.eclipse.birt.data.engine.api.DataEngineContext.getInputStream(DataEngineContext.java:483)</div>
<div>at org.eclipse.birt.data.engine.impl.document.stream.StreamManager.createInputStream(StreamManager.java:326)</div>
<div>at org.eclipse.birt.data.engine.impl.document.stream.StreamManager.getInStream(StreamManager.java:296)</div>
<div>at org.eclipse.birt.data.engine.impl.document.RDLoad.loadQueryDefn(RDLoad.java:341)</div>
<div>at org.eclipse.birt.data.engine.impl.document.RDLoad.loadSubQueryDefn(RDLoad.java:405)</div>
<div>at org.eclipse.birt.data.engine.impl.document.QueryResults.getResultIterator(QueryResults.java:287)</div>
<div>at org.eclipse.birt.data.engine.impl.document.ResultIterator.getSecondaryIterator(ResultIterator.java:375)</div>
<div>... 65 more</div>
</blockquote>
<p> </p>
</div>
mwilliams
This code works for me. Try it:<br><br><pre class="_prettyXprint _lang-auto _linenums:0">
public class runBirtReport{
public static void runReport(){
IReportEngine engine=null;
EngineConfig config = null;
try{
// start up Platform
config = new EngineConfig( );
config.setLogConfig("C:\\BIRTResources\\logs", java.util.logging.Level.OFF);
Platform.startup( config );
// create new Report Engine
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );
IReportRunnable design = null;
design = engine.openReportDesign("path_to_design/testversion.rptdesign");
IRunTask task = engine.createRunTask(design);
task.run("myReportDocument.rptdocument");
IReportDocument rptdoc = engine.openReportDocument("myReportDocument.rptdocument");
IRenderTask rtask = engine.createRenderTask(rptdoc);
PDFRenderOption options = new PDFRenderOption();
options.setOutputFileName("testversion.pdf");
options.setOutputFormat("pdf");
rtask.setRenderOption(options);
rtask.render();
task.close();
engine.destroy();
}catch( Exception ex){
ex.printStackTrace();
}
finally
{
Platform.shutdown( );
}
}
public static void main(String[] args) {
try
{
runReport();
}
catch ( Exception e )
{
e.printStackTrace();
}
}
}
</pre>
birt_ag
<div>
<div>Hi williams,</div>
<div>Even i've used the code similar to the one given by you above, intially i had used RenderOption class, now i changed it to PDFRenderOption, but still i'm facing the same problem. Data not getting hidden and exception thrown as mentioned earlier.</div>
<div> </div>
<div>One more problem i faced after using rptdocument was the 1st page of report was in portrait mode, wheareas the next few pages were in landscape. now after using rptdocument all the pages are getting displayed in portrait mode.</div>
<div> </div>
<div>One doubt i had is, why we cant hide based on the <span><</span><span>page-data-count</span><span>></span><span>1</span><span></</span><span>page-data-count</span><span>> tag,</span></div>
<div> </div>
<div><span>i had tried to hide the element using the visibility with following condtion - row["page-data-count"]>=2</span></div>
<div>but this also didnt work.</div>
<div> </div>
<div>I'm Using BIRT 4.3.1</div>
<div> </div>
<div>THank U</div>
</div>
<p> </p>
mwilliams
Could you try that exact code I posted above? It works as expected for me with the visibility issue.<br><br>As for the different master pages issue, are you explicitly setting a page break before the element where you switch master pages? Let me know what you've done to set up the switch. Then, I'll do some testing.<br><br>Thanks.
birt_ag
<p>Hi williams,</p>
<p> </p>
<p>Thanks a lot of the kindly help.</p>
<p> </p>
<p>with the sample template and xml file i had attached earlier this works perfectly
</p>
<p> </p>
<p>But the actual report is very huge and hence i recreated it with only required few elements and sample data. I've used the same code given by you above and its not working with those templates</p>
<p> </p>
<p>One difference is i've given the xml file as input using the xmlInputStream object. In the code given by you above there was no provision for providing the xml datasource as input.</p>
<p> </p>
<p>I guess the reason for not providing the xml path is because within the template design the path(xml datasource path) is already given ? Am i correct ?</p>
<p> </p>
<p>wrt page breaks,</p>
<p> </p>
<p>say there are 5 outer tables, each of the 5 outer table is using different master pages.</p>
<p> </p>
<p>1st and the 5th page is using portrait whereas 3rd and 4th is using landscape.</p>
<p> </p>
<p>For each of the 5 outer table i've used the pagebreak after attribute as "Always" and selected the required master page</p>
<p> </p>
<p>I'm not setting the page break before any element.</p>
<p> </p>
<p>Is it because of exceptions which i mentioned earlier the hiding is not working properly ?</p>
<p> </p>
<p>Also can u clarify the doubt i asked in earlier post, </p>
<p> </p>
<div style="margin:0px;color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">
<blockquote class="ipsBlockquote">
<div style="margin:0px;color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">why we cant hide based on the <page-data-count>1</page-data-count> tag,</div>
<div style="margin:0px;color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </div>
<div style="margin:0px;color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">i had tried to hide the element using the visibility with following condtion - row["page-data-count"]>=2</div>
<div style="margin:0px;color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">but this also didnt work.</div>
<p> </p>
</blockquote>
<p> </p>
</div>
<p> </p>
<p>Thank You. </p>
mwilliams
Correct, I didn't define any source because in the design I used, I defined an absolute path to the file you provided earlier.<br><br>Page break before or after shouldn't matter as long as there is a page break that happens before an element that you define a different masterpage on. I'll take a look at this as soon as I can.<br><br>It's possible the error is causing an issue with some things. If you could attach a Java file, XML file, and instructions on how to set up your scenario, I'd gladly attempt to get it set up as you have it so I can test.<br><br>As for the <page-data-count> tag, I'm not sure I'm following. Can you explain this further?
birt_ag
<p>HI williams,</p>
<p> </p>
<blockquote class="ipsBlockquote">As for the <page-data-count> tag, I'm not sure I'm following. Can you explain this further?
<p> </p>
</blockquote>
<p> </p>
<p>There is tag named <span style="font-size:12px;background-color:rgb(247,247,247);"><page-data-count> , which will be incremented for each and every page. The xml file is created in such a way that , </span><span style="font-size:12px;background-color:rgb(247,247,247);">for the 1st page the value for this tag would be 1 whereas for 2nd page it would be 2 and so on... </span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);">Now, by using the visibility property on an element, cant we write an expression to hide the element if the </span><span style="font-size:12px;background-color:rgb(247,247,247);"> </span><span style="font-size:12px;background-color:rgb(247,247,247);"><page-data-count> >=2</span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);">I had tried this but didnt work.</span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);">Thank U..</span></p>