4 Replies Latest reply on Nov 25, 2014 10:57 PM by ChrisBrand

    Script for printing records



      Script for printing records


      Hi all,

      I am using the Inventory Starter Solution and I'm trying to modify this script:

      Set Error Capture [On]

      Go to Related Record [Show only related records; Match found set; From table: “Inventory”; Using layout: “Inventory Report” (Inventory); New window]

      If [Get ( LastError ) ≠ 0]

          Exit Script []

      End If

      If [Get ( SystemPlatform ) = 3]

          Print [Restore: Select Your Printer]

          Close Window [Current Window]


          Enter Preview Mode []

      End If

      This script is linked to run when I click a Print Inventory button. What I want to happen is when I click the Print Inventory button and it opens up the printable layout, I want all records with a Quantity = 0 to be omitted. I've tried using omit multiple records but that doesn't seem to be the correct thing.

      Any help is appreciated.