Custom Group Data

Hi,

How can I get the group data into forms?

I can use instance(‘commcaresession’)/session/user/data/training_level to
get user data.

Much Thanks in Advance

Tim

Hey Tim,

Funny, I actually didn’t know this feature existed until you pointed it out

  • so thanks!

It looks like the group data just comes down as a fixture with id “
user-groups” and then you’d just instantiate and traverse it as you would a
normal fixture

In the future you can take a look at what your restore payload, including
fixtures, looks like following the template here
https://confluence.dimagi.com/display/commcarepublic/Offline+OTA+Restore.

Best,
Will

··· On Fri, Oct 24, 2014 at 11:21 AM, Tim Butler wrote:

Hi,

How can I get the group data into forms?

I can use instance(‘commcaresession’)/session/user/data/training_level to
get user data.

Much Thanks in Advance

Tim


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