Hi @Matija !
This feature - i.e. using the relatedPuckIds field - is in an odd state. It works, but it is not ideal to set it up. It is on our docket of items to fix/revamp. Therefore, I don’t recommend using but will explain how to do so below.
In relatedPuckIds, you should return a string array. Each element in the array should follow this format: objectTypeID::<primaryKey::configId .
- ObjectTypeID: navigate to your Object Type in OMA. On a given Object Type, you will see: the API name, the RID, and the ID. This value is the ID. Notably, this should be for your schedule object.
- primaryKey: this is the primary key value of this given object instance. Notably, this should be for your schedule object.
- configId: This one is the trickiest. In your Workshop > Scheduling Gantt Widget, navigate to the tab called “Metadata”. Note: the tabs should be “Widget setup”, “Metadata”, “Display”. In the “Raw Widget Configuration”, you will see 1 fields called “schedulableConfig”, with 1 to N “id” values in the list. You will want to select the “id” value that is associated with the “schedulableName” within which you are using this rule.
For example, let’s say I have Object Type Task. I have a Scheduling gantt with 2 Schedule Layers: Scheduled Tasks, OOTO. I have added the “Validation Rules” to the Scheduled Tasks layer and built it off the Object Type Task.
- My Object Type Task in OMA has ID 234ngTask
- My primary key I will get in my function when I loop through each puck / task object.
- My metadata of my scheduling gantt chart widget is below. My configID will be BB11111.
{
“type”: “allocationPlanning”,
“allocationPlanning”: {
“type”: “configV22”,
“configV22”: {
“chartConfig”: {
“disableScrollAndZoom”: false
},
“fixedResourceConfig”: {},
“schedulableConfig”: [
{
“id”: “AAAAAA”,
“schedulableName”: “OOTO”,
“schedulableObjectConfig”: {
“type”: “widget”,
“widget”: {}
},
“schedulableTypeConfig”: {
“type”: “standard”,
“standard”: {
“disableText”: true
}
},
“colorConfig”: {
“type”: “static”,
“static”: {
“color”: “#184A90”
}
},
“identificationConfig”: {
“type”: “default”,
“default”: {}
},
“rulesConfig”:
},
{
“id”: “BB11111”,
“schedulableName”: “Scheduled Tasks”,
“schedulableObjectConfig”: {
“type”: “widget”,
“widget”: {}
},
“schedulableTypeConfig”: {
“type”: “standard”,
“standard”: {
“disableText”: true
}
},
“colorConfig”: {
“type”: “static”,
“static”: {
“color”: “#184A90”
}
},
“identificationConfig”: {
“type”: “default”,
“default”: {}
},
“rulesConfig”:
}
],
“metricsConfig”: {
“headerMetrics”: ,
“rowMetrics”:
},
“interfaceConfig”: {
“splitRowsBySchedulableType”: false,
“isUnallocatedPucksStandardSize”: true,
“hideTopBar”: false,
“hideBottomBar”: false,
“timelineLocation”: “Bottom”
},
}
}
}
Best,
Molly