system.mes.copySchedule

Sepasoft MES Module Suite

system.mes.copySchedule

These script functions are used to copy an operations schedule and all associated operations requests and request segments objects.


system.mes.copySchedule(fromDate, toDate, fromCategory, toCategory)

Copy an operations schedule and all associated operations requests and request segments objects.

Syntax

system.mes.copySchedule(fromDate, toDate, fromCategory, toCategory)

  • Parameters

Date fromDate - The date to begin copying schedules.

Date toDate - The date to stop copying schedules.

String fromCategory - The schedule category to match before copying to the new category.

String toCategory - New category to assigned to the copied schedules.

  • Returns

Nothing

  • Scope

All

system.mes.copySchedule(operationsScheduleUUID)

Note Use system.mes.pasteSchedule script function in order to paste the copied schedule.

Copy an operations schedule and all associated operations requests and request segments objects.

Syntax

system.mes.copySchedule(operationsScheduleUUID)

  • Parameters

String operationsScheduleUUID - The UUID of the operations schedule to copy.

  • Returns

A list containing the operations schedule and all associated operations requests and request segments. The list is returned as a MES Object List object that is a collection holding MES objects.

  • Scope

All

Python
#This example would show how to copy a schedule
system.mes.copySchedule('ca6ecd0b-d78d-40d4-9e89-41b5cf8e3f6b')

Sepasoft MES Module Suite