[tngusers2] Minimum Digits

Vanheerden, Emile emile.vanheerden at citi.com
Sun Feb 1 23:03:59 CST 2009


I apologise if I missed the mail with the answer but let me try again.

I have changed the 0 to 5 as suggested but see no improvements. Do I
need to do something more than these changes? What I did in the mean
time is redo the hole "Utilities > Back up, Restore & Optimize Table
Data > Resequence IDs > Minimum Digits" steps and got the numbering
corrected but it did not change the way "People > Add New" works, it is
still not giving "0"'s in front of the numbers as it should. I still
have to add zeros manually to get te numbering right.
Kind regards
Emile


Message: 10
Date: Tue, 27 Jan 2009 21:57:50 -0700
From: "Darrin Lythgoe" <darrin at lythgoes.net>
Subject: Re: [tngusers2] Minimum Digits
To: "'TNG Users List'" <tngusers2 at lythgoes.net>
Message-ID: <0A877C9E3F6F4328BBA056CAD0753D63 at Darrin9300>
Content-Type: text/plain;	charset="us-ascii"

Yes. First, edit the admin/gedimport_misc.php file and look at these
lines near the top:

//set trim_it to a non-zero value to use this feature
$trim_it = 0;
//for individuals:
$trimsize[I] = 0;
//for families:
$trimsize[F] = 0;
//for sources:
$trimsize[S] = 0;

If you set those $trimsize variables and set $trim_it to 1, TNG will pad
your IDs with leading zeros if their lengths
are less than the number you specified. For example, suppose you have
one person with the ID I1234 and another with the
ID I567890. If you set $trimsize[I] to 5, then the first ID will become
I01234. The second ID will remain I567890
because it was already longer than 5 digits (the prefix "I" doesn't
count).

Darrin

> -----Original Message-----
> From: tngusers2-bounces at lythgoes.net
[mailto:tngusers2-bounces at lythgoes.net] On Behalf Of Vanheerden, Emile
> Sent: Tuesday, January 27, 2009 9:53 PM
> To: tngusers2 at lythgoes.net
> Subject: [tngusers2] Minimum Digits
> 
> Hi folks,
> 
> Question on Minimum Digits
> I changed my numbering with some zeros on the front so I can do a
proper
> numbers sort but it reverted back to what it was at some stage. I had
> no. I03311, then suddenly the next number with menu "People > Add New"
> was back to I3312, the zero is missing.(should be I03312)
> To go and redo it again is going to be extremely inconvenient and time
> costly to fix all my information and no guaranty that it would not
> happen again. (Utilities >> Back up, Restore & Optimize Table Data >
> Resequence IDs > Minimum Digits)
> Any suggestions to fix this?
> 
> Kind regards
> Emile
> 
> _______________________________________________
> tngusers2 mailing list
> tngusers2 at lythgoes.net
> http://lythgoes.net/mailman/listinfo/tngusers2_lythgoes.net




More information about the tngusers2 mailing list