Getting Page Count per Document on Verification station

I want to show PageCount per document on verification station. So, I created one field "PageCount" and set Documents.Pages.Count on document definition's rule.
Then, I realized that PageCount did not refresh after page move to another document.
Let say : Page move to doc 2 to doc 3. Doc 2. PageCount cannot refresh.

Then, I tried to write script on Project -> Properties -> On Open Document event
System wont allow to assign value.

How can I set real time page count value on which event?

Cheers,
Yi Mon

Was this article helpful?

0 out of 0 found this helpful

Comments

6 comments

  • Avatar
    Sushi


    yimon,

    Are you aware that you post this in the Recognition Server forum? If that is the case and you want the value in the Recognition Server's Verification Station, I don't think its possible. Scripting on this station is very limited.

    If you are actually asking about the FlexiCapture, when do you expect the page to move? i.e. Is it going to happening during the manual Verification process or during recognition. Is it something that the Verification operator needs to see in real time or is it just a field that you want populated so you can check in the export?
    0
  • Avatar
    Thant, Yi Mon (FXGS SGP)
    I realized that I posted in wrong forum and I tried to find delete but unfortunately I did not see that. Thank Sushi for reminding.


    Yes, the verification operator needs to see in real time.

    0
  • Avatar
    Sushi


    yimon,

    Is this for Standalone or For Distributed? If its for Dist, why not try the Stage tool. More specifically, "On Document Closed" for the Verification Station?
    0
  • Avatar
    Thant, Yi Mon (FXGS SGP)
    Hi Sushi,

    Our is Distributed.
    I did tried to set PageCount on the field of Document Definition from stage tool event. I tried again as per your suggestion - "On Document Closed" stage tool. I got the error message "Cannot modify object data from this script".
    0
  • Avatar
    Sushi


    yimon,

    Seems you are right.. Looks like its read only. I went back at it and create a simple rule in the field PageCount. Basically I did something like this:

    me.field("PageCount").Text = me.field.document.pages.count

    It seem to automatically redid the count each time I moved a page in and out of the document. Try that out. If it still doesn't work, I'll upload a simple project.
    0
  • Avatar
    Thant, Yi Mon (FXGS SGP)
    Hi Sushi,

    Thank you. I already tried with Rule. For me, the page count has not been refresh on source document if remove page.
    Rule script cannot fulfil in one scenarios
    Let say, you have 2 document - Doc 1 and Doc 2. you move some pages from Doc 1 to Doc 2. Rule is working well on destination document page adding (Doc 2).
    But, the rule cannot minus off moved page count in source document (Doc 1).
    System does not refresh the page count on source document. Then, we need to clear analysing result and recognise again.

    Then, I tried to configure on project set up as following way
    1) Rule on document definition to assign value into PageCount field
    2) Add custom action on PageCount Filed : assign doc total page count into filed
    2) Project Properties --> Custom Stage Tool --> On Open Document Event : Check Doc Page Count = PageCount value. If not equal, prompt message to press button

    I'm not sure why so difficult to get this info to show in verification at real time so I'd ask the suggestion from you all.
    0

Please sign in to leave a comment.