How do I define the path to an attribute correctly?

  • Asked
  • Active
  • Viewed 78299 times
0

Hello,

I'd like to refer to an attribute in a relevancy expression, but the attribute I want to refer to is some levels higher. How do I go about this?

attribute to refer to: /sample_plot/region

attribute with expression: /sample_plot/trees/samplecandidate

Thanks!

0

Accepted answer

Hi, you have to consider that the expression defined in the attribute samplecandidate will have the entity trees as context, so it will be evaluated starting from that node. The expression you need will be something like this: parent()/region = 'REGION_CODE'. Thanks

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.