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!

asked 09 Oct '14, 21:13

Andras's gravatar image

Andras
1428820
accept rate: 0%

edited 09 Oct '14, 21:14


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

permanent link

answered 09 Oct '14, 21:45

OF%20Collect's gravatar image

OF Collect ♦♦
2.1k5
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×290

question asked: 09 Oct '14, 21:13

question was seen: 2,770 times

last updated: 09 Oct '14, 21:45