Dear OF Team,

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

Thanks! Andras

asked 22 Jan, 12:22

Andras's gravatar image

Andras
1488821
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, 09:08

OF%20Collect's gravatar image

OF Collect ♦♦
2.5k7
accept rate: 20%

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

(23 Jan, 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:

×324

question asked: 22 Jan, 12:22

question was seen: 178 times

last updated: 23 Jan, 09:31