I have been working on a simple method directive for the Capability object. Not used by many (APS required I believe), so probably not a lot of directives on this one. The capability object has the main dataset wtih a description, and then two datasets: resources and additional resources. The user wanted to see the resources in the description so it displays in the various methods (Revision, Job, etc.). Cool. I’ll just read through the resources dataset and concatenate the resource ids, and update the description on every method update. Rabbit stew coming up!
This is the object in the education database:
If I dump the dataset as a JSON blob:
I get this on an update method:
Json
{
"Capability": [
{
"ColumnNames": 0,
"Company": "EPIC06",
"CapabilityID": "Simple",
"Description": "Simple Machining",
"Inactive": false,
"PrimaryResourceGrpID": "HAASHOR",
"AdditionalResourceRequired": false,
"SetupGroupRequired": false,
"CapType": "B",
"OpCode": "HORMACH",
"OpStdID": "",
"SysRevID": 5378377,
"SysRowID": "25013fba-ad49-49f3-b577-a33b015bfe04",
"ExternalMES": false,
"BitFlag": 0,
"OpCodeOpDesc": "Horizontal Machining",
"OpStdDescription": "",
"PrimResGrpIDDescription": "Horizontal Haas Machines",
"RowMod": "",
"SpecifiedProperties": "//8D",
"UserDefinedColumns": {}
},
{
"ColumnNames": 0,
"Company": "EPIC06",
"CapabilityID": "Simple",
"Description": "Simple Machinings ",
"Inactive": false,
"PrimaryResourceGrpID": "HAASHOR",
"AdditionalResourceRequired": false,
"SetupGroupRequired": false,
"CapType": "B",
"OpCode": "HORMACH",
"OpStdID": "",
"SysRevID": 5378377,
"SysRowID": "25013fba-ad49-49f3-b577-a33b015bfe04",
"ExternalMES": false,
"BitFlag": 0,
"OpCodeOpDesc": "Horizontal Machining",
"OpStdDescription": "",
"PrimResGrpIDDescription": "Horizontal Haas Machines",
"RowMod": "U",
"SpecifiedProperties": "//8D",
"UserDefinedColumns": {}
}
],
"CapAddl": [],
"CapResLnk": [], <--------------- Empty?
"ExtensionTables": []
}
If I create a display widget and put a simple table query to show all resources, it’s blank - even though there are resources on the screen.
Which outputs this in a message box:
Capability DS
Company,CapabilityID,Description,Inactive,PrimaryResourceGrpID,AdditionalResourceRequired,SetupGroupRequired,CapType,OpCode,OpStdID,SysRevID,SysRowID,ExternalMES,BitFlag,OpCodeOpDesc,OpStdDescription,PrimResGrpIDDescription,RowMod
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
EPIC06,Simple,Simple Machining ,False,HAASHOR,False,False,B,HORMACH,,382626,25013fba-ad49-49f3-b577-a33b015bfe04,False,0,Horizontal Machining,,Horizontal Haas Machines,U
Resource DS (CapResLnk)
Company,CapabilityID,ResourceID,ResourcePriority,ProductionFactor,SetupFactor,SysRevID,SysRowID,ExternalMESSyncRequired,ExternalMESLastSync,BitFlag,CapIDDescription,ResourceDescription,RowMod
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Additional Resource (CapAddl)
Company,CapabilityID,CapAddID,Description,ProductionCap,SetupCap,SysRevID,SysRowID,ExternalMESSyncRequired,ExternalMESLastSync,BitFlag,RowMod
---------------------------------------------------------------------------------------------------------------------------------------------
Am I doing something wrong? First contact with support indicates this may be intentional.