Relevant within a repeat group..........error.....Help!

Can someone explain to me why this field statement would work in a choice-filter field within a repeat group.

class1=indexed-repeat( /dct/group_Asset/AS_CLASS , /dct/group_Asset , position(current()/.))

and this field statement will not work within relevant column in the same type of repeat group survey?

indexed-repeat( /GCS-1/newloc/v_loc , /GCS-1/newloc , position(current()/.))='1'

I know they are not from the same survey.....I know. The first statement is from one that is currently working and I am trying to replicate the function in another form within a repeat group that uses a yes/no select_one to define relevance on the next set of questions...........any ideas? Can index-repeats be used in calculation/relevant questions columns?.......did not see any info on the web.

this is the error I get when compiling.

ODK Validate errors:
XForm Parse Error: XPath Dependency Cycle:${v_locnum} => ${v_locnum}${newloc} => ${v_locnum}${v_loc} => ${v_locnum}Dependency cycles amongst the xpath expressions in relevant/calculate

Any help would be appreciated........

This error isn't related to the use of indexed-repeat per se.

It indicates that v_locnum has a calculate, constraint or relevant formula
that depends upon the value of v_locnum/newloc which depends upon
v_locnum/v_loc, and that, in term, depends upon v_locnum.

When attempting to evaluate the calculate, constraint or relevant formula,
the program detects that the outcome depends upon the current value of the
field.

This logic may be overly conservative.

As for fixing it, it might be that you are asking questions about
relationships among individuals, then asking questions specific to those
relationships within the same repeat group. You might need to first have a
repeat group where you gather the relationships information, then have a
second repeat group that asks questions appropriate to those relationships.

··· On Sat, Mar 14, 2015 at 9:31 AM, wrote:

Can someone explain to me why this field statement would work in a
choice-filter field within a repeat group.

class1=indexed-repeat( /dct/group_Asset/AS_CLASS , /dct/group_Asset ,
position(current()/.))

and this field statement will not work within relevant column in the same
type of repeat group survey?

indexed-repeat( /GCS-1/newloc/v_loc , /GCS-1/newloc ,
position(current()/.))='1'

I know they are not from the same survey.....I know. The first statement
is from one that is currently working and I am trying to replicate the
function in another form within a repeat group that uses a yes/no
select_one to define relevance on the next set of questions...........any
ideas? Can index-repeats be used in calculation/relevant questions
columns?.......did not see any info on the web.

this is the error I get when compiling.

ODK Validate errors:
XForm Parse Error: XPath Dependency Cycle:${v_locnum} =>
${v_locnum}${newloc} => ${v_locnum}${v_loc} => ${v_locnum}Dependency cycles
amongst the xpath expressions in relevant/calculate

Any help would be appreciated........

--

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.

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

And if you need to access information from a question in the same repeat
group as you are in (e.g., the individual's name), you can use ../name to
refer to the name within the current repeat group rather than using an
indexed-repeat() construction.

··· On Sat, Mar 14, 2015 at 9:47 AM, Mitch Sundt wrote:

This error isn't related to the use of indexed-repeat per se.

It indicates that v_locnum has a calculate, constraint or relevant formula
that depends upon the value of v_locnum/newloc which depends upon
v_locnum/v_loc, and that, in term, depends upon v_locnum.

When attempting to evaluate the calculate, constraint or relevant formula,
the program detects that the outcome depends upon the current value of the
field.

This logic may be overly conservative.

As for fixing it, it might be that you are asking questions about
relationships among individuals, then asking questions specific to those
relationships within the same repeat group. You might need to first have a
repeat group where you gather the relationships information, then have a
second repeat group that asks questions appropriate to those relationships.

On Sat, Mar 14, 2015 at 9:31 AM, john.harper@grableservices.com wrote:

Can someone explain to me why this field statement would work in a
choice-filter field within a repeat group.

class1=indexed-repeat( /dct/group_Asset/AS_CLASS , /dct/group_Asset ,
position(current()/.))

and this field statement will not work within relevant column in the same
type of repeat group survey?

indexed-repeat( /GCS-1/newloc/v_loc , /GCS-1/newloc ,
position(current()/.))='1'

I know they are not from the same survey.....I know. The first statement
is from one that is currently working and I am trying to replicate the
function in another form within a repeat group that uses a yes/no
select_one to define relevance on the next set of questions...........any
ideas? Can index-repeats be used in calculation/relevant questions
columns?.......did not see any info on the web.

this is the error I get when compiling.

ODK Validate errors:
XForm Parse Error: XPath Dependency Cycle:${v_locnum} =>
${v_locnum}${newloc} => ${v_locnum}${v_loc} => ${v_locnum}Dependency cycles
amongst the xpath expressions in relevant/calculate

Any help would be appreciated........

--

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.

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

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

And if you need to access information from a question in the same repeat group as you are in (e.g., the individual's name), you can use ../name to refer to the name within the current repeat group rather than using an indexed-repeat() construction.

This error isn't related to the use of indexed-repeat per se.

It indicates that v_locnum has a calculate, constraint or relevant formula that depends upon the value of v_locnum/newloc which depends upon v_locnum/v_loc, and that, in term, depends upon v_locnum.

When attempting to evaluate the calculate, constraint or relevant formula, the program detects that the outcome depends upon the current value of the field.

This logic may be overly conservative.

As for fixing it, it might be that you are asking questions about relationships among individuals, then asking questions specific to those relationships within the same repeat group. You might need to first have a repeat group where you gather the relationships information, then have a second repeat group that asks questions appropriate to those relationships.

Can someone explain to me why this field statement would work in a choice-filter field within a repeat group.

class1=indexed-repeat( /dct/group_Asset/AS_CLASS , /dct/group_Asset , position(current()/.))

and this field statement will not work within relevant column in the same type of repeat group survey?

indexed-repeat( /GCS-1/newloc/v_loc , /GCS-1/newloc , position(current()/.))='1'

I know they are not from the same survey.....I know. The first statement is from one that is currently working and I am trying to replicate the function in another form within a repeat group that uses a yes/no select_one to define relevance on the next set of questions...........any ideas? Can index-repeats be used in calculation/relevant questions columns?.......did not see any info on the web.

this is the error I get when compiling.

ODK Validate errors:

XForm Parse Error: XPath Dependency Cycle:${v_locnum} => ${v_locnum}${newloc} => ${v_locnum}${v_loc} => ${v_locnum}Dependency cycles amongst the xpath expressions in relevant/calculate

Any help would be appreciated........

--

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@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...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

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

--

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

Mitch I am not sure I am following you..........

after putting in what I think you are telling me I get the error (instance repeated....blah,blah

you may need to use the indexed repeat() function to specify which value you want.......

i have attached the beginning of the file....(to the first repeat section) it compiles correctly but........no love when it gets to the device.

··· On Saturday, March 14, 2015 at 9:49:55 AM UTC-7, Mitch Sundt wrote: > On Sat, Mar 14, 2015 at 9:47 AM, Mitch Sundt wrote: > On Sat, Mar 14, 2015 at 9:31 AM, wrote: