Extract values to populate drop down

I need to take some input on the field and then use those values in the
farm.

For example
I go to a village and list out the farms. I enter data with data for each
farm with its gps location.

Then I would be getting different animals from different farms and would
need to enter their data. As these wont come in any particular sequence I
would need to enter the farm name/gps value for each animal I tag.
If the earlier entries of farm name can be showed in a drop-down list on
selection of which it would automatically get farm details like gps into
this instance of record for the animal.

Options I can think of is filling farm location details in the beginning of
the form and then these populate a drop down.

OR

I build another form to take in just the farm data. Then use this data to
build the drop-down in the form that collect farm animal data.

I would be thankful if anybody could suggest any way to accomplish this in
XLSForm.

Please note that in the field there would be no internet connectivity so
all operations need to happen in the phone itself.

Thanks in advance

Is this not possible?

··· On Tuesday, July 26, 2016 at 12:26:40 PM UTC+5:30, Maxbuzz wrote: > > I need to take some input on the field and then use those values in the > farm. > > For example > I go to a village and list out the farms. I enter data with data for each > farm with its gps location. > > Then I would be getting different animals from different farms and would > need to enter their data. As these wont come in any particular sequence I > would need to enter the farm name/gps value for each animal I tag. > If the earlier entries of farm name can be showed in a drop-down list on > selection of which it would automatically get farm details like gps into > this instance of record for the animal. > > Options I can think of is filling farm location details in the beginning > of the form and then these populate a drop down. > > OR > > I build another form to take in just the farm data. Then use this data to > build the drop-down in the form that collect farm animal data. > > I would be thankful if anybody could suggest any way to accomplish this in > XLSForm. > > Please note that in the field there would be no internet connectivity so > all operations need to happen in the phone itself. > > Thanks in advance >

Hi Maxbuzz,

You can't share information across forms, so that's out.

You can pull out data items from a previous repeat, but I think you'd
have to code that up in XML.
https://groups.google.com/d/msg/opendatakit/PH591iA4rSo/fjXUhXE8Vt8J
has an example. Not sure it's easy/possible to do with XLSForm.

Another option is to have a farm form and an animal form. Then have
some pre-generated unique ID for each farm that you enter into the
farm form. If you enter that same id into the animal form, then you've
linked farms and animals.

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 Thu, Aug 11, 2016 at 1:01 PM, Maxbuzz rajneeshsuvarna@gmail.com wrote:

On Tuesday, July 26, 2016 at 12:26:40 PM UTC+5:30, Maxbuzz wrote:

I need to take some input on the field and then use those values in the
farm.

For example
I go to a village and list out the farms. I enter data with data for each
farm with its gps location.

Then I would be getting different animals from different farms and would
need to enter their data. As these wont come in any particular sequence I
would need to enter the farm name/gps value for each animal I tag.
If the earlier entries of farm name can be showed in a drop-down list on
selection of which it would automatically get farm details like gps into
this instance of record for the animal.

Options I can think of is filling farm location details in the beginning
of the form and then these populate a drop down.

OR

I build another form to take in just the farm data. Then use this data to
build the drop-down in the form that collect farm animal data.

I would be thankful if anybody could suggest any way to accomplish this in
XLSForm.

Please note that in the field there would be no internet connectivity so
all operations need to happen in the phone itself.

Thanks in advance

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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