How can I use the last() function to set default values?

  • Asked
  • Active
  • Viewed 1101 times
0

Hello,

does anyone have problems using the last() function to set attribute's default values?

I am trying to use this expression but it always returns an empty field:

last(dendro_visit).serialnr

I cannot figure out where the issue is.

Thanks

0

Accepted answer

Dear user,
The last() function works with multiple entities or multiple attributes.
In your case, I think you want to access the attribute "serialnr" inside the entity "dendro_visit". That entity must be marked as multiple. In that case, the expression should work properly.
We will contact you to your private email address to better understand this issue.
Many 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.