|
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Thursday, June 30, 2016
Posts: 141,
Visits: 294
|
HelloI am still using the 13h version GenoPro with its HTML report generator. This is because it works and I spent time on modifying it slightly. I am not a programmer, so find it hard to do changes that work. I hope that this is the right section to post this request. There are two questions: 1) I have placed <Parameters _PathPictures="../pictures/" into the Config.xml so that all the pictures for my 8 family trees go into one folder. I would like to place all Images such as the home.gif, photo.gif, xTree.gif etc into the one folder instead of duplicating into 8 separate folders. I cannot find the entries for this. Could someone point me in the right direction? 2) When an individual is clicked on the left side of an HTML report, details about that individual show up on the right hand side defined by the individual.htm. However, it does not show any siblings. I would like the siblings listed like the parents are with links to those name. Could someone please give me some code I could copy and paste into individual.htm? I have looked at the code in individual.htm and I don't think I could program this in, that's why I need a location and code to paste in. Thanking you in anticipation Frank1
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, October 28, 2025
Posts: 4,886,
Visits: 22,799
|
First, you should upgrade to the latest Beta. Beta 15h has many improvements and is very stable.To store all your pictures in a folder, you have to specify a full path to _PathPictures. Any path starting with a dot (.) is considered a relative path. To display the other images (gender_M.gif, gender_F.gif, gno.gif) in a specific folder, you have to modifiy the HTML to fetch the images from that folder. I don't recommend this approach, because you won't be able to move/copy your report to another computer without having to modify the report. Those images take less than 50 KB, so it is not worth the savings. As for displaying the siblings to individual.htm, use Beta 15h and copy the code you want. My recommendation is to start with the build-in narrative report of Beta 15h, and modify what you want rather than start with your Beta 13h template and "upgrade" to Beta 15h.
Edited: Sunday, March 5, 2006 by
GenoProSupport
|
|
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Thursday, June 30, 2016
Posts: 141,
Visits: 294
|
Thank you for the reply.Regarding Images, I think you are right. I will leave it as it is. Regarding the addition of siblings to the individual.htm. I downloaded the 15h version. The individual.htm from version 15h is the same size and the same file date as the one from Version 13h. I created a report using 15h anyway, but it looks the same. There are no siblings shown. I am trying to add a section. I copied the Parents section and changed all the parents to siblings. They all worked except the line: Report.Write strNamePossessive & ParentsToBeVerb(collsiblings) If I change the Parents to Siblings I get an error during generation. Leaving it gives me "Eva's parents are and Suzanne Margaret" etc. Obviously it has some problems. Is there anyone who can help with this. As I said before, I prefer if someone could give me some code to pase in and tell me where to paste it. Thank you Frank1
|
|
|
|
|
Customers Important Contributors GenoPro version: 3.1.0.1
Last Login: Tuesday, November 25, 2025
Posts: 443,
Visits: 7,821
|
Frank1 (3/4/2006) When an individual is clicked on the left side of an HTML report, details about that individual show up on the right hand side defined by the individual.htm. However, it does not show any siblings. I would like the siblings listed like the parents are with links to those name.There are two issues here: - If there is no information on siblings when you click on an individual in the HTML report then either the Genogram has not been set up properly (are all the siblings connected with 'Link as Child' links to marriage line of the common parents?) or possibly the options set for privacy under 'Generate Report' have resulted in the siblings not being displayed (although the latest version should show either <living> or <unknown> for the missing siblings). There is one other possibility - there is an option under 'Privacy' in an individuals properties on the Genogram to 'Make Label / Exclude from Report'. If this is clicked then that individual is completely excluded from the report. Are the missing siblings listed as individuals in the HTML report? In that case I would suggest there is a fault in the way the Genogram is constructed.
- When you click on an individual on the left-hand side of the HTML report, the information is coded in a file of the form 'indnnnnn.htm' where nnnnn is a unique 5-digit identification number for each individual. The file 'individual.htm' which is installed as part of the GenoPro program only exists as far as I can see (I am no programmer!) to provide a background to the HTML report, and as such is not normally modified. The programming for the report is contained in the file Config.xml and the dictionary definitions in Dictionary.xml - it is these files which have to be modified to produce different 'skins' for the HTML report.
I hope this will provide some leads to solving your problem.
|
|
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Thursday, June 30, 2016
Posts: 141,
Visits: 294
|
HelloHoward53 The problem is quite different to what you are suggesting. The problem is, if you have a look at my previous post, it now shows a line that contains "parents are and " instead of "siblings are". Its not that the individual.htm is faulty, it that I don't know how to program it. Thanks Frank
|
|
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Thursday, June 30, 2016
Posts: 141,
Visits: 294
|
HelloWell, after a lot of trial and error, since I don't understand the GenoPro Report Generator programming language, I think I worked out what needed to be done. In the individual.htm I copied the collparents' section straight afterwards and modified to : set collsiblings = i.siblings.ToGenoCollection if collsiblings.count > 0 then Report.Write strNamePossessive & SiblingsToBeVerb(collsiblings) for iSibling = 0 to collsiblings.count - 1 set p = collsiblings(iSibling) if IsHidden(p) or p.exclude_from_report="Y" then Report.WriteText strSep&strHidden else Report.Write p.ToHtmlHyperlinkNN("Name") if iSibling < collsiblings.count - 1 Then Report.Write " " & LanguageDictionary("ConjunctionAnd") & " " end if end if next Report.WriteBr "" end if |
Then I copied the function 'ParentsToBeVerb' straight after and modified to: Function SiblingsToBeVerb(siblings) dim i,fFoundToBeVerb fFoundToBeVerb = false for i = 0 to siblings.count - 1 if siblings(i).is_dead = "Y" and not fFoundToBeVerb then if siblings.count = 1 then SiblingsToBeVerb = " sibling was " else SiblingsToBeVerb = " siblings were " end if fFoundToBeVerb = true end if next if not fFoundToBeVerb then if siblings.count = 1 then SiblingsToBeVerb =" sibling is " else SiblingsToBeVerb =" siblings are " end if end if End Function |
It appears to work now with a list of sibling names etc. Thank you very much for trying to help Frank1
Edited: Monday, March 6, 2006 by
GenoProSupport
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, October 28, 2025
Posts: 4,886,
Visits: 22,799
|
Frank1 (3/5/2006) [...] since I don't understand the GenoPro Report Generator programming language[...]GenoPro uses the standard VBScript language. You can also use JavaScript to generate a report, however you cannot mix both scripting languages within the same report. By the way, the tag is_dead has been deprecated. This tag has been replaced by IsDead. So instead of | if (siblings(i).is_dead = "Y") |
replace by Do the same for the tag exclude_from_report which has been replaced by IsLabel. If you read the Tag Definitions from the Tools menu, you will see what tags are available. By the way, the collection of parents, children or siblings should not include any individual excluded from the report. The tag exclude_from_report was used in Beta 13 as a temporary workaround.
Edited: Monday, March 6, 2006 by
GenoProSupport
|
|
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Thursday, June 30, 2016
Posts: 141,
Visits: 294
|
Thanks for that advice.Since I am still not familiar with GenoPro report generator programming, I would like to ask one more point. I would like to modify the following lines: if siblings.count = 1 then SiblingsToBeVerb = " sibling is " else etc whith something that will be more specific such as the following, if siblings.count = 1 then if siblings(i).gender = "M" then SiblingsToBeVerb = " brother is " else SiblingsToBeVerb = " sister is " end if else etc Except that siblings(i).gender = "M" doesn't work, and doesn't give an error message either. I've tried all sorts of other combinations without luck. Could you please help with the right syntax? Thank you Frank1
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, October 28, 2025
Posts: 4,886,
Visits: 22,799
|
Try | if siblings(0).gender = "M" then |
|
|
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Thursday, June 30, 2016
Posts: 141,
Visits: 294
|
Tried it. No, it doesn't work.Under those conditions, I think the value of (i) would be (0) anyway. It's like a puzzle. Thanks Frank1
|