Using a variable in path to a node

  • Asked
  • Active
  • Viewed 2852 times
0

Hi,

Is it possible to use a value stored in a node to define the path to another?

E.g.: I have a tree entity with an attribute "stand_number" (=1) (/plot/trees/stand_number (trees is a multiple entity)).

Can I use the value stored in "stand_number" to access /plot/dgm/dgm1m by substituting 1 in /plot/dgm/dgm1m? dgm1m is the basal area weighted mean diameter on stand 1.

The idea is to get the tree which is closest to dgm.

Thanks!

0

Accepted answer

Hi András,
There isn't any way to generate a path dynamically like you are asking.
However you can use the stand_number inside the Apply when condition and use different variables in the Expression field. I hope this will help you.
Thanks,
Open Foris Team

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.