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

accept rate: 0%

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


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]
Open Foris Team

permanent link

answered 23 Jan '19, 09:08

OF%20Collect's gravatar image

OF Collect ♦♦
accept rate: 23%

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 22 Jan '19, 12:22

question was seen: 1,158 times

last updated: 23 Jan '19, 09:31