Questions about coding and format
Hi, I've been playing around with the custom report templates and testing different things. I have gathered a couple of different questions for things I'd like some help on if possible.
1. When I export a custom report that has bullet points that are already in the MiradiShare text field, the exported report instead represents them as a numbered list. Every other dot point in a different text field later in the report then starts the numbering at the same point and continues too. I'm also struggling to get exported text to match the format of pre-built text in the custom report, even when they have the same formatting style. I'm not sure what's causing this or how to fix it. It could just be a Word issue, but I'd love some help if not.
2. If I export a report that pulls out the results from a results chain (e.g. in a table), they are not in the order represented in the diagram even when connected by arrows. What dictates the order of results when exported? Is there a way to order them (and activities) in some way?
-
Official comment
Hi Genevieve!
It's great to hear that you have been exploring the report templates.
Regarding #1, the formatting in Miradi Share doesn't always play nicely with formatting in Word template report outputs. I will check with our tech team to see if they have any additional suggestions, but in the meantime you have a few options, listed below. If other Miradi report template users have tips & tricks, please share!
- Include |striptags in the code used to call the data in each of your Miradi fields. This strips all the formatting from the Miradi data before including it in the report output. For example, for the name of a Goal you would include
{{ g.name|striptags }}
Then in the Word report template you could include specific instructions on how to format the output (bullets, numbers, etc).
- Don't format the data in Miradi if your priority is Word report outputs.
- As you noted, you can include more detailed instructions in Word in each section of the template identifying exactly how the bulletted/numbering format should look. You should be able to note whether the numbering always starts from '1' or picks up from the previous numbered set.
For #2, the most effective tool for organizing your results in report outputs is using a factor's Identifier (ID) field in Miradi. You can number your results in the order you want them to appear, then use the ID in the report template to sort your results in the report output. Note that you can add IDs to your results in the diagram, in the tracking trees, or in the editable REPORTS & DATA / Factors table. I find that adding IDs first in diagram view works best if you want to follow the path of the results chain, then edit as needed in the Factors table for a quicker update option.
Finally, you can now work in Miradi using your own AI agents. So far it's proving to be a great tool for generating report outputs, and editing your data along the way if needed :) If you'd like to test out using AI agents and the API during the beta phase, we'd be happy to provide access. Just let us know via the Support channel and we can provide access for you.
- Include |striptags in the code used to call the data in each of your Miradi fields. This strips all the formatting from the Miradi data before including it in the report output. For example, for the name of a Goal you would include
-
Hi again, Genevieve.
We did some additional digging into the formatting in your template and I will follow up via email with some specific guidance on how to improve the bullet/list formatting.
We are also making a change in Miradi to continue trying to improve the Miradi-Word formatting.
0
Please sign in to leave a comment.
Comments
2 comments