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

GenoPro Support Forum




Creating a contact list.....

Click to view RSS...
Author Creating a contact list.....
Posted Tuesday, June 28, 2005 - Post #7041
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
I managed to write the contact details on the Individual report. However, now I want to go a little further and create
- A report with a contacts:= a contact list
- List with all birthdays - a birthday calendar

I've seen that a lot of the reports that list data take a repertory from the session (like for example oRepertoryIndividuals), however I don't see this repertory being build up in the other reports, hence I assume that the Repertory is predefined.

Can you help me whether there is a predefined Repertory for contacts and/or whether the oRepertoryIndividuals repertory contain birthday info?

If the answer above is no, do I need to traverse the collection, which is probably slower or should I change the Individual.htm and create the Repertories?

Thanks in advance,

rgds,
Ronald
Posted Thursday, August 18, 2005 - Post #7042
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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
I did not had time to write the templates for the contact. In fact, the contacts will be completed in
Beta 17
. In Beta 17, the Contact record will be interacting with the Occupancy record.


Edited: Monday, June 26, 2006 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7043
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
I did not had time to write the templates for the contact. In fact, the contacts will be completed in
Beta 17
. In Beta 17, the Contact record will be interacting with the Occupancy record.


Dan, what is the reason that I can write the contents of the contact object when I am going through the Individuals collection and not when I am using the Contacts collection?

I used the following:


Set collContacts = ReportGenerator.Document.Collection("Contacts")
If (Not Util.IsNothing(collContacts)) Then
For Each cont In collContacts
Report.WriteLn "Email: " & cont.email & "<br/> "
Next
End If


and got:

Error at line 30 (contacts.htm) : Object doesn't support this property or method: 'cont.email'
Microsoft VBScript runtime error 800A01B6


Where as if I use in the Individual.htm:


Set collContacts = i.contacts.ToGenoCollection
if collContacts.count > 0 then
Report.Write "<br /><a name='Contacts'></a><b>Contact Informatie</b><br />"
strPrefix=strName
strRelative=strName&"'s"
for each c in collContacts
WriteTableBegin
' I am using the comment fied currently to store the address
Report.WriteT3 "<ul>Adres: ",c.comment
Report.WriteBr ""
Report.WriteT3 "Tel.: ",c.telephone
Report.WriteBr ""
Report.WriteT3 "Email: ",c.email
Report.WriteBr ""
Report.Write "WWW: <a href="&c.homepage&">"&c.homepage&"</a>"
Report.Write "</ul>"
WriteTableEnd
next
end if


It works like a charm...

Should I be traversing the Individual Collection until Beta 16?

Can you please also answer my question about (predefined) repertories?

Thanks in advance,
Kind regards,
Ronald


Edited: Monday, June 26, 2006 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7044
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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
Let me check this. Ideally, the following code should work. In fact, you should use the method WriteT3Br.

For Each c In Contacts
Report.WriteT3Br "Email: ", c.email
Next


Edited: Monday, June 26, 2006 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7045
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
Let me check this. Ideally, the following code should work. In fact, you should use the method WriteT3Br.

For Each c In Contacts
Report.WriteT3Br "Email: ", c.email
Next


IT DOES WORK... BUT WHY?

I am trying to understand the report writer and, honestly, this doesn't make it any easier... :-?

So Contacts is a predefined collection. I don't need to get the collection with:

Set coll = ReportGenerator.Document.Collection("Contacts")

???

Anyway, I'll continue... right now, but honestly, I starts to become more guessing than knowing, which, as a professional programmer, I really hate :-)

rgds,
Ronald


Edited: Monday, June 26, 2006 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7046
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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
The documentation is incomplete. You can always access a collection using the long format if you don't know the collection name at compile-time:
strCollection = "Contacts"
Set coll = ReportGenerator.Document.Collection(strCollection)

You have every right to be confused. The ReportGenerator.Document.Collection("Contacts") always returns a collection of Pictures. I hardcoded it to pictures for testing purpose and forgot to finish the code. If you run the following code, you will see each object class is "Picture".

For Each c In ReportGenerator.Document.Collection("Contacts")
Report.WriteLn "c.class: " & c.Class & "<br/> "
Next


Edited: Monday, June 26, 2006 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7047
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
The documentation is incomplete. You can always access a collection using the long format if you don't know the collection name at compile-time:
strCollection = "Contacts"
Set coll = ReportGenerator.Document.Collection(strCollection)

You have every right to be confused. The ReportGenerator.Document.Collection("Contacts") always returns a collection of Pictures. I hardcoded it to pictures for testing purpose and forgot to finish the code. If you run the following code, you will see each object class is "Picture".

For Each c In ReportGenerator.Document.Collection("Contacts")
Report.WriteLn "c.class: " & c.Class & "<br/> "
Next



That makes sense. Effectively I had exactly the same problem when I asked for a collection of Indiviiduals; not surprising, knowing what you write above :-)....

Anyway, I used the Contacts Collection right now which works like a charm (I have created the full email distribution list of all the people in the tree as well as the full address list, and I assume I could use the Individuals collection in order to get at the birth.date?

Thanks for making it clear, I wasn't losing my sense....

PS. Is there any way in VBscript to do introspection ? (i.e. to find out which methods and properties an (so far unknown) object has?

Kind regards,
Ronald


Edited: Monday, June 26, 2006 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7048
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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
PS. Is there any way in VBscript to do introspection ? (i.e. to find out which methods and properties an (so far unknown) object has?

Eventually GenoPro will support the IntelliSense. At the moment, you can view the property/methods of each object within GenoPro from the Tag Definitions dialog (Menu -> Tools -> Tag Definitions).
Posted Sunday, July 9, 2006 - Post #11819
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

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

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Will a contact list with birthdays (listed per month) be available together with the release of Beta 18?
Posted Monday, July 10, 2006 - Post #11820
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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
maru-san (7/10/2006)
Will a contact list with birthdays (listed per month) be available together with the release of Beta 18?

We plan to improve the report to make it as complete as possible.

Edited: Monday, July 10, 2006 by GenoProSupport



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse