[OGo-XML-RPC] Re: questions regarding ZOGi, WAS:[OGo-Users]custom fields and synchronizing ogo
Sebastian Reitenbach
xmlrpc@opengroupware.org
Thu, 27 Mar 2008 16:40:55 +0100
xmlrpc@opengroupware.org wrote:
> > After reading about assignments in the Wiki, I changed the script, so
that
> > it looks like this:
> > '_ACCESS' : permissions,
> > '_CONTACTS' : [ { 'targetObjectId' : row[11] } ],
> > '_COMPANYVALUES' : [
{ 'attribute' : 'contact_segments',
> > Now, the exception is gone, and the entry is created,
>
> So the enterprise is created and the specified contact appears linked to
> the enterprise? That is what is supposed to happen.
>
> > but the contact_id field in the database is still empty.
No, the contact_id field stays empty, and also in the webinterface, there is
no contact for the created company.
>
> ??? Don't understand. The contact_id isn't related to
> contact<->enterprise assignment. In fact, I don't really have any idea
> what the purpose of the contact_id field is. Enterprise<->Contact
> relationships are records in the company_assignment table.
> Enterprise<->Contact is a [potentially] many:many relationship.
No, in the webinterface, when I edit an enterprise, then I can only assign
one contact, it is a radio button selection.
I just tried, and when I set a contact in the webui, then it takes the
company_id from the account, and fills this company_id in the contact_id
field in the company record.
With Contact in this case, I mean an account, not a person from the contacts
database. There I know, I have the many:many relationship as you describe.
>
> I think a contactId is available in late version of zOGI's Contact
> entity, and it is the value of contact_id. But, again, don't know its
> intended purpose.
does that mean, only in the zogi source from google, or will it also be in
the sources bundled with ogo?
kind regards
Sebastian