GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




How to customise your report

Click to view RSS...
Author Tailor your report without using a custom report skin _ edited 2015.04.02
Posted Saturday, March 22, 2008 - Post #21120
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 4 hours ago
Posts: 3,347, Visits: 25,666
Options for customising the reports generated from GenoPro have been developed and extended over some considerable time. It has been difficult for the average user to find all the information required to enable them to customise their reports as they require. I am therefore attempting to put all the information in one place, namely the attached .gno file.

There are four basic mechanisms to help you customise your report without resorting to editing the scripts in a custom version of the Report skin.

  1. General appearance of HTML Narrative report. e..g changing background, fonts and colours. This is achieved using a custom HTML CSS 'stylesheet'. Knowledge of HTML styling is required here. The additional stylesheet is specified using a config parameter (see 4 below).

  2. Adding extra HTML code to the report pages. This can be achieved using 'Custom Markup tags' - a series of special codes and text you can add to data fields in your .gno file.
    This is perhaps the most powerful way to customise your report.  For example add an extra collapse/expand section to your report, adding Flash or mp4 video clips, extra images, directly inject HTML code, add new narrative phrases etc.  See attached ,gno for full list and documentation.  The '4. Examples' GenoMap in the report generated from this file illustrates most of the available tags.  see  http://familytrees.genopro.com/genome/CustomMarkupExample/default.htm

  3. Using Custom Tags in your .gno file to add extra detail and modify the behaviour of the script generating the report. You can group the tags into one or more 'Custom Tag Layouts'
    All Custom Tags will be included in the Narrative and Descendants Reports unless the name starts with an underscore '_'. Alternatively you can exclude all Custom Tags in a particular Custom Tag Layout by prefixing the Layout Description with an underscore '_'.
    By default your custom tag data items will be shown in a table in the Narrative Report, with a separate table for each layout. Column 1 holds the Tag display names and Column 2 the tag contents with one tag per row. Alternatively you can create a phrase template for each of your Custom Tag Layouts so that the data items are reported as a narrative phrase. These 'phrase templates' are constructed using GenoPro's phrase generator syntax and can be created and tested using the Phrase Editor on GenoPro's Tools menu.
    The parameters 0-9 for the phrase are fixed as follows:
      0=name, 1=Personal pronoun, 2=Relative Pronoun, 3=Objective pronoun, 4=Is Alive?/Is Extant/Are Together? 5=<, 6=>, 7=&, 8=', 9="  (params 5-9 allow html tags, attributes and entities within the phrase
    Whilst parameters 10 onwards are the Custom Tag values in the order they are defined in the layout.

    An example will make this clearer. The HarryPotter sample .gno included with GenoPro (under Help/Sample Files) has the following Custom Tags definition for Individuals
    http://support.genopro.com/Uploads/Images/71b2bbb3-83ba-41f6-bd13-be2f.png

    We can construct a sample phrase template:
    {\U}[[{!2} blood purity [{?4}is][{!}was] {10h}[{?11} and ]][{!1} held allegiance to {11h}].][[{?10|11}  ]{!0} was in {13h} house at Hogwarts.][[{?10|11|13}  ]{12h} played {!0} in the films.]
    N.B. The 'h' suffix is used on the custom tag arguments (e.g. 10h, 11h etc.) because their content is already HTML encoded.
    This template could be stored in the Dictionary but an alternative is to store it in a Document Custom Tag. In either case the template is assigned a name consisting of the prefix PhCT_ followed by the layout name with spaces removed. So in this case the name is PhCT_CustomTags because the layout Name is Custom Tags.
    To store in a Document Custom Tag first create a layout to hold all such tags. i.e. click Tools, Tag Editor and then click the Document tab. Add a new layout called say Custom Phrases and add a tag named PhCT_CustomTags. Enter a description of your choice.  Click OK to close the dialog.
    Now click File/Properties and you should see a new Custom Phrases tab. Click it and enter the template into the PhCT_CustomTags field.
    http://support.genopro.com/Uploads/Images/3cb824c0-64a6-4725-a545-d22a.png

    We can then paste this phrase template into the phrase editor and test it by supplying values for each of the parameters (See Phrase Arguments). Note how the phrase editor tests every combination of optional parameters.

    http://support.genopro.com/Uploads/Images/3ad2d396-c9f1-4ef6-bd3e-e38e.png

    If we then generate the Report we see the phrase under Additional Information
    http://support.genopro.com/Uploads/Images/c0c05e11-03b5-43f7-a9ee-4fcc.png
  4. Amending configuration parameters. This can be done at the time the report is generated by displaying the 'View and Amend Configuration Parameters' dialog when prompted. Alternatively the required values can be preset in the Document Custom Tags in your .gno file.
The attached file has more documentation plus examples and all the Custom Tags used in the reports already defined  and described and grouped into a 'Report Options' tab for each object type. Download the .gno file and use GenoPro 'Tools/Tag Editor' menu option to explore these. The Document Custom Tags are also defined and grouped under a separate tab for each report type. All Custom Tag definitions can be easily copied to your own .gno files. Open the attached .gno file for more information.

Update 2008/03/25 attached .gno updated
Update 2008/04/06 info re custom tag phrases added
Update 2008/04/18 attached .gno updated with JC's recommendations.
Update 2008/06/09 included Custom Msrkup documentation.
Update 2009/02/28 major revision of documentation in attached file and added moexamples
Update 2015/04/02 added movie mp4 to custom markup tags and minor edits to this post and documentation


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


CustomReport.gno (500 views, 18.37 KB)

Edited: Wednesday, September 2, 2015 by genome

Threaded View

Expand / Collapse
Threaded View
Forum Post How to customise your report By genome ( Saturday, March 22, 2008 )
Forum Post How do you add HTML in the Description Section of the Document Tab... By BuckWheatus ( Tuesday, January 12, 2021 )
Forum Post You simply need to prefix your own html in the Description field with... By genome ( Wednesday, January 13, 2021 )
Forum Post Thank you appleshaw I have it working now Thanks Frank1... By Frank1 ( Wednesday, April 2, 2008 )
Forum Post The documentation in the .gno attached to my first post has at long... By genome ( Saturday, February 28, 2009 )
Forum Post I try to create my own phrases in Narrative Report using PhCT_... By layosh1 ( Tuesday, November 1, 2011 )
Forum Post You are almost there with your phrase. I think what you need is... By genome ( Tuesday, November 1, 2011 )
Forum Post It doesn't work - html link was not created: By layosh1 ( Tuesday, November 1, 2011 )
Forum Post sorry, must have forgotten to engage my brain today! To make this... By genome ( Tuesday, November 1, 2011 )
Forum Post Further to my last post I have 'engaged my brain' to find a more... By genome ( Tuesday, November 1, 2011 )
Forum Post It looks much better, but... :-) Phrase is {\br}{\U}{!0}[{?2}... By layosh1 ( Tuesday, November 1, 2011 )
Forum Post You are right of course, brain not fully engaged :blush: No... By genome ( Tuesday, November 1, 2011 )
Forum Post Now it works perfect, good job :smooooth: Thanks By layosh1 ( Tuesday, November 1, 2011 )
Forum Post I would like to take advantage or Ron's good work but find it... By Frank1 ( Tuesday, April 1, 2008 )
Forum Post .gno files, now, are xml files saved using zip compression (I think... By appleshaw ( Tuesday, April 1, 2008 )
Forum Post Thanks Ron, yes I guessed this feature is still under development and... By jcguasp ( Monday, March 24, 2008 )
Forum Post I added the tooltip to display the custom tag description in the... By GenoProSupport ( Tuesday, March 25, 2008 )
Forum Post This feature looks interesting. However, brings me to these questions... By jcguasp ( Sunday, March 23, 2008 )
Forum Post Perhaps I should have mentioned that this is 'work in progress' :;):... By genome ( Monday, March 24, 2008 )


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse