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

asked 26 Mar, 15:53

mdorigo's gravatar image

mdorigo
131
accept rate: 0%

edited 26 Mar, 15:54


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

permanent link

answered 27 Mar, 11:39

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
5.4k119
accept rate: 18%

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:

×109
×83

question asked: 26 Mar, 15:53

question was seen: 229 times

last updated: 27 Mar, 11:39