Hi All,
Attached is a report which gives us the details of the type of attributes allowed in a filter on a model/object or a connection. Is there any way to find out or make changes to this report which will gives us the information if this is a custom attribute or an ARIS default attribute.
Regards,
D
function getmodeltypes(ocurrentfilter) { g_bgetmodeltype = true; var nallallowedmodeltypes = ocurrentfilter.ModelTypes(Constants.ARISVIEW_ALL); if (nallallowedmodeltypes.length == 0) { g_ooutfile.OutputLn(getString("TEXT19"), getString("TEXT1"), 10, 0, - 1, 8, 0); } return nallallowedmodeltypes.sort(sortByModelTypeName); /************************************************************************************************/ function sortByModelTypeName(a, b) { return StrComp(ocurrentfilter.ModelTypeName(a), ocurrentfilter.ModelTypeName(b)); } } // ******************************************************************************************************************** // * Subroutine GetObjTypes * // * Subprogram for determining the allowed object types of the current filter. * // ******************************************************************************************************************** // * Parameter * // * oCurrentFilter = Current filter. * // ******************************************************************************************************************** function getobjtypes(ocurrentfilter) { g_bgetobjtypes = true; var nallallowedobjecttypes = ocurrentfilter.ObjTypes(); return nallallowedobjecttypes.sort(sortByObjTypeName); /************************************************************************************************/ function sortByObjTypeName(a, b) { return StrComp(ocurrentfilter.ObjTypeName(a), ocurrentfilter.ObjTypeName(b)); } }
Yes, you can use this method to check if it is a standard or user defined attribute:
Report class ArisMetaModel - Method isUserDefinedAttrType
isUserDefinedAttrType ( int attrTypeNum )
Returns true, if the specified attribute type number is userdefined.
This method is also available in Business Publisher Report.
Regards,
Jens
Thank you Jens, I will try that. Do you have a similar report like that? Can you share it with me at deeptilad@gmail.com