reference constraint - index in parent
Hi,
I have a smart reference
and I want to limit the search scope for it.
The problem is that the limitation should depend on the index of the
node in it's enclosingNode.
And I don't know how to get that index if it is a new node and referenceNode
is therefor null.
In other words: how would I go about finding out on which item the user's cursor is in the parent's child node cell list when the reference constraint code is called ?
Thanks
I have a smart reference
and I want to limit the search scope for it.
The problem is that the limitation should depend on the index of the
node in it's enclosingNode.
And I don't know how to get that index if it is a new node and referenceNode
is therefor null.
In other words: how would I go about finding out on which item the user's cursor is in the parent's child node cell list when the reference constraint code is called ?
Thanks
Please sign in to leave a comment.
It's not possible now AFAIK. You can vote for: MPS-13803
I found a way to work around it for my case for now, but that would certainly be good to have.
I'll vote for it.
Thanks!
See Node_GetIndexInParentOperation - it gets node's index in parent's collection.
In both "search scope" and "presentation" queries here referenceNode is not available during creation, but becomes available later when you edit existing node containing the reference.
The former question was why there is no role & index parameters in these queries when referenceNode is null.