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

asked 20 Nov '15, 15:37

mehrdad's gravatar image

mehrdad
1624
accept rate: 0%


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

permanent link

answered 20 Nov '15, 18:25

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

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

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.

(20 Nov '15, 18:51) mehrdad mehrdad'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: 20 Nov '15, 15:37

question was seen: 3,647 times

last updated: 20 Nov '15, 18:51