Hello Support Team and Expert Users,

I am trying to get an attribute value automatically from one of the column in sampling point data. I wrote an Xpath expression (idm:samplingPointData('slope', /col, /row, /number)) to make the extracted attribute value as default value for the given attribute. But it didn't work. However if I use the same expression and calculate the value (i.e. tick the calculated button), it works. But I do not want to calculate the value, I just want to put that value as default as I might need to change the attribute value at some point. Anyone have any idea what is going wrong?

Thanks

Milan

asked 19 Sep '16, 16:38

dhunganamilan's gravatar image

dhunganamilan
67112
accept rate: 0%


Dear Milan,
That expression doesn't work as a default value expression because the default values are applied when you create a new record or you add a new entity, instead the calculated attributes are (re)calculated every time an attribute it depends on changes.
Can we have more details about the structure of your survey? Maybe the default value is not applied correctly because, when the relative attribute it's created, the values of col row and number are not yet available.
Thanks,
Open Foris Team

permanent link

answered 20 Sep '16, 09:58

OF%20Collect's gravatar image

OF Collect ♦♦
2.6k8
accept rate: 21%

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:

×343

question asked: 19 Sep '16, 16:38

question was seen: 1,796 times

last updated: 20 Sep '16, 09:58