AnsweredAssumed Answered

Script for printing records

Question asked by ChrisBrand on Nov 25, 2014
Latest reply on Nov 25, 2014 by ChrisBrand

Title

Script for printing records

Post

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]

Else

    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.

Thanks.

Outcomes