[ODK Developers] Create a Field Which Generate a Unique ID as Well as It Display

Kanhu,

Each form already generates an instanceID. It's not particularly human
friendly, but you can show it to the user as the last prompt of the
form. Easiest way to do this is to have a prompt with the type "note".
Then in the label, put something like "Your instanceID is
${instanceID}".

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom development, form design, implementation support, and user training for ODK.

On Wed, Mar 6, 2013 at 1:44 AM, Kanhu Bhol kanhu.gs@gmail.com wrote:

Dear All,

Will you please help me .!!
In my company requirement , i.e I have to create a field which generate a unique ID as well as it display at the end .
like:--
this form was successfully data entered and it's unique id : 24521(random).

can it possible in our XLSForm design , If it possible to can you please give me a sample so that i can understand clearly

--
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/groups/opt_out.

Thanks Yaw,

your feedback is always useful. thanks.....

My friend Yaw, how can i use this instanceID in my repeated type of questions.

Example :
begin repeat
integer instanceID (value= 1) assume
..
...
....
end repeat

My requirement is to increment this instanceID value = 2 then 3,4,...
i want to use this instanceID as my key is it possible .
please reply

··· On Wednesday, March 6, 2013 8:43:13 PM UTC+5:30, Yaw Anokwa wrote: > Kanhu, > > > > Each form already generates an instanceID. It's not particularly human > > friendly, but you can show it to the user as the last prompt of the > > form. Easiest way to do this is to have a prompt with the type "note". > > Then in the label, put something like "Your instanceID is > > ${instanceID}". > > > > Yaw > > -- > > Need ODK help? Go to http://nafundi.com for custom development, form > > design, implementation support, and user training for ODK. > > > > On Wed, Mar 6, 2013 at 1:44 AM, Kanhu Bhol wrote: > > > Dear All, > > > > > > Will you please help me .!! > > > In my company requirement , i.e I have to create a field which generate a unique ID as well as it display at the end . > > > like:-- > > > this form was successfully data entered and it's unique id : 24521(random). > > > > > > can it possible in our XLSForm design , If it possible to can you please give me a sample so that i can understand clearly > > > > > > -- > > > 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/groups/opt_out. > > > > > >

Kanhu,

You can try using a calculate field with "position(..)" as the calculation
expression. See
https://code.google.com/p/opendatakit/issues/detail?id=822for an issue
where position(..) would give an error during form validation;
I think that this is fixed now in the latest ODK Collect release.

Best,

Chris

··· On Mon, Jul 22, 2013 at 12:09 AM, Kanhu wrote:

Thanks Yaw,

your feedback is always useful. thanks.....

My friend Yaw, how can i use this instanceID in my repeated type of
questions.

Example :
begin repeat
integer instanceID (value= 1) assume
..
...
....
end repeat

My requirement is to increment this instanceID value = 2 then 3,4,...
i want to use this instanceID as my key is it possible .
please reply

On Wednesday, March 6, 2013 8:43:13 PM UTC+5:30, Yaw Anokwa wrote:

Kanhu,

Each form already generates an instanceID. It's not particularly human

friendly, but you can show it to the user as the last prompt of the

form. Easiest way to do this is to have a prompt with the type "note".

Then in the label, put something like "Your instanceID is

${instanceID}".

Yaw

--

Need ODK help? Go to http://nafundi.com for custom development, form

design, implementation support, and user training for ODK.

On Wed, Mar 6, 2013 at 1:44 AM, Kanhu Bhol kanhu.gs@gmail.com wrote:

Dear All,

Will you please help me .!!

In my company requirement , i.e I have to create a field which
generate a unique ID as well as it display at the end .

like:--

this form was successfully data entered and it's unique id :
24521(random).

can it possible in our XLSForm design , If it possible to can you
please give me a sample so that i can understand clearly

--

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/groups/opt_out.

--
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/groups/opt_out.