phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] Help - I screwed up addbook


From: Brian Johnson
Subject: Re: [Phpgroupware-developers] Help - I screwed up addbook
Date: Wed, 20 Nov 2002 13:46:16 +0000

Some confusion here - I think the terminology should be changed but I don't 
have a
good suggestion

In addbook, you can add people to organizations and organizations to 
organizations
as you explained.

The public in general, uses the word contact to generally describe all people 
and
organizations

Addbook however, uses the word contact (and contact categories) to describe the
extra "methods of contact" (ie additional phone numbers, emails, pager numbers, 
web
pages, whatever you want) that you can associate with a person or organization

For example, in the addbook admin section you can define contact categories
like "office phone", "girlfirend's birthday", "wife's mobile phone number".

In the edit screen of persons or organizations you can add multiple entries of
these extra "contacts" - but when you hit submit you get an error

Basically, the table is defined to use the id field (the number linking it to 
the
person or org record) as the primary key - this prevents the ability to use more
than one record of these "extra contacts" per person or org

So I figured I could add an additional field that just autoincrements through 
the
use of a sequence and make that the primary key instead of the id field - but 
to do
that I had to create a new table definition, move the data records over, delete 
the
old table, and rename the new table

I named the new field rec_id and hoped that it might just work - but it doesn't
(even after I fixed the permissions problems)

So ... I need to look at the code closer.  I've noticed that one section (where 
is
reads the phpgw_addbook_contacts table) refers to a field called contact_id - I
wonder if other sections refer to field id where they should refer to field
contact_id

The coding and sections that do work look as though the program is intended to 
do
what I want - there's just a coding problem somewhere (it may be as simple as 
using
id where contact_id should be used)



Adam Hull (address@hidden) wrote*:
>
>Maybe I am missing something, but I think this feature might already be
>implemented. I grabbed addbook from CVS a couple days ago and I was able to
>add multiple contacts and organizations per ogranization. I made the person a
>member of an organization by selecting from the pull down menu "organization".
>and made the organization a member of a parent organization by selecting from
>"Department of". Are you implementing something different?
>
>
>Brian Johnson (address@hidden) wrote*:
>>
>>I was working on allowing multiple additional contacts per org or person and
>>somehow I screwed up addbook so now all I get is:
>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]