I want to limit the Products displayed in one form of my app to only those from one Program. Where and how can I see what a Program's ID is to that I can use it in the display logic? All HQ shows me is a Program's name, not ID.
CommCare Supply: How to figure out what a Program’s ID is
commcare
Related Topic
- Display the owner of a case in the case list
- CommCare – How to Use jr:itext Logic to Display Question Answers on a Label
- Explanation of form status filtering on mobile devices
- Forms are “unavailable” on mobile device
- How to get user’s location ID for use in form display logic in CommCare
- How to display how long it takes to complete a form in CommCare by displaying a now() function
- Conditional Display in CommCare – How to Show Questions Based on Lookup Table Answers
- Display condition error in repeat group controlled by user-input question
Best Answer
The easiest way to determine the program ID is open the program edit page on CommCare HQ and pull the ID from the URL (it is the long set of characters at the end of the url not including the slash).
A more general answer whenever you need to inspect or reference CommCare data being sent to a device is to view the user restore sent to the device. This would show you the XML-formatted list of
program
data (which is represented as a CommCare fixture) and show you the IDs you need associated with each program.