|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
could you run a report (and please excuse me if this is just completely of base) that would let get me a list of every LAST name in my tree and pump it out to a .txt file or something like that?
Edited: Monday, September 19, 2005 by
GenoProSupport
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 4,887,
Visits: 22,770
|
In the future, GenoPro will have better support for file I/O. In the meantime, you can do the following: 1. Create a text file in your skin folder, say "FamilyNames.txt" 2. Insert the following entry in Config.xml to feed the file FamilyNames.txt to the report generator:
3. Insert the following code in the file FamilyNames.txt:
<%[ ' Use a string dictionary to count the frequency of each last name. ' Counting the last names ensures each entry is unique. ' We could use the ObjectRepertory, but the StringDictionary is faster. Set oStringDictionaryNames = Util.NewStringDictionary() For Each i In Individuals oStringDictionaryNames.Add i.Name.Last Next
' Sort the dictionary from the largest to the smallest number ' to have the most popular last name at the top of the list oStringDictionaryNames.SortByCounter oStringDictionaryNames.Reverse iNameLast = oStringDictionaryNames.Count - 1 For iName = 0 To iNameLast strNameLast = oStringDictionaryNames.Key(iName) If (strNameLast <> "") Then Report.WriteLn strNameLast End If Next ]%>
|
PS: You may get a message "The template does not contain any charset encoding... assuming UTF-8...". To remove this message, use Notepad and save the file FamilyNames.txt using the UTF-8 encoding.
Edited: Monday, September 19, 2005 by
GenoProSupport
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
awsome
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
do you mean skins or skins/english becuase that is where the xml files are
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 4,887,
Visits: 22,770
|
You should have a folder named "MySkin" where you make your modifications. You simply copy the content of "English" into anothe folder named "MySkin". The "English" folder gets upgraded each time you upgrade GenoPro. If you are not sure; make backup(s), so you can recover any lost file.
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.0.1.5
Last Login: Saturday, March 14, 2020
Posts: 365,
Visits: 3,680
|
I found this very usefull as I put a names list (without links) on the first page of my web site and it was complicated to get it there before. Now I will have a ready made list!
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 4,887,
Visits: 22,770
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.0.1.5
Last Login: Saturday, March 14, 2020
Posts: 365,
Visits: 3,680
|
Thanks Dan, but I found that this system was easier to set up than the one indicated by your link:
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
sorry im removing this
Edited: Sunday, April 16, 2006 by
crash893
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.0.1.5
Last Login: Saturday, March 14, 2020
Posts: 365,
Visits: 3,680
|
' Sort the dictionary from the largest to the smallest number ' to have the most popular last name at the top of the list oStringDictionaryNames.SortByCounter oStringDictionaryNames.Reverse iNameLast = oStringDictionaryNames.Count - 1 For iName = 0 To iNameLast strNameLast = oStringDictionaryNames.Key(iName) If (strNameLast <> "") Then Report.WriteLn strNameLast End If Next
|
How can I get the names into Alfabetical order instead of in order of quantity ?
Edited: Monday, December 12, 2005 by
GenoProSupport
|