TTMSFNCGanttChartDatabaseAdapter Class
Connects a Gantt chart to a dataset by mapping task fields, loading dataset records into tasks, and writing task changes back to fields.
API unit family: TMSFNCGanttChartDatabaseAdapter
Inherits from: TTMSFNCGanttChartAdapter
Syntax
TTMSFNCGanttChartDatabaseAdapter = class(TTMSFNCGanttChartAdapter)
class PASCALIMPLEMENTATION TTMSFNCGanttChartDatabaseAdapter : public TTMSFNCGanttChartAdapter
Properties
| Name | Description |
|---|---|
| EndTimeType | Determines whether task end times are stored as planned-end values or durations. |
| Item | Field mapping options and dataset source used by the adapter. |
| Version | Version string of the adapter. |
Methods
| Name | Description |
|---|---|
| AfterUpdateTask | Runs post-update adapter processing for a task. |
| DeleteTask | Deletes the mapped dataset record for a task. |
| GetTasks | Reads all mapped dataset records and creates or updates chart tasks. |
| InsertTask | Inserts a dataset record for a task. |
| LoadTasks | Loads tasks from the configured dataset when the adapter is active. |
| ReadTask | Reads mapped field values from the current dataset record into a task. |
| SaveTasks | Saves all chart tasks to the dataset through insert or update operations. |
| SelectTask | Locates the dataset record that matches a task. |
| UpdateTask | Writes a task's values back to its mapped dataset record. |
Events
| Name | Description |
|---|---|
| OnFieldsToTask | Occurs when dataset fields are being read into a task. |
| OnSetFieldFromTaskDependencies | Occurs when task dependencies are being written to a dataset field. |
| OnSetFieldFromTaskDuration | Occurs when a task duration is being written to a dataset field. |
| OnSetFieldFromTaskPlannedEnd | Occurs when a task planned-end value is being written to a dataset field. |
| OnSetFieldFromTaskPlannedStart | Occurs when a task planned-start value is being written to a dataset field. |
| OnSetFieldFromTaskWBS | Occurs when a task WBS value is being written to a dataset field. |
| OnSetFieldFromTaskWorkTimePolicy | Occurs when a task work-time policy is being written to a dataset field. |
| OnSetTaskDependenciesFromField | Occurs when a dependencies field is being converted into task dependencies. |
| OnSetTaskDurationFromField | Occurs when a duration field is being converted into a task duration. |
| OnSetTaskPlannedEndFromField | Occurs when a planned-end field is being converted into a task end time. |
| OnSetTaskPlannedStartFromField | Occurs when a planned-start field is being converted into a task start time. |
| OnSetTaskWorkTimePolicyFromField | Occurs when a work-time-policy field is being converted into a task value. |
| OnSetWBSFromFields | Occurs when the adapter builds a WBS value from dataset fields. |
| OnTaskCreateDBKey | Occurs when the adapter needs a database key for a new task. |
| OnTaskInserted | Occurs after a task is inserted into the dataset. |
| OnTaskLocate | Occurs when the adapter needs to locate the dataset record for a task. |
| OnTaskRead | Occurs after a task is read from the dataset. |
| OnTaskToFields | Occurs when a task is being written to dataset fields. |
| OnTaskUpdated | Occurs after a task is updated in the dataset. |
| OnTasksLoaded | Occurs after the adapter has loaded tasks from the dataset. |