2 Replies Latest reply: Feb 27, 2014 8:37 AM by User9976634-Oracle RSS

    Capture page number from bookmark


      Is there a way to capture the page number that a bookmark is on?

      I have bookmarks on many sections that is used by our index page to identify the page number at the end of the batch.

      In another batch, I have a form that needs to reference the page number that a definition is on.  I have a bookmark on that section for that definition.

      Since Documaker processes the first batch and during the index page process knows the page number of that bookmark, can I capture that bookmarks page number to be used on a section in another batch?

      This all occurs in one transactions.

      I am producing two output batch files.

      If not, I know I'll need to use a DAL, find the section and then I'll know what page number it is on, but I rather not.


        • 1. Re: Capture page number from bookmark
          Navin Kumar Ramaswamy

          I fear we may not be able to get those page numbers (of the bookmarks) even by using a posttrans DAL.

          • 2. Re: Capture page number from bookmark

            I'm not sure what you are describing is clear enough to offer suggestions. It sounds like you are trying to do two separate print batches, but have one know something about page numbers that occurred within the other. Normally when speaking of batching, this conjures the concept of GenPrint - where multiple transactions occur in a batch and are all printed to the same destination. One batch prints, then GenPrint moves to the next defined batch and prints all the transactions found there. As such, there is a total separation between the two batches and it would be unlikely that you could simply retain information in memory (using DAL) to supply the page numbers you require. And since multiple transactions are involved, this would require that you somehow retain certain key information to match each transaction back to the corresponding one from the first batch. The only way that comes to mind to accomplish that would be to write some intermediate file to disk with the key information, so you could match back up to whatever values you wrote. You might be able to do it with a memory table (equivalent to the file on disk), but that does presume that the related batch is going to print in sequence from the same process and not at some later time.


            Now, I suppose if you are really talking about single-step print (the PrintFormset rule in the AFGJOB) and not GenPrint that would mean that there is a single transaction in memory and both print outputs happen back-to-back. In that case, since you have not left the transaction, it might be possible to retain a certain amount of information in DAL memory that could be referenced in the second print output of that transaction. The complexity would then fall upon how many values you wanted to keep and whether you could define enough variables with unique names and keep that all straight.


            So you see, your approach may be different depending upon how you are processing and exactly what you need to keep related to each transaction.