XPath Dependency Cycle Error

I have scenario where i want to add a value of the specific column such
that the last value of that column is the sum of all values within an
indexed-repeat. see for example i want this

test1 test2

1 1

0 1

1 2

1 3

0 3

so suppose the indexed-repeat name is drug-repeat an to calulate test2 i
have written this in the calculation if(
position(..)=1,indexed-repeat(${test1},
${drug_repeat},position(..)),indexed-repeat(${test2},
${drug_repeat},position(..)-1)+indexed-repeat(${test1},
${drug_repeat},position(..)))

while validating it give me the "XPath Dependency Cycle" error .can any
one help me please.

Hi there,

The best way to get help is to make it very easy for the person
looking at the question. Your email isn't very clear, so maybe you can
expand on it and provide a detailed example.

Thanks,

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 Fri, Apr 15, 2016 at 7:55 AM, ahmed.siddiqui@ihsinformatics.com wrote:

I have scenario where i want to add a value of the specific column such that
the last value of that column is the sum of all values within an
indexed-repeat. see for example i want this

test1 test2

1 1

0 1

1 2

1 3

0 3

so suppose the indexed-repeat name is drug-repeat an to calulate test2 i
have written this in the calculation if(
position(..)=1,indexed-repeat(${test1},
${drug_repeat},position(..)),indexed-repeat(${test2},
${drug_repeat},position(..)-1)+indexed-repeat(${test1},
${drug_repeat},position(..)))

while validating it give me the "XPath Dependency Cycle" error .can any one
help me please.

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