Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Need help on RTF calculation

Received Response
41
Views
3
Comments

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

  • Rajesh Siddeswar
    Rajesh Siddeswar Rank 1 - Community Starter

    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

  • Debashish Panda
    Debashish Panda Rank 3 - Community Apprentice

    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

  • Debashish Panda
    Debashish Panda Rank 3 - Community Apprentice

    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')?>