Skip to content

Commit

Permalink
Adding section to the Getting Started documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin Mullaney committed Nov 16, 2015
1 parent 06ba6b9 commit 6ec4ff6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
Binary file added docs/source/images/rapidpro_send_message.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/rapidpro_split.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/tracpro_calculated.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/tracpro_poll_flows.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 30 additions & 4 deletions docs/source/users/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ There won't be much to see until you tell TracPro about which flows and groups t
* Navigate to **Administration** > **Reporter Groups** and click **Select** to select which contact groups in RapidPro will be used as reporter groups in TracPro
* Navigate to **Administration** > **Regions** and click **Select** to select which contact groups in RapidPro will be used as regions in TracPro. This will trigger a fetch of all contacts from those groups.

Management Tasks
------------------

Fetching old runs
------------------

Expand All @@ -55,4 +52,33 @@ If a new poll is added, TracPro will only track runs made after the poll has bee
$ ./manage.py fetchruns 3 --days=2


**One should use this command with caution as it could potentially try to download a very high number of runs**
**One should use this command with caution as it could potentially try to download a very high number of runs**

Displaying Calculated Values on Tracpro
---------------------------------------
You can display values that are calculated from user responses on Tracpro. We reference an example flow that uses a calculated variable from results of a `structured message form <http://knowledge.rapidpro.io/knowledgebase/articles/716520-split-by-message-form>`_.

**In RapidPro**: After you have built your flow to collect variables that you wish to use for the calculation, add a “Split by Expression” step.

Save the result as a particular variable name, for example `Calculated Variable`.
Write the expression to calculate the variable, for example `@(flow.girl_leaders / flow.girl_participants * 100)`. You have access to basic math, `expressions <http://knowledge.rapidpro.io/knowledgebase/topics/88968-syntax-guide>`_, and `variables <http://knowledge.rapidpro.io/knowledgebase/articles/595248-variables-in-a-flow>`_.

.. image:: ../images/rapidpro_split.png

**In RapidPro**: You can use the calculated variable like any other variable, for example in a response to the user.

.. image:: ../images/rapidpro_send_message.png

**In TracPro**: To view on Tracpro, ensure that your poll has been added through the Poll Flows chooser.

.. image:: ../images/tracpro_poll_flows.png

**In TracPro**: Your calculated variable will be available as a Question on Tracpro. You can view and use it exactly as you would any other Question.

- To view the numeric responses, including those for the calculated variable:
- View the Poll.
- Click on the “Dates” tab.
- Select the date of the poll you wish to see.
- Click on the “Responses” tab.

.. image:: ../images/tracpro_calculated.png

0 comments on commit 6ec4ff6

Please sign in to comment.