PageCount Reset/Restart

Hi!
I am in trouble with the currentPage/pageCount because i need to restart counting in different sections of the PDF module.
This is the situation:
MyPDF
- Master pages
     - Master Page 1
     - Master Page 2
- Page1 (fixed page, associated with Master1) pagecount expected: 1/x (according to the numbers of istances of Page2).
- Page2 (dynamic page... users can add mupliple istances of Page2, associated with Master1) pagecount expected: 2/2 or 2/x depending on number of istances.
- Page3 (fixed page, associated with Master2) pagecount expected (RESTART!): 1/x (according to the numbers of istances of Page4).
- Page4 (dynamic page...users can add mupliple istances of Page4, associated with Master2) pagecount expected: 2/2 or 2/x depending on number of istances.
- Page5 (fixed page, associated with Master2) pagecount expected: 1/1...
Page 1 & 2 must be counted togheter as part of same section: Page 1/2 and Page 2/2.
if page 2 have multiple istance (for example the user while compiling decide to add 2 pages), the currentPage/pageCount must increase dynamically than Page 1/4, 2/4, 3/4 & 4/4.
And this in not a problem.
Page 3... (Here is my issue!)
I need to restart/reset currentPage/pageCount indipendently from what was before and than Page 3 will be 1/x according to what follow.
Looking around, someone tell me to put one currentPage/pageCount in Master Page1 and another in Master Page2 but i was unable to make it work...
Any suggest?
Thx

Hi,
If you go to Master Page 2 and select the page number object. In the layout:ready event change the script to:
this.rawValue = this.parent.index + 1;
This is JavaScript and will use the instances of the second Master Page as the page number (plus 1, as it is a zero based system). 
Hope that helps,
Niall

Similar Messages

  • My ifone4s is no longer producing sound..i am running iOS 6.1.3...i have tried reset,restart,restore----no avail....u have cleaned the dock port and speaker and mike----no avail...this is a replacement product from apple (march 2013) HELP apple!!

    Hi there!!...my ifone4s is no longer producing sound of any description with the exception of the earphone jack!!! I am running iOS 6.1.3....i have tried reset,restart and restore----no joy....i have cleaned the dock port and speaker and mike area ----no joy! Now my question,,,is this a hardware malfunction or a bug from the iOS???..this is a replacement fone (march 2013)  my previous fone suffered a wifi antennae breakdown after an iOS update!!,,,covered under warranty...this fone is now given trouble,,is this fone covered under warranty surely li should get more than three months outta my new fone - no???...any advice or help from anyone will be greatly appreciated especially as regards warranty...thanks in advance for looking...

    If you use eabuds or headphones on occasion, try inserting and removing the earbuds/headphones several times in a row.
    An exchange under warranty remains under the same warranty period as the original purchase. If an exchange under warranty is provided within the last 90 days of the warranty period, the exchange includes a full 90 days of warranty coverage.

  • Use 2nd gen apple tv and remote control app on iphones and ipad.  We can control some functions on the apple tv but unable to purchase, access such controls as reset, restart, turn off home sharing, etc.  Home sharing stuck on old apple ID. Please help.

    Use 2nd gen apple tv and remote control app on iphones and ipad.  We can control some functions on the apple tv but unable to purchase, access such controls as reset, restart, turn off home sharing, etc.  Home sharing stuck on old apple ID. Please help.

    That is why I said to restore via iTunes, did you check the link?
    This will put it back to factory settings and you can set it up with the new ID once you reconnect with your HDTV. This is not done via ethernet, as per the link you need to connect to the computer via micro usb. You cannot bypass home sharing.
    FYI: An Apple ID cannot be deleted so the old one would still exist (even if you no longer use the email account it is associated with).

  • About three days ago my ipod said i needed to sync and so i did . when i did it stop working and the wifi is grey out and says no wifi . Ive tried rebooting it , reseting , restarting but nothing seems to work . Can anybody help me ? Please !

    About three days ago my ipod said i needed to sync and so i did . when i did it stop working and the wifi is grey out and says no wifi . Ive tried rebooting it , reseting , restarting but nothing seems to work . Can anybody help me ? Please !

    Hello Philly,
    I believe that when you reset your ipod(command given from the computer, right?)  touch WHILE the ipod was updating, It cleared the system in the middle of writing files, thus corrupting(equivalent of cutting of in the middle of a sentence) the basic running system.
    I suggest you go to an apple store and ask for a technical diagonosis in person. they may offer to help if the problem is fixable. If your ipod is still under warrenty, i would guess it would be free/low cost.
    ~Remember, I am just giving an educated guess on limited information

  • Nano continues to reset/restart

    Nano continues to reset/restart. Everytime I go to play a song it restarts with the Apple Logo (like I just turned it on). It restarts at different points at different times. I can't get it to stay playing any song. What should I do?

    I had this problem too. Jeff, your post led me to the answer, but it had nothing to do with my OS. For anyone else having this issue, you need to put your ipod in "disk mode" by holding the center button and play/pause before you can restore it using your ipod updater in the utilities folder. I hope this shortens the frustration for somebody. Happy ipodding!

  • I tried to play candy crush, but when i launch, app closed. I tried all (reset, restart, reload, etc.) I have the app on my pc, but even if i try to sync, the app do not apply on my iphone. When i load the app direct on my iphone, same proplem, can t open

    i tried to play candy crush, but when i launch, app closed. I tried all (reset, restart, reload, etc.) I have the app on my pc, but even if i try to sync, the app do not apply on my iphone. When i load the app direct on my iphone, same proplem, can t open

    Thank you for your help are you aware of any apps that will work the iso 4.2.1 system that will let you watch movies on the phone. Also I tried to down load something else the other day and got message that Safari wont let you open this is ther any to see if i have the latest safari on my phone?

  • How can i reset/ restart ipadair when it is frozen?

         I recived an ipadair for christmas and loved it. until i tryed to zoom out of an app and the screen froze! i tried to turn it off and back on but the power button only brought me to the lock screen were it is now frozen.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipadhttp://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htmhttp://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6uhttp://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274http://support.apple.com/kb/TS3274
     Cheers, Tom

  • After updating Firefox, it wants to start in safe mode, when you click reset & restart it starts and runs fine, how do I make it stop opening in safe mode?

    I recently updated my Firefox to 3.5.9 for Google pack, after doing so Firefox would only open in safe mode. So I started in safe mode that one time. Everafter, when starting firefox it always opens a dialog window about safe mode, I click the option to reset the toolbars and restart, and it starts normally. I'd like to make it stop opening with this dialog, and just open normally without asking about safe mode.
    == This happened ==
    Every time Firefox opened
    == I updated Firefox

    See: http://support.mozilla.com/en-US/kb/Firefox+is+stuck+in+Safe+Mode
    Your Firefox 3.5.9 is 2 versions behind. The current version is Firefox 3.5.11 which includes several security updates. In addition, support and updates for the Firefox 3.5.x series is planned to end in August 2010. Consider upgrading to the latest version Firefox 3.6.8:
    Download Firefox 3.6.8 here: http://www.mozilla.com/en-US/firefox/all.html
    See:
    http://support.mozilla.com/en-US/kb/Installing+Firefox
    http://support.mozilla.com/en-US/kb/Updating+Firefox

  • The keyboard backlight on macair will not go on even though I have reset, restarted, etc.

    keyboard backlight on my Mac Air will not go on even though I have done everything suggested....restart, off/on, reset, etc.  I was cleaning screen and keyboard with soft towel when it just went off.

    Hi gam727,
    I apologize, I'm a bit unclear on the exact nature of your issue. If you are saying that your iPad isn't responding or won't start up, or just has a blank screen, you may find the troubleshooting steps in the following article helpful:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Regards,
    - Brenden

  • How to reset/restart timer?

    hello everyone
    i am trying to restart my timer. i used
    timer.reset();
    but it won't work..
    so i tried
    timer.stop();
    timer.reset();
    timer.start();
    and this is also not working.. timer is not reseting..
    So can anyone tell me How can I restart my timer??

    Please check below code.
    import flash.events.TimerEvent;
    import com.greensock.TimelineLite;
    var timer:Timer = new Timer(1000,0);
    timer.addEventListener(TimerEvent.TIMER,checkTime)
    timer.start();
    // This function is required so that once getTimer() will give you required number i.e. 1500 reset function will be called
    function checkTime(e:TimerEvent)
          var cTime:int = getTimer();
          trace(cTime + " " + timer.currentCount) // currentCount will show that timer is restarted,
          if(cTime>=15000 && cTime<=16000)
                 ResetTime();
    function ResetTime():void
          trace("ResetTime")
          timer.stop();
          timer.reset();
          timer.start();
    Hope that will solve your problem
    Regards
    Ritesh Newal

  • Reset/Restart ineffective

    This afternoon, my home/menu button didn't work to bring me to my home screen. Normally I can lock the phone using the power button, then unlock and the menu button will take me out of the app I was in and return me to the home screen. This time when I hit the power button, the screen went black as usual, but when I hit it a second time to unlock my screen, the power button didn't work either. I plugged the phone in knowing that usually brings the screen to life for me to unlock it. No such luck. Plugging it in didnt get a response either.
    The lack of response from the home button, power button, and plugging in combined led me to the restart and reset troubleshooting instructions. If I hold the power button, I get a white screen with a black apple  that appears for a few seconds and goes away. Same with the reset. I never get an unlock screen to ignore and it never appears to power down. Any ideas or am I stuck visiting apple or verizon once I'm not snowed in? Phone was purchased from verizon in April 2013.

        LaurenV,
    Just as an add-on to what technicalsupport recommended, if the computer does not recognize that your phone is plugged in you may need to press and hold the Home button, then connect your phone to the computer. Once iTunes opens on the computer you should get a message saying, "iTunes has detected an iPhone in recoverey mode" and can click OK. From that point, you will be able to click Restore and proceed with the process.
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • Reset/restart

    What is the difference (to the touch) between a restart (where you hold down the sleep button util the red slider appears ...) and a reset (where you hold both the sleep and home buttons until the Apple logo appears)?

    I have never seen a reset erase anything you can see/change.
    It may remove caches, etc., but all my settings remain intact after a reset.
    I would explain it like this.
    When you hold the sleep button down and slide to shut down, it's like powering-down your Mac/PC.
    When you reset it, it's more like when your computer freezes and you hold the power button down to shut off and reboot.
    I believe the reset is more of a total rebooting than anything.
    It might also clear out things resident in RAM.
    Scott

  • Everytime i press return Firefox freezes, have reset, restarted and nothing works?

    I have tried resetting, reinstalling, restarting everything and nothing works. After doing the reset etc it will be fine for about a minute then goes back to normal. everytime i press enter/return it freezes or halfway through typing it will freeze

    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • Hi there, since I upgraded my 5s to 8.0.2, I never haven't been able to download any of my purchased applications, about 800!, I read many pages , reset, restarted, restored, ... 1000 times, but all apps have been waiting, very disappointing apple!

    Since I bought this device I enjoyed it, everywhere I suggested it to my friends and co-workers. Until I upgraded its iOS from 7.1.2 to 8.0.2. The battery usage is as quickly as a Ferrari, no applications of previously purchased can be re-downloaded (I had to restore it and I lost all of them during upgrading). Honestly they really disappointed me. I have done any offer I read and saw on webpages, it's my same ID and nothing has changed. I reset all settings, network settings, used another Wi-Fi, used 3G, synced with my itunes on my laptop, and solutions you can think about during these couple of weeks. I expect apple to do something for the loyal customers which prefer their great company to another ones. Thanks so Much. 

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • I have been using xfinity for some time with no problem. Now when I open it, it shuts down. I have reset, restarted, and done a sync. I also deleted and reloaded to no avail

    I have been using the xfinity ap for some time with no problem. Now every time I open the ap it shuts down. I have updated software, reset, done a sync, rebooted to no avail any ideas

    My Xfinity App does the same thing.  Hope they are coming out with a app update.

Maybe you are looking for