Dear OF Team,

If it is possible, how do I do that? Would substring(string,start,len) work?

Thanks! Andras

asked 22 Jan '19, 12:22

Andras's gravatar image

Andras
18482253
accept rate: 0%


Hi András,
If your date attribute is called "my_date", you can write an expression like this:

my_date/@year

In the same way you can write my_date/@month or my_date/@day.
In general, this type of expression applies to all composite attributes. If you want the survey designer to suggest the possible field names, try to write a "wrong" expression an it will give you a hint like this: possible valid values in /sampling_point/my_date: [year, month, day]
Thanks,
Open Foris Team

permanent link

answered 23 Jan '19, 09:08

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

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

Brilliant! Please add this to the IDM Expression Language help. Thanks!

(23 Jan '19, 09:31) Andras Andras's gravatar image
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:

×494

question asked: 22 Jan '19, 12:22

question was seen: 1,776 times

last updated: 23 Jan '19, 09:31