Predecessors and Successors do not work when using SaveOptions.
I am using PostTaskDocumentWithFormat API with saveoptions in golang, trying to display Predecessors and Successors but it is not working. here is the sample used.
type (
Column = struct {
Type string
Name string
Property string
Width int
}
View = struct {
Columns []Column
}
saveOptions = struct {
View View
}
)
so := saveOptions{
View{
[]Column{
{"GanttChartColumn", "ID", "Id", 120},
{"GanttChartColumn", "Active", "IsActive", 120},
{"GanttChartColumn", "Name", "Name", 120},
{"GanttChartColumn", "Duration", "Duration", 120},
{"GanttChartColumn", "Start", "Start", 120},
{"GanttChartColumn", "Finish", "Finish", 120},
{"GanttChartColumn", "Predecessors", "Predecessors", 120},
{"GanttChartColumn", "Successors", "Successors", 120},
},
},
}
opts := &requests.PostTaskDocumentWithFormatOpts{
Name: "data1.mpp",
SaveOptions: so,
Format: string(models.XLSX_ProjectFileFormat),
Folder: optional.NewString(remoteBaseDataFolder),
}
data, response, err := tasksApi.PostTaskDocumentWithFormat(ctx, opts)
if err != nil {
return
}
can you tell me what properties are provided for the GanttChartColumn view and how to display Predecessors and Successors?