Set calculate value in input value

Hi

I have the following nested repeat (Hole and Run) :

  • Hole
    • Run

Run has a field name (input)
and I would like the field to be fill automaticaly with the count value
(repeat 1 of run => name =1, repeat 2 of run => name = 2, ...)
I could use the readonly parm to prevent people to put something.
But how to set the value ?
(hope to be clear ...)

Cheers

Karim

I think you want "position(..)" you might have to fiddle with the relative
path expression (..) to get it to refer to the repeat group you want.

search the list for "position" for some useful posts.

··· On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet <karim.bernardet@gmail.com wrote:

Hi

I have the following nested repeat (Hole and Run) :

  • Hole
    • Run

Run has a field name (input)
and I would like the field to be fill automaticaly with the count value
(repeat 1 of run => name =1, repeat 2 of run => name = 2, ...)
I could use the readonly parm to prevent people to put something.
But how to set the value ?
(hope to be clear ...)

Cheers

Karim

--

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

Thanks Mitch

but to set the value, can I do something like

Name =
··· Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit : > I think you want "position(..)" you might have to fiddle with the relative path expression (..) to get it to refer to the repeat group you want. > > search the list for "position" for some useful posts. > > > > On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet wrote: > > Hi > > I have the following nested repeat (Hole and Run) : > > * Hole > * Run > > Run has a field name (input) > and I would like the field to be fill automaticaly with the count value (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...) > I could use the readonly parm to prevent people to put something. > But how to set the value ? > (hope to be clear ...) > > Cheers > > Karim > > > > > > -- > > -- > > 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

should be a select ...

··· Le mercredi 10 juin 2015 22:00:56 UTC+2, karim bernardet a écrit : > > Thanks Mitch > > but to set the value, can I do something like > > > Name = > > > > > Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit : > > I think you want "position(..)" you might have to fiddle with the > relative path expression (..) to get it to refer to the repeat group you > want. > > > > search the list for "position" for some useful posts. > > > > > > > > On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet wrote: > > > > Hi > > > > I have the following nested repeat (Hole and Run) : > > > > * Hole > > * Run > > > > Run has a field name (input) > > and I would like the field to be fill automaticaly with the count value > (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...) > > I could use the readonly parm to prevent people to put something. > > But how to set the value ? > > (hope to be clear ...) > > > > Cheers > > > > Karim > > > > > > > > > > > > -- > > > > -- > > > > 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 > >
Name yop =

There is only "yop =" in ODK Aggregate
is ignored for
the value

testhiddenincrement.xml (2.02 KB)

··· Le mercredi 10 juin 2015 22:36:10 UTC+2, karim bernardet a écrit : > > > should be a select ... > > > > > > > Le mercredi 10 juin 2015 22:00:56 UTC+2, karim bernardet a écrit : >> >> Thanks Mitch >> >> but to set the value, can I do something like >> >> >> Name = >> >> >> >> >> Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit : >> > I think you want "position(..)" you might have to fiddle with the >> relative path expression (..) to get it to refer to the repeat group you >> want. >> > >> > search the list for "position" for some useful posts. >> > >> > >> > >> > On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet wrote: >> > >> > Hi >> > >> > I have the following nested repeat (Hole and Run) : >> > >> > * Hole >> > * Run >> > >> > Run has a field name (input) >> > and I would like the field to be fill automaticaly with the count value >> (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...) >> > I could use the readonly parm to prevent people to put something. >> > But how to set the value ? >> > (hope to be clear ...) >> > >> > Cheers >> > >> > Karim >> > >> > >> > >> > >> > >> > -- >> > >> > -- >> > >> > 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 >> >>

Yes, is only processed in and
is expected to be a constant value.

··· On Wed, Jun 10, 2015 at 2:09 PM, karim bernardet wrote:
<select1 ref="/testhiddenincrement/Name">
  <label>Name</label>
  <item>
    <label> <output

value="count(/testhiddenincrement/group_ep0bl48)"/>
yop =

There is only "yop =" in ODK Aggregate
is ignored for
the value

Le mercredi 10 juin 2015 22:36:10 UTC+2, karim bernardet a écrit :

should be a select ...

Le mercredi 10 juin 2015 22:00:56 UTC+2, karim bernardet a écrit :

Thanks Mitch

but to set the value, can I do something like

Name =

Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit :

I think you want "position(..)" you might have to fiddle with the
relative path expression (..) to get it to refer to the repeat group you
want.

search the list for "position" for some useful posts.

On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet < karim.b...@gmail.com> wrote:

Hi

I have the following nested repeat (Hole and Run) :

  • Hole
    • Run

Run has a field name (input)
and I would like the field to be fill automaticaly with the count
value (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...)
I could use the readonly parm to prevent people to put something.
But how to set the value ?
(hope to be clear ...)

Cheers

Karim

--

--

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

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

so how can I set the value ?

··· Le mercredi 10 juin 2015 23:26:14 UTC+2, Mitch Sundt a écrit : > > Yes, is only processed in and > is expected to be a constant value. > > On Wed, Jun 10, 2015 at 2:09 PM, karim bernardet <karim.b...@gmail.com > wrote: > >> >> Name >> >> > value="count(/testhiddenincrement/group_ep0bl48)"/> >> yop = > value="count(/testhiddenincrement/group_ep0bl48)"/> >> >> >> >> There is only "yop =" in ODK Aggregate >> is ignored >> for the value >> >> >> Le mercredi 10 juin 2015 22:36:10 UTC+2, karim bernardet a écrit : >>> >>> >>> should be a select ... >>> >>> >>> >>> >>> >>> >>> Le mercredi 10 juin 2015 22:00:56 UTC+2, karim bernardet a écrit : >>>> >>>> Thanks Mitch >>>> >>>> but to set the value, can I do something like >>>> >>>> >>>> Name = >>> value="count(/test/group_ep0bl48)"/> >>>> >>>> >>>> >>>> >>>> Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit : >>>> > I think you want "position(..)" you might have to fiddle with the >>>> relative path expression (..) to get it to refer to the repeat group you >>>> want. >>>> > >>>> > search the list for "position" for some useful posts. >>>> > >>>> > >>>> > >>>> > On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet < karim.b...@gmail.com> wrote: >>>> > >>>> > Hi >>>> > >>>> > I have the following nested repeat (Hole and Run) : >>>> > >>>> > * Hole >>>> > * Run >>>> > >>>> > Run has a field name (input) >>>> > and I would like the field to be fill automaticaly with the count >>>> value (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...) >>>> > I could use the readonly parm to prevent people to put something. >>>> > But how to set the value ? >>>> > (hope to be clear ...) >>>> > >>>> > Cheers >>>> > >>>> > Karim >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > >>>> > -- >>>> > >>>> > 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 >>>> >>>> -- >> -- >> 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 >

You cannot set the value of a choice in a selection-choice list dynamically.

You could write an app that took data from your form and presented a
prompt, and then returned a set of values that are then stored into your
form.

This is not seamless, but can work:
https://opendatakit.org/help/form-design/external-apps/

··· On Wed, Jun 10, 2015 at 2:28 PM, karim bernardet wrote:

so how can I set the value ?

Le mercredi 10 juin 2015 23:26:14 UTC+2, Mitch Sundt a écrit :

Yes, is only processed in and
is expected to be a constant value.

On Wed, Jun 10, 2015 at 2:09 PM, karim bernardet karim.b...@gmail.com wrote:

<select1 ref="/testhiddenincrement/Name">
  <label>Name</label>
  <item>
    <label> <output

value="count(/testhiddenincrement/group_ep0bl48)"/>
yop =

There is only "yop =" in ODK Aggregate
is ignored
for the value

Le mercredi 10 juin 2015 22:36:10 UTC+2, karim bernardet a écrit :

should be a select ...

Le mercredi 10 juin 2015 22:00:56 UTC+2, karim bernardet a écrit :

Thanks Mitch

but to set the value, can I do something like

Name =

Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit :

I think you want "position(..)" you might have to fiddle with the
relative path expression (..) to get it to refer to the repeat group you
want.

search the list for "position" for some useful posts.

On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet < karim.b...@gmail.com> wrote:

Hi

I have the following nested repeat (Hole and Run) :

  • Hole
    • Run

Run has a field name (input)
and I would like the field to be fill automaticaly with the count
value (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...)
I could use the readonly parm to prevent people to put something.
But how to set the value ?
(hope to be clear ...)

Cheers

Karim

--

--

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

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

--

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

You cannot set the value of a choice in a selection-choice list
dynamically.

and a simple text field ?

··· Le mercredi 10 juin 2015 23:44:53 UTC+2, Mitch Sundt a écrit :

You could write an app that took data from your form and presented a
prompt, and then returned a set of values that are then stored into your
form.

This is not seamless, but can work:
https://opendatakit.org/help/form-design/external-apps/

On Wed, Jun 10, 2015 at 2:28 PM, karim bernardet <karim.b...@gmail.com <javascript:>> wrote:

so how can I set the value ?

Le mercredi 10 juin 2015 23:26:14 UTC+2, Mitch Sundt a écrit :

Yes, is only processed in and
is expected to be a constant value.

On Wed, Jun 10, 2015 at 2:09 PM, karim bernardet karim.b...@gmail.com wrote:

<select1 ref="/testhiddenincrement/Name">
  <label>Name</label>
  <item>
    <label> <output 

value="count(/testhiddenincrement/group_ep0bl48)"/>
yop =

There is only "yop =" in ODK Aggregate
is ignored
for the value

Le mercredi 10 juin 2015 22:36:10 UTC+2, karim bernardet a écrit :

should be a select ...

Le mercredi 10 juin 2015 22:00:56 UTC+2, karim bernardet a écrit :

Thanks Mitch

but to set the value, can I do something like

Name =

Le mercredi 10 juin 2015 21:41:44 UTC+2, Mitch Sundt a écrit :

I think you want "position(..)" you might have to fiddle with the
relative path expression (..) to get it to refer to the repeat group you
want.

search the list for "position" for some useful posts.

On Wed, Jun 10, 2015 at 11:36 AM, karim bernardet < karim.b...@gmail.com> wrote:

Hi

I have the following nested repeat (Hole and Run) :

  • Hole
    • Run

Run has a field name (input)
and I would like the field to be fill automaticaly with the count
value (repeat 1 of run => name =1, repeat 2 of run => name = 2, ...)
I could use the readonly parm to prevent people to put something.
But how to set the value ?
(hope to be clear ...)

Cheers

Karim

--

--

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

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

--

Post: opend...@googlegroups.com <javascript:>
Unsubscribe: opendatakit...@googlegroups.com <javascript:>
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 <javascript:>.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com <javascript:>