We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+Registration+Data)
we have created "emp-1" for required users and used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
That statement looks like it should work. To clarify for my understanding:
there are users whom you have set this user registration data "emp" to be 1
but the form still is not showing up for them? Are there any users for whom
this value isn't set or is set to 0 but the form is showing up for them?
Thanks,
Will
···
On Wed, Jul 9, 2014 at 4:25 AM, Aman Sen wrote:
Hi
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some of
them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
Thanks
Regards
Aman
···
On 9 Jul 2014 19:01, "William Pride" wrote:
Aman,
That statement looks like it should work. To clarify for my understanding:
there are users whom you have set this user registration data "emp" to be 1
but the form still is not showing up for them? Are there any users for whom
this value isn't set or is set to 0 but the form is showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
The display condition you listed looks a bit incorrect. If you want the
form to only show for users where emp is equal to 1, please use the
following:
count(instance('commcaresession')/session/user/data/emp)>0 and
instance('commcaresession')/session/user/data/emp = '1'
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Regards,
Sheel
···
On Wed, Jul 9, 2014 at 10:40 AM, Aman Sen wrote:
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some of
them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
That statement looks like it should work. To clarify for my
understanding: there are users whom you have set this user registration
data "emp" to be 1 but the form still is not showing up for them? Are there
any users for whom this value isn't set or is set to 0 but the form is
showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
The display condition you listed looks a bit incorrect. If you want the
form to only show for users where emp is equal to 1, please use the
following:
count(instance('commcaresession')/session/user/data/emp)>0 and
instance('commcaresession')/session/user/data/emp = '1'
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some of
them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
That statement looks like it should work. To clarify for my
understanding: there are users whom you have set this user registration
data "emp" to be 1 but the form still is not showing up for them? Are there
any users for whom this value isn't set or is set to 0 but the form is
showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
···
On Thu, Jul 10, 2014 at 12:15 AM, Sheel Shah wrote:
Hey Aman,
The display condition you listed looks a bit incorrect. If you want the
form to only show for users where emp is equal to 1, please use the
following:
count(instance('commcaresession')/session/user/data/emp)>0 and
instance('commcaresession')/session/user/data/emp = '1'
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some of
them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
That statement looks like it should work. To clarify for my
understanding: there are users whom you have set this user registration
data "emp" to be 1 but the form still is not showing up for them? Are there
any users for whom this value isn't set or is set to 0 but the form is
showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
Did you follow these steps:
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Please let me know if you need additional guidance on clearing user data.
Its probably easiest to remove and reinstall the application.
If that doesn't work, can you please Report an Issue from your project and
we can take a look?
Thanks,
Sheel
···
On Thu, Jul 10, 2014 at 1:13 AM, Aman Sen wrote:
Hi
This even does not help. We have same problem
regards
aman
On Thu, Jul 10, 2014 at 12:15 AM, Sheel Shah sshah@dimagi.com wrote:
Hey Aman,
The display condition you listed looks a bit incorrect. If you want the
form to only show for users where emp is equal to 1, please use the
following:
count(instance('commcaresession')/session/user/data/emp)>0 and
instance('commcaresession')/session/user/data/emp = '1'
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some of
them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
That statement looks like it should work. To clarify for my
understanding: there are users whom you have set this user registration
data "emp" to be 1 but the form still is not showing up for them? Are there
any users for whom this value isn't set or is set to 0 but the form is
showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and
used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
Yes Sheel I had followed every steps . I clear user data by menu setting.
I thing that is the way what we should do.
But don't know some features do not worj for us.
Regards
Aman
···
On 10 Jul 2014 20:35, "Sheel Shah" wrote:
Hi Aman,
Did you follow these steps:
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Please let me know if you need additional guidance on clearing user data.
Its probably easiest to remove and reinstall the application.
If that doesn't work, can you please Report an Issue from your project and
we can take a look?
On Thu, Jul 10, 2014 at 12:15 AM, Sheel Shah sshah@dimagi.com wrote:
Hey Aman,
The display condition you listed looks a bit incorrect. If you want the
form to only show for users where emp is equal to 1, please use the
following:
count(instance('commcaresession')/session/user/data/emp)>0 and
instance('commcaresession')/session/user/data/emp = '1'
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some
of them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
That statement looks like it should work. To clarify for my
understanding: there are users whom you have set this user registration
data "emp" to be 1 but the form still is not showing up for them? Are there
any users for whom this value isn't set or is set to 0 but the form is
showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and
used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.
Did you follow these steps:
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Please let me know if you need additional guidance on clearing user data.
Its probably easiest to remove and reinstall the application.
If that doesn't work, can you please Report an Issue from your project
and we can take a look?
On Thu, Jul 10, 2014 at 12:15 AM, Sheel Shah sshah@dimagi.com wrote:
Hey Aman,
The display condition you listed looks a bit incorrect. If you want
the form to only show for users where emp is equal to 1, please use the
following:
count(instance('commcaresession')/session/user/data/emp)>0 and
instance('commcaresession')/session/user/data/emp = '1'
Also, you may need to clear user data for existing phones, and then
re-login as the new user to force the phone to download the updated custom
registration data.
Thanks for prompt replying. But it is not opening for them as well.
Issue is that we have 30 users with registration value emp=1 and some
of them have already filled the form before setting value and some of them
not. Not it is opening to them who has already administrated but not
opening to them who has not administrated.
That statement looks like it should work. To clarify for my
understanding: there are users whom you have set this user registration
data "emp" to be 1 but the form still is not showing up for them? Are there
any users for whom this value isn't set or is set to 0 but the form is
showing up for them?
We are trying to filter one form by user. As suggested in ( https://help.commcarehq.org/display/commcarepublic/Custom+
Registration+Data) we have created "emp-1" for required users and
used if(count(instance('commcaresession')/session/user/data/emp)>0,
instance('commcaresession')/session/user/data/emp,0)=1 in display condition
of that particular form but now it only is displaying that form for those
users who have already filled that form but it is not displaying for those
user who is recently joined.