Hi,
I'm having an issue where the script doesn't read value type attributes correctly, instead of returning the set value as a string the script returns [(Untitled)]. This affects all value type attributes and this issue only started in ARIS 9.7.1, didn't have this issue with previous ARIS 9 versions.
What's weird is that running the same script on the same data in ARIS 9.7.0.5 returns the correct value of the attribute, but in ARIS 9.7.1 it returns [(Untitled)]
Anyone having a similar issue? Could suggest a way to resolve this?
Are these attributes 'user defined' if so this could be the problem.
We have found with ARIS 9.7 SR1 and 9.8 that all user defined attributes no longer have the API Constant (eg. Constants.AT_USER_ATTR7). So now you need to reference the attribute using the 'UserDefinedAttributeTypeNum()' command which takes the attribute GUID and returns the relevant attribute type number.
I had previously tried that and the script still returns [(Untitled)].
In the script:
var method = ArisData.ActiveFilter();
var aProcLevel = method.UserDefinedAttributeTypeNum("023cc590-eaba-11e2-7e8d-18a905457ba8");
And during debugging:
% aProcLevel
68311
% oFunction.ObjDef().Attribute(aProcLevel, g_nLoc).getValue()
(Untitled)