Issue when defining a reference scope Follow
Hello everyone,
I'm having an issue when defining a customized scope in the Constraints aspect of my language.
I create a ListScope.forNamedElements using a list of nodes that I want to be displayed in this list. When setting this reference in the sandbox, the autocomplete works and shows only the nodes that I wanted to be displayed. But, as soon as I select the node that I want, I get a red underline (error mark) saying that "reference nameOfReference (nodeType) is out of search scope".
I think I'm missing something here. Does anyone know what I'm doing wrong?
Best regards,
Leandro
Please sign in to leave a comment.
Most likely your code that retrieves all the nodes for the scope, which you ten wrap with the ListScope, is wrong. It probably calculates a different set of nodes when the reference is already set.
Vaclav
Mr Pech,
"It probably calculates a different set of nodes when the reference is already set", that was the problem. Thank you!