Hello,
Can someone help here. Expected output is Role Name in 1st column which is attached to a Functions and then followed by Fxn name in 2nd column and Fxn description in 3rd column.
Unfortunately after "l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1)" It is not accepting any Javafunction
l_func=ArisData.sort(l_sort,Constants.SORT_GEOMETRIC,g_nLog);
g_outputObject.TableRow();
var l_funConcat="";
var l_funcDescConcat="";
var l_roleUnique="";
for(var k=0;k<l_func.length;k++)
{
l_funConcat=l_funConcat+k+".\t"+l_func[k].getObjDefName(g_nLog)+"\n";
l_funConcat=l_funcDescConcat+k+".\t"+(l_func[k].ObjDef()).Attribute(Constants.AT_DESC,g_nLog).getValue()+"\n";
var l_RoleDef=l_func[k].ObjDef();
g_outputObject.TableRow();
g_outputObject.TableCellF(l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1),20,"Template10");
g_outputObject.TableCellF(l_func[k].getObjDefName(g_nLog),30,"Template10");
var l_funDef=l_func[k].ObjDef()
g_outputObject.TableCellF(l_funDef.Attribute(Constants.AT_DESC,g_nLog).getValue(),50,"Template10");
}
==============================================
With the Above Code I get the below output. How can i get the Role Name in first column
Thanks In Advance
.png)
Prateek Pandey on
Hi Gopi,
l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1) will give you an array of the connected obj occs.
If you are sure that there will be only one role mapped with the function, you can use:
l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1)[0].getObjDefName(g_nLog) // Fetching the value from 0th location
else you can iterate over the size of the array returned by getConnectedObjOccs.
Regards,
Prateek Pandey