Get "Version" of Item Type to Export in Velocity Report

Sara Wertanen
Sara Wertanen Member Posts: 5

Does anyone know the velocity code that can be used in a context sensitive report to have it print out what version the item being exported is?imageThanks!

------------------------------
Sara Wertanen
Oceaneering Entertainment Systems
FL
------------------------------

Comments

  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 789
    edited September 2023

    loop over $documentList, get the $id, pass it to $documentSource.getVersionByDocumentId( $id ).getVersionNumber()

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 09-19-2023 06:32
    From: Sara Wertanen
    Subject: Get "Version" of Item Type to Export in Velocity Report

    Does anyone know the velocity code that can be used in a context sensitive report to have it print out what version the item being exported is?imageThanks!

    ------------------------------
    Sara Wertanen
    Oceaneering Entertainment Systems
    FL
    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
  • Sara Wertanen
    Sara Wertanen Member Posts: 5
    edited September 2023

    That worked! Thank you so much!

    ------------------------------
    Sara Wertanen
    Oceaneering Entertainment Systems
    FL
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 09-19-2023 06:58
    From: Alessandro Valli
    Subject: Get "Version" of Item Type to Export in Velocity Report

    loop over $documentList, get the $id, pass it to $documentSource.getVersionByDocumentId( $id ).getVersionNumber()

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------

    Original Message:
    Sent: 09-19-2023 06:32
    From: Sara Wertanen
    Subject: Get "Version" of Item Type to Export in Velocity Report

    Does anyone know the velocity code that can be used in a context sensitive report to have it print out what version the item being exported is?imageThanks!

    ------------------------------
    Sara Wertanen
    Oceaneering Entertainment Systems
    FL
    ------------------------------