Hi All
I am new to ARIS reports, one of our reports called Risk and Control matrix which extracts the risk and control object connected into an EPC or activity. When I run the report it gives me the following error " cannot find method ObjDef of undefined". What could be the issue? The script is run at a model level used to work fine before I am using 7.2. See the script below.
/ Entry Point
function main()
{
var oL2Objects = ArisData.getSelectedObjOccs();
var sGroupLevelName = '';
//var sAssignedModels = oL2Objects[0].ObjDef.GetAssignments(g_mtBusArch);
var sAssignedModels = oL2Objects[0].ObjDef().AssignedModels(g_mtBusArch);
var bGovernanceLevelPassed = false;
var oHighLevelValues;
var oSuperiorObjDefs;
var oModel;
var oValueChainName = "[Value Chain Name]";
Thank you
Tricarico Romain on
Hello,
You created a script to run on a object occurrence, not on a model, select an object occurrence and the function will work.
The line : ArisData.getSelectedObjOccs(); return an array containing all occurrences selected. If you select a model, the array will be empty and the element number [0] of your array will be undefined.
Best Regards