count number of inlinks an object has?

hi

im wanting to create an attribute that counts the number of links to that object? hope im explaining myself!

ie an object has 100 inlinks i would like an attribute in that object that has 100 as value

thanks in advance!

 

 


doorsuser77 - Wed Aug 27 07:27:33 EDT 2014

Re: count number of inlinks an object has?
Tony_Goodman - Wed Aug 27 10:18:22 EDT 2014

LinkRef lr
int count = 0
for lr in obj <- "*" do
{
    count++
}

obj.attrDXLName = count

Create a DXL attribute of type integer using this code.

Tony