Include mobile worker info in form export

Hi,

I'm attempting to include mobile worker info like First Name, Last Name and
custom data fields in the form they submitted. I've attempted to use hidden
value with calculated field on the form but facing the error saying that
the xpath is not returning any data.

The requirement is to include these mobile worker info when the user export
the forms. So is there any other way without having to add these info to
the form definition, please let me know.

Thanks in advance!

Hello Nay,

Please read the Custom User Data
https://confluence.dimagi.com/display/commcarepublic/Custom+User+Data?src=search
page to see how to use mobile worker information in a form.

Kind Regards

Ismaila

··· *______________________________________________* *Ismaila DIENE*

Field Technician

Dimagi, West Africa

m: + <%28617%29%20596%206243>221 7814 78314 / +221 7601 01633
f: + <%28617%29%20596%206243>221 33 820 7375

skype: isaack007
web: http://www.dimagi.com/


On Wed, Apr 6, 2016 at 9:07 AM, nay min nayminlwin@gmail.com wrote:

Hi,

I'm attempting to include mobile worker info like First Name, Last Name
and custom data fields in the form they submitted. I've attempted to use
hidden value with calculated field on the form but facing the error saying
that the xpath is not returning any data.

The requirement is to include these mobile worker info when the user
export the forms. So is there any other way without having to add these
info to the form definition, please let me know.

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Ismaila,

I've already tried as stated in the tutorial. It only shows as "Unknown"
instead of the actual value I've set. For e.g. I have a user called demo1
and I've set it's custom field "position" as "supervisor. In the hidden
field > calculated value, the xpath is *if(count(instance('commcaresession')/session/user/data/position)

0, instance('commcaresession')/session/user/data/position, "Unknown")*

Is there something I'm missing?

Thanks for your help.

··· On Wednesday, 6 April 2016 18:11:38 UTC+6:30, Ismaïla Diene wrote: > > Hello Nay, > > Please read the Custom User Data > > page to see how to use mobile worker information in a form. > > Kind Regards > > Ismaila > > *______________________________________________* > *Ismaila DIENE* > > Field Technician > > Dimagi, West Africa > > m: +*221 7814 78314 / +221 7601 01633* > f: +*221 33 820 7375* > > skype: isaack007 > web: http://www.dimagi.com/ > ______________________________________________ > > On Wed, Apr 6, 2016 at 9:07 AM, nay min <naymi...@gmail.com > wrote: > >> Hi, >> >> I'm attempting to include mobile worker info like First Name, Last Name >> and custom data fields in the form they submitted. I've attempted to use >> hidden value with calculated field on the form but facing the error saying >> that the xpath is not returning any data. >> >> The requirement is to include these mobile worker info when the user >> export the forms. So is there any other way without having to add these >> info to the form definition, please let me know. >> >> Thanks in advance! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi Nay,

Can you try sync your phone? If that doesn't work, can you let us know if
removing and re-installing your application fixes it?

Thanks,
Sheel

··· On Thu, Apr 7, 2016 at 4:49 AM, nay min wrote:

Hi Ismaila,

I've already tried as stated in the tutorial. It only shows as "Unknown"
instead of the actual value I've set. For e.g. I have a user called demo1
and I've set it's custom field "position" as "supervisor. In the hidden
field > calculated value, the xpath is *if(count(instance('commcaresession')/session/user/data/position)

0, instance('commcaresession')/session/user/data/position, "Unknown")*

Is there something I'm missing?

Thanks for your help.

On Wednesday, 6 April 2016 18:11:38 UTC+6:30, Ismaïla Diene wrote:

Hello Nay,

Please read the Custom User Data
https://confluence.dimagi.com/display/commcarepublic/Custom+User+Data?src=search
page to see how to use mobile worker information in a form.

Kind Regards

Ismaila

______________________________________________
Ismaila DIENE

Field Technician

Dimagi, West Africa

m: +221 7814 78314 / +221 7601 01633
f: +221 33 820 7375

skype: isaack007
web: http://www.dimagi.com/


On Wed, Apr 6, 2016 at 9:07 AM, nay min naymi...@gmail.com wrote:

Hi,

I'm attempting to include mobile worker info like First Name, Last Name
and custom data fields in the form they submitted. I've attempted to use
hidden value with calculated field on the form but facing the error saying
that the xpath is not returning any data.

The requirement is to include these mobile worker info when the user
export the forms. So is there any other way without having to add these
info to the form definition, please let me know.

Thanks in advance!

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah