Zum Hauptinhalt gehen

Suche

Suche

How to access Object Values for document-level actions?

Kommentare

6 Kommentare

  • Avatar
    Jon Gardner

    0
  • Avatar
    Jon Gardner

    I thought I found the answer here: https://support.seagullscientific.com/hc/en-us/articles/205824818-Overview-of-Data-Sources-Video-5-16-

    In that video, she is able to choose an "Object Value" as a Data Source type. But that option doesn't appear in my lists.

    I was able to create a Named Data Source using a VB Script, and it is able to pull in the UDI barcode value; however, it is pulling in the default value prior to user entry. I need it to pull the value post-user-entry, which is what is being sent to the printer. I've tried changing when the Document Action occurs, tried changing the VBScript to an Event Control at various times, nothing works.

    0
  • Avatar
    Jon Gardner

    The trick is to set up the Named Data Source using a VB Script, making it a Single-Line Expression:

    Format.Objects("UDI Barcode").Value

    I called the Named Data Source "UDI" in this case.

    Then set up a Document Action under "For Each Record" to Insert Database Record, and use %UDI% as the value entered in whatever field it needs to go into.

    0
  • Avatar
    Jon Gardner

    One catch: This does not properly pull the check digit for the GTIN portion of the UDI label...so the full UDI string should be 34 digits (as printed on the label) but the string returned by the VB Script is only 33.

    Opened a new post for this issue, as it's only pertinent if you have a GTIN.
    https://support.seagullscientific.com/hc/en-us/community/posts/20148237222295-UDI-text-string-on-label-vs-VBScript-does-not-match 

    0
  • Avatar
    Peter Thane

    See reply on your other forum post

    0
  • Avatar
    Jon Gardner

    I've found a good workaround, but my update posts are still "pending approval" so it can't be seen. :P

    0

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