Changes

Jump to: navigation, search

Quick Views

273 bytes added, 22:00, 16 March 2018
no edit summary
Quick Views (previously called ''Quick reports'' but show up in "Available Gramps Update for Addons" as ''Quickreport'') are reports that are available in the context menu's of person, family, ...
They are easy to make by users, even with limited coding knowledge.
[[ImageFile:GrampsQuickViewReportEditQuickViewReport-40EditPerson-context-menu-popup-50.png|thumb|right|400px450px|Quick View context menu on Person Editor]]
==Introduction==
==Example 1==
===Code===
[[File:GrampsQuickViewReportQuickViewReport-40people-context-menu-popup-50.png|thumb|right|400px450px|Quick View context menu on Person View]][[File:Siblings quick report result.png|thumb|right|200px450px|Quick View Report example result output]]
How better than to learn something than using an example?
Create a python file named Siblings.py and add the following content:
{{out of date|stub}}<!--this code is old, needs to be changed and tested}}-->
<pre>
==Example 2==
A second example can be found in the Gramps code. See [httphttps://sourceforgegithub.netcom/pgramps-project/gramps/source/ciblob/master/tree/gramps/plugins/quickview/all_events.py all_events.py]. In this report, all events for a person are printed, and all events for a family. Two quick reports are hence registered, one for person, and one for family.
==Notes==
The possibilities are enormous. If you are an experienced programmer, there is no need to limit yourself to the simple database API. Also, if you make a real report, you can at the same time register a quick report with default settings.
 
See: [https://github.com/gramps-project/gramps/tree/master/gramps/plugins/quickview https://github.com/gramps-project/gramps/tree/master/gramps/plugins/quickview]
[[Category:Developers/General]]

Navigation menu