Enable end users to create new schedule objects on demand using drag to create. Drag to create allows you to initialize a new schedule object on a particular row, at a "dragged from" and "dragged to" start and end timestamp.
In order to configure drag to create, you must provide a Create Action Type
. On drag and drop of a puck, the widget will call this action.
In the example below, we will refer to the schedule layer as Object type A
.
Object type A
and create a Create Action Type
. This action type should have the following parameters:
Start Timestamp
propertyEnd Timestamp
propertyforeign key
propertyStart Timestamp
, End Timestamp
, and foreign key
will create an object of object type A
with those values.Once set up, Shift + Drag
on a given row from a start and end time. This will trigger a popup of your drag to create action form. Upon submission, a new schedule object will be created for the specified row, incorporating the start and end timestamps from the "dragged from" and "dragged to" actions.