Merlin – creating your own report templates

We have explained in previous posts, what Merlin report templates are and how to modify those within Merlin’s application package.

Such changes work for you on your Mac, but won’t be available for other Merlin users in your company. They will also be reseted the next time you update your Merlin version. To create a report template of your own to transfer to others and to be independent of updates resetting Merlin’s application package, you need to work a bit differently. This means, you do the same changes but create first a new report template of your own.

Creating a new own report based on an existing Merlin project template

  • Locate first your Merlin application package
  • ctrl + click it and select “Show Package Contents”
  • Navigate to the folder /Contents/PlugIns
  • Locate the .mrept package you want to duplicate
  • ctrl + click it and select “Duplicate”
  • Move this new file into the following path in your home directory ~/Library/Application Support/Merlin/Reports
  • Remove the ” copy” out of the packages’ name
  • ctrl + click the newly inserted template and select “Show Package Contents”
  • Open the ‘info.plist’ under /Contents by a plist editor or a text editor
  • Check the string value for the key CFBundleIdentifier and modify its last item. For example: If having duplicated the “NextDueActivities.mrept” and see in the info.plist the following string for CFBundleIdentifier
    <string>net.projectwizards.reports.NextDueActivitiesReport</string>

    Just enter now your own bundle identifier. Let’s say

    <string>net.projectwizards.reports.MyCompanyNextDueActivities</string>
  • Now you can rename your report template .mrept package to MyCompanyNextDueActivities.mrept
  • Edit the “InfoPlist.strings” in your language folder to specify another title and description to your template (work as explained here but open the file from your new template located in the ~/Library/Application Support/Merlin/Reports  folder)
  • Quit Merlin if it runs and restart it.

 


Additional step for python and wbl report templates:

A report based on python and wbl also contains one or more pairs of .py and .wbl files within the following path /Contents/Resources/

While the last item of the string for CFBundleIdentifier refers to the name of the package and the preferences for this report , in the info.plist of python/wbl report templates there is also another key NSPrincipalClass referring the names of the scripts and also the class it should load.

That means, you need to additionally rename the string for NSPrincipalClass in the index.plist (to make sure your report calls the classes defined in your template) AND the py and wbl files contained in your report template package…

For example:

You duplicated the CostDistribution.mrept template and want to name it MyCompanyCostDistribution.mrept:

  • You have already edited the last item of CFBundleIdentifier
  • Renamed the report template package.
  • You edit the string for NSPrincipalClass to MyCompanyCostDistribution…

  • And rename the files MERCostDistribution.py, MERCostDistribution.wbl to  MyCompanyCostDistribution.py and MyCompanyCostDistribution.wbl

  • Open the MyCompanyCostDistribution.py in a text editor and do a search and replace for MERCostDistribution to MyCompanyCostDistribution

 

Localize a Merlin report template in your own language

See next blog post…


 

 

 

22 thoughts on “Merlin – creating your own report templates

  1. Pingback: Merlin – Edit description or report template names » MacPM

  2. Pingback: Merlin – Localize a Merlin report template » MacPM

  3. Pingback: Merlin – Adding an option in a report template » MacPM

  4. Pingback: Merlin – Adding an option in a python/wbl report template » MacPM

  5. Pingback: Merlin – adding a property into an existing report » MacPM

  6. Pingback: Merlin – Adding a property into an existing python template » MacPM

  7. Pingback: Merlin – do a bit of magic in reports » MacPM

  8. Pingback: Merlin – do a bit of magic in reports – part III » MacPM

  9. Pingback: MERLIN – DO A BIT OF MAGIC IN REPORTS – PART VII » MacPM

  10. Pingback: Merlin – Do a bit of magic in reports – Part VIII » MacPM

  11. Pingback: Merlin – Do a bit of magic in reports – Part IX » MacPM

  12. Pingback: Merlin – Do a bit of magic in reports – PART XIX » MacPM

  13. Pingback: Merlin – Do a bit of magic in reports – PART XXI » MacPM

  14. Pingback: MERLIN – DO A BIT OF MAGIC IN REPORTS – PART XII » MacPM

  15. Pingback: Merlin – Do a bit of magic in reports – part II » MacPM

  16. Pingback: Merlin – Do a bit of magic in reports – PART XXII » MacPM

  17. Pingback: Merlin - Do a bit of magic in Merlin reports – PART XX » MacPM

  18. Pingback: Merlin – Do a bit of magic in Merlin reports – PART XXII » MacPM

  19. Pingback: Merlin – Do a little bit of magic in Merlin reports – part XXVI | MacPM

  20. Pingback: Merlin – Do a little bit of magic in Merlin reports – part XXIV | MacPM

  21. Pingback: Merlin – adding a property into an existing report | MacPM

  22. Pingback: Merlin – Localize a Merlin report template | MacPM

Comments are closed.