Hello
-
Am building my form in excel and using xml build to convert to xml , I upload
it using odkaggregate 1.4.5 a, am using a local server to host the
database in postgresql and I use odk collect 1.4.5(1048) to enter the data
-
The form has a repeat question on the section of infants ( a mother can
have twins) so i want to collect information for each of the children
seprately but all on the mother's form)
problem
The first form works fine but second form on completion if brings an
error, I have tried looking for the cause by failed, any help will be much
appreciated
N.B I have attached the xls form and below is the error it brings
https://lh3.googleusercontent.com/-MiLScA4K0FQ/VWGo7jKBN6I/AAAAAAAAA9E/IczLeg4YIRc/s1600/Screenshot_2015-05-24-13-20-10.png
Birth_Defects_Surveillancefinallinda.xls (103 KB)
Ayoub,
Search for references to "control" in your form. You will find at least one
case where, either:
(1) you refer to that field from outside the current repeat context, so
Collect cannot determine which of the two copies of the field you would
like to reference (therefore you need to use indexed-repeat(), as very
helpfully suggested by the error message); or
(2) you are referring to that field within the choice_filter column, which
is not supported (search this forum for lengthy discussions of
work-arounds).
Best,
Chris
···
---
Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/
On Sun, May 24, 2015 at 6:35 AM Ayoub Kakande akakande@gmail.com wrote:
Hello
-
Am building my form in excel and using xml build to convert to xml , I upload
it using odkaggregate 1.4.5 a, am using a local server to host the
database in postgresql and I use odk collect 1.4.5(1048) to enter the
data
-
The form has a repeat question on the section of infants ( a mother can
have twins) so i want to collect information for each of the children
seprately but all on the mother's form)
problem
The first form works fine but second form on completion if brings an
error, I have tried looking for the cause by failed, any help will be much
appreciated
N.B I have attached the xls form and below is the error it brings
https://lh3.googleusercontent.com/-MiLScA4K0FQ/VWGo7jKBN6I/AAAAAAAAA9E/IczLeg4YIRc/s1600/Screenshot_2015-05-24-13-20-10.png
--
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.
Thanx Chris,
Actually have seen its a reference out of the repeat group to a variable
inside the repeat group, meaning I have to use a repeat index, am failing
to wrap my head around the syntax of repeat index, any example u can
provide will b much appreciated
Thanx in advance
···
On May 24, 2015 1:56 PM, "Christopher Robert" wrote:
Ayoub,
Search for references to "control" in your form. You will find at least
one case where, either:
(1) you refer to that field from outside the current repeat context, so
Collect cannot determine which of the two copies of the field you would
like to reference (therefore you need to use indexed-repeat(), as very
helpfully suggested by the error message); or
(2) you are referring to that field within the choice_filter column, which
is not supported (search this forum for lengthy discussions of
work-arounds).
Best,
Chris
Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/
On Sun, May 24, 2015 at 6:35 AM Ayoub Kakande akakande@gmail.com wrote:
Hello
-
Am building my form in excel and using xml build to convert to xml ,
I upload it using odkaggregate 1.4.5 a, am using a local server to
host the database in postgresql and I use odk collect 1.4.5(1048) to
enter the data
-
The form has a repeat question on the section of infants ( a mother
can have twins) so i want to collect information for each of the children
seprately but all on the mother's form)
problem
The first form works fine but second form on completion if brings an
error, I have tried looking for the cause by failed, any help will be much
appreciated
N.B I have attached the xls form and below is the error it brings
https://lh3.googleusercontent.com/-MiLScA4K0FQ/VWGo7jKBN6I/AAAAAAAAA9E/IczLeg4YIRc/s1600/Screenshot_2015-05-24-13-20-10.png
--
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.
--
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.
For example:
indexed-repeat(${control}, ${groupname}, 1)
That would get you the first instance of the field named "control" inside
the repeat group named "groupname". Replace the "groupname" with the name
of your repeat group and replace the "1" with the index of the instance you
want (2 for the second instance, 3 for the third, and so on).
Best,
Chris
···
---
Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/
On Sun, May 31, 2015 at 3:02 AM Ayoub Kakande akakande@gmail.com wrote:
Thanx Chris,
Actually have seen its a reference out of the repeat group to a variable
inside the repeat group, meaning I have to use a repeat index, am failing
to wrap my head around the syntax of repeat index, any example u can
provide will b much appreciated
Thanx in advance
On May 24, 2015 1:56 PM, "Christopher Robert" crobert@surveycto.com wrote:
Ayoub,
Search for references to "control" in your form. You will find at least
one case where, either:
(1) you refer to that field from outside the current repeat context, so
Collect cannot determine which of the two copies of the field you would
like to reference (therefore you need to use indexed-repeat(), as very
helpfully suggested by the error message); or
(2) you are referring to that field within the choice_filter column,
which is not supported (search this forum for lengthy discussions of
work-arounds).
Best,
Chris
Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/
On Sun, May 24, 2015 at 6:35 AM Ayoub Kakande akakande@gmail.com wrote:
Hello
-
Am building my form in excel and using xml build to convert to xml ,
I upload it using odkaggregate 1.4.5 a, am using a local server to
host the database in postgresql and I use odk collect 1.4.5(1048) to
enter the data
-
The form has a repeat question on the section of infants ( a mother
can have twins) so i want to collect information for each of the children
seprately but all on the mother's form)
problem
The first form works fine but second form on completion if brings an
error, I have tried looking for the cause by failed, any help will be much
appreciated
N.B I have attached the xls form and below is the error it brings
https://lh3.googleusercontent.com/-MiLScA4K0FQ/VWGo7jKBN6I/AAAAAAAAA9E/IczLeg4YIRc/s1600/Screenshot_2015-05-24-13-20-10.png
--
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.
--
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.
--
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.