10-24-2011 05:39 AM
I'd appreciate a quick vb.net pointer or two on how to actually read the contacts. I did this successfully about eight years ago but need a refresher.
I remember setting up the following years ago:
dim contactname as string
with [SOMETHING]
.first
do while .iseof=false
contactname = .SOMETHING
.next
loop
end with
10-24-2011 08:00 AM
There's a couple ways to get a list. One would be to open the diagnostic utility (start -> run "actdiag"), go to the databaselist, right click your database and choose reports -> field detail report.
You could also within VS get a collection of DBFieldDescriptors and view them from within visual studio.
10-24-2011 06:22 AM
Is there any particular contact your looking for?
For isntance we can retrieve the current contact like so: Contact thisContact = ActApplication.ApplicationState.CurrentContact;
Or we can get a list with all the contacts: ContactList cl = ActFramework.Contacts.GetContacts(null)
It looks like from your example you're trying to get the name, which is a public property of a contact object:
string name = Contact.Name;
If your interested in other field values, do a search on this forum, there should be several examples of folks retrieving field information on a contact.
10-24-2011 06:24 AM
Is there a list of field descriptions for act.framework.contacts.contact.contactfields?
10-24-2011 07:23 AM
10-24-2011 08:00 AM
There's a couple ways to get a list. One would be to open the diagnostic utility (start -> run "actdiag"), go to the databaselist, right click your database and choose reports -> field detail report.
You could also within VS get a collection of DBFieldDescriptors and view them from within visual studio.