Hi all
Did a search but found nothing on this. Function getParents() in the JS API does not seem to function as expected.
I am trying to get a list of all the NOTICE links for an asset (but would settle for simply all links) similar to what you see when you right-click an asset and look at the Linking screen from the backend.
I am using the following code:
var type_codes = []; var link_types = []; var link_values = []; getParents (<my asset id>, 1, type_codes, link_types, link_values, 1, function(data) { // do something here });
The above code returns any TYPE1 and TYPE2 links, but does not return any other links - I've confirmed on the Linking screen there are a number of NOTICE links (where the image is used in a page) and a NOTICE link for a Future Status. But these do not come up in getParents in the JS API, even though the documentation clearly states NOTICE links should be returned.
I tried getChildren - which seems to return NOTICE links but this is going the wrong direction.
Is this a fault in getParents? Or am I going about it the wrong way? Is there another way I'm supposed to use to get NOTICE links?
Cheers