[ODK Developers] Getting value of a field programmatically in ODK collect (currently getting it from cache/*xml.save)

Hi Mandy,

If you are modifying Collect, you should be able to use the
FormEntryController to get the value of an arbitrary field. It's been
a while since I looked at that code, so your mileage may vary...

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Sun, Jul 17, 2016 at 1:07 PM, Mandy muhasunc@gmail.com wrote:

Hello,

We have some pre-populated data that we have saved in a sqlite database table, and we have a custom widget that display the data from the sqlite table on the collect screen through a SQL query. The issue here that we need the value of a field from the from currently being filled to use as a 'where' clause in the query. We have been getting this value form the "cache/most recent xml.save" file, but I know using cache data for production purposes is a very bad idea.

So, my question is, is there any other way I can get the value of a field from the current form without using the xml file from cache? Can someone please help?

Thanks,
Mandy

--
You received this message because you are subscribed to the Google Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.