Categories
- All Categories
- Oracle Analytics Learning Hub
- 30 Oracle Analytics Sharing Center
- 18 Oracle Analytics Lounge
- 238 Oracle Analytics News
- 45 Oracle Analytics Videos
- 16K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 88 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Need help on RTF calculation
Summary
Need help on RTF calculation
Content
Hi,
I want to have the page counter decreased by 1 in RTF template
I tried using <?xdofx:(<?fo:page-number?>-1)?>, not working
Appreciate if somebody can help with correct Syntax that i can use in RTF
Answers
-
Hi
can you try below condition
Decrement counter for each line (again in a form field)<?xdoxslt:set_variable($_XDOCTX, ’Counter’, xdoxslt:get_variable($_XDOCTX, ’Counter’) - 1)?>
Regards,
Rajeswar Raja
0 -
I tried below but no luck
<?xdoxslt:set_variable($_XDOCTX,'var', <?fo:page-number?>)?>
<?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var')-1)?>
<?xdoxslt:get_variable($_XDOCTX,'var')?>
My requiremnt is to have a new page-Coverpage kindof (only with some conditional flag value ) followed by existing RTF having header and footer . So the Expected O/p is new page should not have page number and the actual page should have
on my code
for example 2 page report preview i get following:
==(if conditional flag =True )====
1st page - without page number (just as i wanted)
2nd page is numbered 2/3 - i wanted it to be 1/2
3rd page is numbered 3/3 - i wanted it to be 2/2
==(if conditional flag NOT True )====
without the cover page
as-is pdf should come 1/2 and 2/2 with two pages
So i was trying to decrease the counter of page number both of below
<?fo:page-number?> / <?fo:page-number-citation:xdofo:lastpage-joinseq?> based on flag value
Please Let me know if you can share some ideas for this fix
0 -
ON top of existing issue , even I tried below but no luck
<?xdoxslt:set_variable($_XDOCTX,'var', <?fo:page-number?>)?>
<?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var')-1)?>
<?xdoxslt:get_variable($_XDOCTX,'var')?>
0