MMpy.Schedule.open_transaction
Syntax
MMpy.Schedule.open_transaction()
Description
Creates transaction object and starts a new transaction. The created object is not supposed to be used directly; it should only be used in 'with' statement.
Returns
Type | Description |
---|---|
SchedulerTransaction | Transaction object. |
Examples
schedule = MMpy.SchedulerProject.get_schedule() with schedule.open_transaction(): schedule.primary_calendar.set_name("NEW NAME") schedule.primary_calendar.set_description("NEW DESCRIPTION")
Resource ID
IDPH_SCHEDULE_OPEN_TRANSACTION