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
18482354
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.9k119
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
[hide 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

Question tags:

×494

question asked: 22 Jan '19, 12:22

question was seen: 1,863 times

last updated: 23 Jan '19, 09:31

First time here? Check out the FAQ!

×