Loading

oce:UnAssignMediaToTray

Introduction

With this command you can unassign media from a tray. It is possible to unassign multiple trays in one command.

Syntax

XPath:/JMF/Command[@Type="oce:UnAssignMediaToTray"]

Description

This command must contain only the location of the tray you want to unassign.

Media definition

XPath: /JMF/Command[@Type=”oce:UnAssignMediaToTray”]/Media

Tray identification (unassign)

XPath: /JMF/Command[@Type="oce:UnAssignMediaToTray"]Location/@LocationName

NOTE

The LocationName can be retrieved by the JMF message KnownDevices with @DeviceDetails="Full".

Description

With this attribute you can specify the input tray location you want to unassign.

Example with one tray

<JMF ……>
	<Command ID="unassign_command" Type="oce:UnAssignMediaToTray" xsi:type="CommandUnAssignMediaToTray">
		<Location LocationName="Tray-4" />
	</Command>
</JMF>

Example with multiple trays

<JMF .....>
    <Command ID="unassign_command" Type="oce:UnAssignMediaToTray" xsi:type="CommandUnAssignMediaToTray">
        <Location LocationName="Tray-11" />
        <Location LocationName="Tray-12" />
        <Location LocationName="Tray-13" />
        <Location LocationName="Tray-21" />
    </Command>
</JMF>
	

Archive with examples for download

NOTE

If you want to use this snippet, download the whole collection of examples in this TRM from this link:

https://supportfiles.cpp.canon/trm/Examples-TRM-Mk9.zip