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

GenoPro Support Forum




Address & field names

Click to view RSS...
Author Where
Posted Monday, July 5, 2010 - Post #26121
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, November 20, 2025
Posts: 230, Visits: 1,629
Hello Ron!

Fantastic, it works w00t.  This computer technology is wonderful when you can use it, unfortunately I can't.  I'm happy that you are kind enough and help helpless rookie as I am.  Many thanks and all the best BigGrin:, wishes Jarmo

Posted Monday, July 5, 2010 - Post #26120
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: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
Hi Jarmo,
The Util Class of the GenoPro Software Development Kit (or SDK) contains many useful methods, including Util.FirstNonEmpty. and so in the original version of the report, just replace i.Name.Last with Util.FirstNonEmpty(i.Name.Last2, i.Name.Last).

Simple eh?



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, July 4, 2010 - Post #26119
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, November 20, 2025
Posts: 230, Visits: 1,629
Many thanks Ron!

Thanks to you good advise I was able to add succesfully the "Second Last Name" into this report, thats great!  As it is so often, one question leads to another ie. is there a possibility to evaluate (during the report execution), that if there is "Second Last Name" you use it as a persons "Last Name" and in a case there is not a "Second Last Name", the "Last Name" fields value is used?  BR, Jarmo

Posted Saturday, July 3, 2010 - Post #26116
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: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
1. Where/how do you find field names?

Still in the same place and in same way as my much earlier post Smile i.e. on the GenoPro program Menu bar, choose Tools and then Tag Definitions. You will see all the field names for each object type so choose the Individual tab.
2.Why is it written......

The word 'LastName' in your first line is just a text label for the column heading in the CSV file and can be any alphanumberic string you care to use. The 'i.Name.Last' refers to a specific field, or tag, in the Individual record/object. An so you will need to add another text string in the first line after LastName, e.g. SecondLastName, and the field i.Name.Last2 after i.Name.Last. You will also need to add ,"{15}" to the format string as there are now 16 arguments (0-15).



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, July 1, 2010 - Post #26113
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, November 20, 2025
Posts: 230, Visits: 1,629
Hi Ron

I should modify the report you helped me to create (see attachment; "contacts.js") some time ago.  Now I should add the "Second Last Name" to the report BUT I don't know what is the name of the field in the database.  Would you be kind enough (again) and help me. 

Two silly questions:

1. Where/how do you find the field names?

2. Why it is written (in file "contacts.js") as follows: "...Report.WriteLn('\uFEFF' + 'ID,FullName,LastName..." - nb. "LastName" and then later "...ID.substring(3), i.Name, i.Name.Last,..." - nb. "i.Name.Last"?  I mean that first the field is called "LastName" but then later "i.Name.Last"?

Bestwishes, Jarmo

contacts.js (65 views, 1.23 KB)

Posted Wednesday, March 4, 2009 - Post #23732
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: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
I have had no experience of family associations and so do not feel qualified to advise on record keeping for the same. I personally would not chose to store this type of information my .gno files as I prefer to restrict it to family history related data, but I suppose you could use a special 'Contacts' object to hold transaction data. If it were me I would use a separate Contact for each of these transactions than the one holding address information, thus allowing more than one 'transaction' per member e.g. yearly renewals & refunds. If you leave Contact Type blank you can use the NarrativeStyle custom tag to create you own phrases in the Narrative Report (see elsewhere for customising your reports). Why, with a bit of javascript experience you could produce your own invoices and receipts!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, March 4, 2009 - Post #23730
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, November 20, 2025
Posts: 230, Visits: 1,629
Hello

Thank you for advising how to get leading zeroes into MS Excel!  I did change, according to your advise, my username.  Sorry for beeing silly and haven't changed it before.  BR, Jarmo

PS. Your "contacts.js" report has helped me a lot beeing secretary for our family's association with "membership register" because now I don't need to keep redundant info in MS Excel but instead updating all information into Genopro.  Do you by the way have experiences how to record yearly payed membership fees into GenoPro - Custom Tag perhaps or any othe data relevant to family associations?   I haven't found issues (on forums) of this kind of need so far.

 

Posted Wednesday, March 4, 2009 - Post #23728
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: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
183942 (3/4/2009)
MS Excel removes trailing zeros when importing <-- any ideas, how can I avoid this?

My Excel is a little rusty but AFAIK you cannot avoid this if you open a .csv file directly. You need to invoke Excel's text import 'wizard' . In Excel 2007 you can start Excel with a blank sheet and then use menu Data / Get External Data / From Text and then select the file. Go through the wizard setting delimiter to comma and then change the format of the first column from General to Text. Then import. Other versions of Excel will be similar. You can also rename to .txt and open with Excel, select the 1st column and use Data, Text to Columns to achieve exactly the same.

p.s. If you visit the Control Panel on this forum you can change your id from 183942 to a proper name of your choice - it just seems a bit weird to me communicating with numbers!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, March 3, 2009 - Post #23727
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, November 20, 2025
Posts: 230, Visits: 1,629
Hello!

I Added ID from Individual and removed "Ind" -letters from the beginning with substring(3) function (see code below) --> 
now  MS Excel removes trailing zeros when importing <-- any ideas, how can I avoid this?
<%[
// Produce .csv file of contact details for living individuals with a current address, phone no. or email
Report.WriteLn('\uFEFF' + 'ID,FullName,LastName,FirstName,Type,PlaceName,Street,Zip,City,County,State,Country,Telephone,Mobile,Email')
// Loop through all contacts
for (var cCnt=0; cCnt<Contacts.Count; cCnt++)
{
    var c = Contacts(cCnt);
    if ((c.DateEnd.ToStringNarrative=='') && (!Util.IsNothing(c.Place) || (c.Telephone+c.Mobile+c.Email) != ''))
    { // no end date and place, phone, mobile or email is present
    var refs = c.References.ToGenoCollection;
        for (var iCnt=0; iCnt < refs.Count; iCnt++)
        {
            var i = refs(iCnt);
            if (i.Class == "Individual")
            {
                if (!i.IsDead) Report.WriteFormattedln('"{0}","{1}","{2}","{3}","{4}","{5}","{6}","{7}","{8}","{9}","{10}","{11}","{12}","{13}","{14}"',
                    i.ID.substring(3), i.Name, i.Name.Last, i.Name.First, c.Type, c.Place, c.Place.Street, c.Place.Zip, c.Place.City, c.Place.County, c.Place.State, c.Place.Country, c.Telephone, c.Mobile, c.Email );
            }
        }
    }
}
]%>

BR, Jarmo

Posted Sunday, March 1, 2009 - Post #23720
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, November 20, 2025
Posts: 230, Visits: 1,629
Dear Ron

Thanks a lot for your update to this excellent report.  It seems to work now at least with MSExcel 2003 (11.8231.8221) SP 3 version as expected ie. å,ä,ö letters looks fine and also eMail is included.  Many thanks and have a nice day! 

BR, Jarmo



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse