Scenario: How to count the quantity of pallets on a delivery note …

PREREQUISITE: You must have a policy of 1 pallet per delivery line (1L block) in the Delivery Note (MMS480PF) spool file.

  1. Open the PageOut process insert the variable $countlines outside of the frame. 

TIP: Place the variable on the First page and/or the Last page. 

  1. Insert the following code:

    $countlines = msgCountID(“MMS4801L”);

The total quantity of 1L block instances will now display thus displaying the amount of pallets on the delivery.

Export and deploy and test!

How to control/restrict user access to a particular PageOut process

Scenario: You have been tasked to make several amendments to the Invoice however, all users must still have uninterrupted access to the original Invoice.

Prerequisite: Create a copy of the Invoice PageOut process (name it WIP_Invoice) and configure its output settings.

  1. Open the runtime and uncheck the Select automatically checkbox for both/all processes.
  2. Open the message and right-click on the message icon and select Script…
  3. Insert the following code:

If ($mvx_USER = “<movexusername>”) { // <movexusername> is your username



else {



The above code only allows you to run the WIP_Invoice process as the condition is based on your username from the spool file. Everyone else will run the Invoice process

FYI: $mvx_ is the prefix used for global variables e.g. $mvx_USER, $mvx_tomail etc.

Export, deploy and test!