Hi All,
I have created a report in the WYSIWYG editor that shows all Person Type to Function relationships when run on an EPC model.
It then also gets the Person Type to Function relationships that occur on the assigned FAD models. The issue is that then some of the results are duplicated if there is an occurence of the Person Type on both the EPC and the FAD.
Does anyone know if these can be removed before they are written to the final report?
thanks!
Hi Vivek,
Please try the below code :
for (var i=0;i<SelectedLevelC.length;i++) { var UCObjOccMixed = SelectedLevelC[i].ObjOccListBySymbol(UseCaseSymbolNum) var NewSCDefArray = new Array for (var i4=0; i4 < UCObjOccMixed.length;i4++) { NewSCDefArray = NewSCDefArray.push(UCObjOccMixed[i4].ObjDef().Name(g_nloc)) } NewSCDefArray = ArisData.Unique(NewSCDefArray) } Best Regards, SrinivasHi Srinivas CH
Still It's Get Error
Cannot find function push in object 1
I also use instead of push to concat but doesn't work
Thanks
vivek ingle
Betsy - if you are wanting to edit this in the WYSIWYG editor, you should switch to finding the relationships on the object definition level rather than the occurrence level. The relationship on the EPC and FAD should be the same, so it will only be printed once if it is run on the definition level.