Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Total Amount display in preprinted paper
PrathiBirt
Find more posts tagged with
Comments
PrathiBirt
Hi Michel,
please help me
mwilliams
Hi PrathiBirt,
You should be able to use a fixed layout and grids to place things where you'd like them on the page to end up where you want them. Where is the total supposed to be in the preprinted paper? Can you show screenshots?
PrathiBirt
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="70132" data-time="1289323078" data-date="09 November 2010 - 10:17 AM"><p>
Hi PrathiBirt,<br />
<br />
You should be able to use a fixed layout and grids to place things where you'd like them on the page to end up where you want them. Where is the total supposed to be in the preprinted paper? Can you show screenshots?<br /></p></blockquote>
mwilliams
It looks like you got the total in the total box on the last one. Was this just a fluke? Will there be a time where you have more line items than space in the main area of your report? Or will they always end up on one page?
PrathiBirt
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="70324" data-time="1289844895" data-date="15 November 2010 - 11:14 AM"><p>
It looks like you got the total in the total box on the last one. Was this just a fluke? Will there be a time where you have more line items than space in the main area of your report? Or will they always end up on one page?<br /></p></blockquote>
<br />
HI Williams ,<br />
Thanks, for ur reply.<br />
<br />
Find out the rpt file.It works fine when i implement page break interval,for example if i intialize maxRows 12 and page break interval is 7 or some number.Country Total will be displayed same location of the footer on each and every page.<br />
But my turn it is not working well.<br />
For Example.<br />
Total Reords 4 , Page Break Interwal 7 .<br />
If the rocord count is less it is working fine , Total Amount will be displayed correct position.(One Page).<br />
For Example <br />
Total Reords 9 , Page Break Inerwal 7<br />
Total Amount will not displayed correct position.find the previous mail attachment.<br />
<br />
Thanks,<br />
Pradeep Kumar S
mwilliams
What is your BIRT version? I'll take a look.
PrathiBirt
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="70362" data-time="1289937453" data-date="16 November 2010 - 12:57 PM"><p>
What is your BIRT version? I'll take a look.<br /></p></blockquote>
<br />
Hi Williams,<br />
<br />
I am using Version: 2.5.2.v20090925-9dE-9CGJexwJPcfpfqGkK_4lg9Ti, Build id: v20100210-0630<br />
<br />
Thanks,<br />
Pradeep Kumar S
mwilliams
Have a look at the changes. I put the table page break interval back to 40, but added a group to the table with an interval of 6. I moved the script from the table footer and put it in the group footer along with the country totals. This isn't perfect because you'll have to write some short script to determine if you're on the first page of a country so that you can add a couple extra counts for the header info when you're not on the first page.
Let me know.
PrathiBirt
Hi Williams<br />
<br />
Still i didnt get the exact location of Total amount.<br />
Guide me to implement global variable on this.<br />
If i set rowcount computed column in Globalvariable.According to the row count value i have to set the maxrows in initiaze method.<br />
Ihope it will work...<br />
<br />
Please guide me ...<br />
<br />
onFetch in dataset<br />
reportContext.setPersistentGlobalVariable("rowcount",row["rowCount"]);<br />
<br />
intialize<br />
rowCount = 0;<br />
extendTable = "";<br />
<br />
if(reportContext.getPersistentGlobalVariable("rowcount") == 1){<br />
maxRows = 17;<br />
}<br />
<br />
But it is not working.<br />
<br />
i am looking for the same soltion implemented in the following link<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/16444-could-not-position-an-element-at-a-certain-position-in-the-page/'>My
link</a><br />
<br />
Thanks,<br />
Pradeep Kumar S
mwilliams
Pradeep,
Are you trying to use the idea from the devShare example in the above link? Or the script from the post below it?
With a little more script, you should be able to use the changes I made in your example above to do this. The only thing keeping the above example from working correctly is tracking whether you're on the first page of the group or not. When you are not, you need to add a couple extra counts to the rowCount. Then it's just a matter of getting the right amount of spaces and using sized grids to put the total exacly where you're wanting it. What issues were you having with the above example?
PrathiBirt
Hi Williams,
I am trying to implement script idea .
foolowing that one more problem arise that , partial content of preview only printing in the paper.
find attachement
That is 24 and twenty four only will be printing on next paper
I set master page width = 9in and heigt = 6 in .
One more clarification when e can able to get absolute postining of element.
Please help me
Thanks,
Pradeep Kumar S.
mwilliams
I'm not sure I'm fully understanding the issue with the "twenty four Only". As for absolute positioning, you can do some stuff like this in HTML by adding a client side script into a text element that grabs your bookmarked element and moves it to an absolute position, but I don't believe it works for PDF. You will have to use grids to push your element to the right and using the HTML <br> in the dynamic text to push your total element down to your pre-determined place.