Getting value of a node in current instance in programming

Hello,

We are currently getting the value of a node from the current instance from the *.xml.save file in the .cache directory. But since it is after a cache file, I was wondering if there is any other way we could get the value of a field of the current instance? Will really appreciate the help on this.

Why we need it:
We have pre-populated data stored in SQLite, and after getting the 'unique ID' from the current instance, we use the 'value' in where clause of an sql query to display only the relevant data to the interviewer from the sqlite database table.

PS: I actually posted the same query yesterday but can't see it in the group, so if it is duplicate, please excuse and have one of these deleted.

This is risky.

Generally, the way to extend ODK Collect is to write an APK that can be
called as an external app.

ODK Collect supports sending any number of arguments to this external app.
You can, in this way, pass as many arguments as you need in order to
retrieve values from your SQLite database.

This external app can then return multiple values to populate into the form.

··· On Sun, Jul 17, 2016 at 9:38 PM, Mandy wrote:

Hello,

We are currently getting the value of a node from the current instance
from the *.xml.save file in the .cache directory. But since it is after a
cache file, I was wondering if there is any other way we could get the
value of a field of the current instance? Will really appreciate the help
on this.

Why we need it:
We have pre-populated data stored in SQLite, and after getting the 'unique
ID' from the current instance, we use the 'value' in where clause of an sql
query to display only the relevant data to the interviewer from the sqlite
database table.

PS: I actually posted the same query yesterday but can't see it in the
group, so if it is duplicate, please excuse and have one of these deleted.

--
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.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Great - thanks for the suggestion. Can you please point me to a resource that explain how can we get the values passed with intent from a form to our app?

Thanks,
Mandy

··· On Tuesday, July 19, 2016 at 4:20:56 AM UTC+5:30, Mitch wrote: > This is risky. > > > Generally, the way to extend ODK Collect is to write an APK that can be called as an external app. > > > ODK Collect supports sending any number of arguments to this external app. You can, in this way, pass as many arguments as you need in order to retrieve values from your SQLite database. > > > https://opendatakit.org/help/form-design/external-apps/ > > > > This external app can then return multiple values to populate into the form. > > > > > On Sun, Jul 17, 2016 at 9:38 PM, Mandy wrote: > Hello, > > > > We are currently getting the value of a node from the current instance from the *.xml.save file in the .cache directory. But since it is after a cache file, I was wondering if there is any other way we could get the value of a field of the current instance? Will really appreciate the help on this. > > > > Why we need it: > > We have pre-populated data stored in SQLite, and after getting the 'unique ID' from the current instance, we use the 'value' in where clause of an sql query to display only the relevant data to the interviewer from the sqlite database table. > > > > PS: I actually posted the same query yesterday but can't see it in the group, so if it is duplicate, please excuse and have one of these deleted. > > > > -- > > 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. > > > > > > -- > > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com

Hi Mandy,

See the link (https://opendatakit.org/help/form-design/external-apps/)
that Mitch sent in the previous email.

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 Wed, Jul 20, 2016 at 12:10 AM, Mandy muhasunc@gmail.com wrote:

Great - thanks for the suggestion. Can you please point me to a resource that explain how can we get the values passed with intent from a form to our app?

Thanks,
Mandy

On Tuesday, July 19, 2016 at 4:20:56 AM UTC+5:30, Mitch wrote:

This is risky.

Generally, the way to extend ODK Collect is to write an APK that can be called as an external app.

ODK Collect supports sending any number of arguments to this external app. You can, in this way, pass as many arguments as you need in order to retrieve values from your SQLite database.

https://opendatakit.org/help/form-design/external-apps/

This external app can then return multiple values to populate into the form.

On Sun, Jul 17, 2016 at 9:38 PM, Mandy muha...@gmail.com wrote:
Hello,

We are currently getting the value of a node from the current instance from the *.xml.save file in the .cache directory. But since it is after a cache file, I was wondering if there is any other way we could get the value of a field of the current instance? Will really appreciate the help on this.

Why we need it:

We have pre-populated data stored in SQLite, and after getting the 'unique ID' from the current instance, we use the 'value' in where clause of an sql query to display only the relevant data to the interviewer from the sqlite database table.

PS: I actually posted the same query yesterday but can't see it in the group, so if it is duplicate, please excuse and have one of these deleted.

--

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.

--

Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
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.