Drop Down List

Dear All,
we want to have a drop down list in our project, I will try to describe the scenario.
We have a questionnaire form which some of the questions are belongs to each other, we want to have a drop down list, which all the province name should be there, if we select a province from the list, in another dropdown list it should list all districts belong to the selected province and then if we select the district it will show all the clinics which are in the district and then by selecting the clinics two criteria should auto fill, clinics type and clinic code, we have seen the documentation about lookup table but we couldn't implement it
Is anybody implement like this before and help us?
Questions:

1- What is province name? (Drop Down)

2- What is district name? (Drop Down)

3- What is city or village name? (Drop Down)

4- What is clinic name? (Drop Down)

5- What is the type of clinic? (Text)

6- What is the code of clinic? (Text)

Regards,
Alireza

Hi Alireza,

We have use a similar application. Wa have used Lookup tables
https://confluence.dimagi.com/display/commcarepublic/Lookup+Tables to
filter out locations. For example when selecting a commune, the next
question will only show the villages under that specific commune. You can
try by using this link if you have any specific questions, I will give my
experience

Nabou

··· 2016-04-05 5:21 GMT+00:00 Ali Rezaee :

Dear All,

we want to have a drop down list in our project, I will try to describe
the scenario.

We have a questionnaire form which some of the questions are belongs to
each other, we want to have a drop down list, which all the province name
should be there, if we select a province from the list, in another dropdown
list it should list all districts belong to the selected province and then
if we select the district it will show all the clinics which are in the
district and then by selecting the clinics two criteria should auto fill,
clinics type and clinic code, we have seen the documentation about lookup
table but we couldn’t implement it

Is anybody implement like this before and help us?

Questions:

1- What is province name? (Drop Down)

2- What is district name? (Drop Down)

3- What is city or village name? (Drop Down)

4- What is clinic name? (Drop Down)

5- What is the type of clinic? (Text)

6- What is the code of clinic? (Text)

Regards,

Alireza

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

--

Ndèye Seynabou DIOUF
Responsable M&E à Tostan International
Tostan-Dakar, Sénégal
Bureau : 33 820 55 89
www.tostan.org http://www.tostan.org

Dear Nabou and All,

Thank you for your comments, I will go through the link, and back to you for any problem.

Regards,
Alireza
Jhpiego.org -Afghanistan

··· From: commcare-users@googlegroups.com [mailto:commcare-users@googlegroups.com] On Behalf Of Ndéye Seynabou Diouf Sent: Tuesday, April 05, 2016 2:00 PM To: commcare-users@googlegroups.com Subject: Re: Drop Down List

Hi Alireza,

We have use a similar application. Wa have used Lookup tableshttps://confluence.dimagi.com/display/commcarepublic/Lookup+Tables to filter out locations. For example when selecting a commune, the next question will only show the villages under that specific commune. You can try by using this link if you have any specific questions, I will give my experience

Nabou

2016-04-05 5:21 GMT+00:00 Ali Rezaee <Ali.Rezaee@jhpiego.orgmailto:Ali.Rezaee@jhpiego.org>:
Dear All,
we want to have a drop down list in our project, I will try to describe the scenario.
We have a questionnaire form which some of the questions are belongs to each other, we want to have a drop down list, which all the province name should be there, if we select a province from the list, in another dropdown list it should list all districts belong to the selected province and then if we select the district it will show all the clinics which are in the district and then by selecting the clinics two criteria should auto fill, clinics type and clinic code, we have seen the documentation about lookup table but we couldn’t implement it
Is anybody implement like this before and help us?
Questions:

1- What is province name? (Drop Down)

2- What is district name? (Drop Down)

3- What is city or village name? (Drop Down)

4- What is clinic name? (Drop Down)

5- What is the type of clinic? (Text)

6- What is the code of clinic? (Text)

Regards,
Alireza

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.commailto:commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
[Image removed by sender.]
Ndèye Seynabou DIOUF
Responsable M&E à Tostan International
Tostan-Dakar, Sénégal
Bureau : 33 820 55 89
www.tostan.orghttp://www.tostan.org

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.commailto:commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dear Nabou,

I have problem with lookup table in multiple languages, I have been face with this error

Xpath evaluation: type mismatch
Xpath nodeset has more than one node[instance(Provinces)/Provinces_list/Provinces[1]/name[1]; instance(Provinces)/Provinces_list/Provinces[1]/name[2]];
Cannot convert multiple nodest to a raw value. Refine path expression to match only one node.

I go through This linkhttps://confluence.dimagi.com/display/commcarepublic/Using+Lookup+Tables+with+Multiple+Languages!, please help.

Regards,
Alireza

··· From: Ali Rezaee Sent: Tuesday, April 05, 2016 3:33 PM To: commcare-users@googlegroups.com Subject: RE: Drop Down List

Dear Nabou and All,

Thank you for your comments, I will go through the link, and back to you for any problem.

Regards,
Alireza
Jhpiego.org -Afghanistan

From: commcare-users@googlegroups.commailto:commcare-users@googlegroups.com [mailto:commcare-users@googlegroups.com] On Behalf Of Ndéye Seynabou Diouf
Sent: Tuesday, April 05, 2016 2:00 PM
To: commcare-users@googlegroups.commailto:commcare-users@googlegroups.com
Subject: Re: Drop Down List

Hi Alireza,

We have use a similar application. Wa have used Lookup tableshttps://confluence.dimagi.com/display/commcarepublic/Lookup+Tables to filter out locations. For example when selecting a commune, the next question will only show the villages under that specific commune. You can try by using this link if you have any specific questions, I will give my experience

Nabou

2016-04-05 5:21 GMT+00:00 Ali Rezaee <Ali.Rezaee@jhpiego.orgmailto:Ali.Rezaee@jhpiego.org>:
Dear All,
we want to have a drop down list in our project, I will try to describe the scenario.
We have a questionnaire form which some of the questions are belongs to each other, we want to have a drop down list, which all the province name should be there, if we select a province from the list, in another dropdown list it should list all districts belong to the selected province and then if we select the district it will show all the clinics which are in the district and then by selecting the clinics two criteria should auto fill, clinics type and clinic code, we have seen the documentation about lookup table but we couldn’t implement it
Is anybody implement like this before and help us?
Questions:

1- What is province name? (Drop Down)

2- What is district name? (Drop Down)

3- What is city or village name? (Drop Down)

4- What is clinic name? (Drop Down)

5- What is the type of clinic? (Text)

6- What is the code of clinic? (Text)

Regards,
Alireza

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.commailto:commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
[Image removed by sender.]
Ndèye Seynabou DIOUF
Responsable M&E à Tostan International
Tostan-Dakar, Sénégal
Bureau : 33 820 55 89
www.tostan.orghttp://www.tostan.org

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.commailto:commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Ali,

I never had this kind of problems. But I think that the calculation
condition for the hidden value is not correct. So try the following steps:

  1. Verify that you have the same ID in "Edit Field" and "the lookup table
    question".
  2. Be sure to use this path: instance('project')/project_list/project[id =
    /data/district ]/project_name. in the calculation. You have to adapt it.
    You can find more in this link:
    Setup a Question with Filtered Choices - CommCare Public - CommCare Public

I hope this will help you but if someone else in the group can support, it
would be great.

Nabou

··· 2016-04-07 9:00 GMT+00:00 Ali Rezaee :

Dear Nabou,

I have problem with lookup table in multiple languages, I have been face
with this error

Xpath evaluation: type mismatch

Xpath nodeset has more than one
node[instance(Provinces)/Provinces_list/Provinces[1]/name[1];
instance(Provinces)/Provinces_list/Provinces[1]/name[2]];

Cannot convert multiple nodest to a raw value. Refine path expression to
match only one node.

I go through This link
https://confluence.dimagi.com/display/commcarepublic/Using+Lookup+Tables+with+Multiple+Languages!,
please help.

Regards,

Alireza

From: Ali Rezaee
Sent: Tuesday, April 05, 2016 3:33 PM
To: commcare-users@googlegroups.com
Subject: RE: Drop Down List

Dear Nabou and All,

Thank you for your comments, I will go through the link, and back to you
for any problem.

Regards,

Alireza

Jhpiego.org -Afghanistan

From: commcare-users@googlegroups.com [
mailto:commcare-users@googlegroups.com commcare-users@googlegroups.com] *On
Behalf Of *Ndéye Seynabou Diouf
Sent: Tuesday, April 05, 2016 2:00 PM
To: commcare-users@googlegroups.com
Subject: Re: Drop Down List

Hi Alireza,

We have use a similar application. Wa have used Lookup tables
https://confluence.dimagi.com/display/commcarepublic/Lookup+Tables to
filter out locations. For example when selecting a commune, the next
question will only show the villages under that specific commune. You can
try by using this link if you have any specific questions, I will give my
experience

Nabou

2016-04-05 5:21 GMT+00:00 Ali Rezaee Ali.Rezaee@jhpiego.org:

Dear All,

we want to have a drop down list in our project, I will try to describe
the scenario.

We have a questionnaire form which some of the questions are belongs to
each other, we want to have a drop down list, which all the province name
should be there, if we select a province from the list, in another dropdown
list it should list all districts belong to the selected province and then
if we select the district it will show all the clinics which are in the
district and then by selecting the clinics two criteria should auto fill,
clinics type and clinic code, we have seen the documentation about lookup
table but we couldn’t implement it

Is anybody implement like this before and help us?

Questions:

1- What is province name? (Drop Down)

2- What is district name? (Drop Down)

3- What is city or village name? (Drop Down)

4- What is clinic name? (Drop Down)

5- What is the type of clinic? (Text)

6- What is the code of clinic? (Text)

Regards,

Alireza

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

--

[image: Image removed by sender.]

Ndèye Seynabou DIOUF

Responsable M&E à Tostan International

Tostan-Dakar, Sénégal

Bureau : 33 820 55 89

www.tostan.org

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

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

--

Ndèye Seynabou DIOUF
Responsable Senior M&E à Tostan International
Tostan-Dakar, Sénégal
Bureau : 33 820 55 89
www.tostan.org http://www.tostan.org