relatedPuckIds in a scheduling gantt chart rule

Validation rules section on the dynamic scheduling mentions relatedPuckIds but doesn’t give an example of what those ids are.

I’ve tried using both the schedule resource primary key and the schedule resource rid but neither of them results in that resource being selected when I click on the icon in the UI.

Which value should that property be set to?

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.

  1. My Object Type Task in OMA has ID 234ngTask
  2. My primary key I will get in my function when I loop through each puck / task object.
  3. 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

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.