"Roland Winkler" <wink...@gnu.org> writes:

> On Fri Dec 28 2012 Eric Abrahamsen wrote:
>> No one asked for this, but it's something I've wanted for a while, so I
>> did it, and am attaching a patch if it's of general interest.
>> 
>> I often add multiple records for different people at the same
>> organization, and have wanted tab completion when creating/editing the
>> organization field. This patch creates and populates a
>> bbdb-organization-list variable on startup, and offers completion from
>> that list when editing or creating organization fields.
>
> Thanks. Me too, I thought about this. So far, I did not implement
> this because the organization field holds a list of values. This
> makes tab completion more tricky if one wants to put multiple
> entries into this field.

Yup, I thought of this problem but it seems like it's fudged in other
places (ie you can't complete on subsequent values in an AKA field) so I
figured this was good enough for now. That would be very cool if the
completing-read engine grew the ability to deal with this.

>> Just out of curiosity, has there ever been a plan to make organizations
>> first-class citizens in the database?
>
> What's that? - The organization field holds (a list of) ATTRIBUTES
> for a record. If a record should refer to a (single) organization
> instead of a person such that the organization is not the attribute
> for something else, I suggest that the name of that organization
> should go into the name field. I think that anything else asks for
> trouble. (Say, typically multiple records will have the same entries
> in the organization field for all your friends / colleagues in an
> organization.)

Not quite sure I understood that... I was under the impression that the
organization field just holds a list of strings: the names of various
organizations. Is that what you meant by "attributes for a record"?

I can make a record for an organization, with its organization name in
the name field, and say an office front desk number in the phone field,
etc, but them is there a way of indicating that a separate record (for a
person), works there? I can't fill the person's organization field with
a "foreign key" to the organization record, right?

I realize this is approaching a relational database model, and is
a can of worms that's probably not worth opening. I was just curious.

E


------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to