Zum Hauptinhalt gehen

Suche

Suche

Script to use user entered date

Kommentare

3 Kommentare

  • Avatar
    Peter Thane

    It maybe down to when the VB is being processed and whether it is a numeric value at the time.

    As you are getting data from a database and also a data entry screen you probably need to make the VB an Event Controlled Script and have it process OnPostPrompt or OnIdenticalCopies so that it triggers after the database and user data has been entered

    0
  • Avatar
    David Turner

    Thank you for the reply Pete.  I did take another stab at it the other night, trying with the events as you suggested.

    Unfortunately I wasn't able to get it to work as intended, and I did discover something telling in the Bartender documentation.  See URL below.

    http://help.seagullscientific.com/2016/en/Subsystems/BTVBScript/Content/sib_intro_document_level_events.htm

    It states specifically that it "does not support automation for data entry controls".  And that code will throw an error, etc.  So, I guess that might explain why this is still failing even though testing it in parts appears to work.  I guess I'll have to reassess how to achieve this.

    Thanks anyway.

    -DT-

    0
  • Avatar
    Peter Thane

    Dont do it as a Document Level script but as script in one of the fields on the template itself

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.