retrieving a sample point as default value of coordinate attribute

  • Asked
  • Active
  • Viewed 4684 times
0

I try to retrieving a sample point as default value of coordinate attribute.I used the demo sample points.

alt text

my retrieving expression in IDM Expression Language is idm:samplingPointCoordinate(01,01).

alt text

The coordinate system is also EPSG:4326 for my Survey.

in the preview I got empty form without default values.

alt text

my collect version is 3.8.19.

let me know if I miss any detail Thanks,

mehrdad

1

Accepted answer

Hi,
the expression is "almost" correct... the only thing to change is that the parameters must be text values, like this:
idm:samplingPointCoordinate('01','01')
In this way the retrieved coordinate will always be the one corresponding to level_1='01' and level_2='01', is it the behaviour you are expecting? It will be more useful to have a dynamic lookup of that coordinate, specifying a path to an attribute instead of a constant value.
Many thanks,
Open Foris Team

now its work..! :) you right,that way is much more flexible. Now for a test I change it to idm:samplingPointCoordinate(concat('0',idm:position())) and work perfectly. Thanks.

mehrdad mehrdad

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.