I am trying to use indexed-repeat and jr:choice-name to display the label
for a select_one response that is part of a repeated group. Here is what I
have been trying in calculate:
indexed-repeat(jr:choice-name (${HDFODRKH}, '${HDFODRKH}'),
${HouseholdDiet}, ${HouseholdDietIndex})
but the error message I get says "XPath evaluation: type mismatch
indexed-repeat():first parameter must be XPath field reference"
Do I need to separate into two calculations or is there a way to combine?
···
On Wed, Aug 26, 2015 at 3:18 AM, Meghan Loraditch < meghan.loraditch@gmail.com> wrote:
Hi -
I am trying to use indexed-repeat and jr:choice-name to display the label
for a select_one response that is part of a repeated group. Here is what I
have been trying in calculate:
indexed-repeat(jr:choice-name (${HDFODRKH}, '${HDFODRKH}'),
${HouseholdDiet}, ${HouseholdDietIndex})
but the error message I get says "XPath evaluation: type mismatch
indexed-repeat():first parameter must be XPath field reference"
Do I need to separate into two calculations or is there a way to combine?
I can manage to do this, but i got error, when add second data in reapeted
field
i believe i messup with indexed-repeat and position(..) but dont know how
to fix it
need advise please...
···
On Wednesday, August 26, 2015 at 5:18:52 PM UTC+7, Meghan Kershaw wrote:
>
> Hi -
>
> I am trying to use indexed-repeat and jr:choice-name to display the label
> for a select_one response that is part of a repeated group. Here is what I
> have been trying in calculate:
>
> indexed-repeat(jr:choice-name (${HDFODRKH}, '${HDFODRKH}'),
> ${HouseholdDiet}, ${HouseholdDietIndex})
> but the error message I get says "XPath evaluation: type mismatch
> indexed-repeat():first parameter must be XPath field reference"
>
> Do I need to separate into two calculations or is there a way to combine?
>
> Thanks,
> M
>
···
On Tue, Sep 6, 2016 at 1:34 AM, Budi Yunior wrote:
I can manage to do this, but i got error, when add second data in reapeted
field
i believe i messup with indexed-repeat and position(..) but dont know how
to fix it
need advise please...
On Wednesday, August 26, 2015 at 5:18:52 PM UTC+7, Meghan Kershaw wrote:
Hi -
I am trying to use indexed-repeat and jr:choice-name to display the
label for a select_one response that is part of a repeated group. Here is
what I have been trying in calculate:
indexed-repeat(jr:choice-name (${HDFODRKH}, '${HDFODRKH}'),
${HouseholdDiet}, ${HouseholdDietIndex})
but the error message I get says "XPath evaluation: type mismatch
indexed-repeat():first parameter must be XPath field reference"
Do I need to separate into two calculations or is there a way to combine?