[OGo-XML-RPC] Re: questions regarding ZOGi,
WAS:[OGo-Users]custom fields and synchronizing ogo
Adam Tauno Williams
xmlrpc@opengroupware.org
Thu, 27 Mar 2008 13:47:22 -0400
> > 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.
Ah. Nope, it doesn't set the contact_id attribute on the Enterprise,
it just does an assignment.
One moment while I check the code....
Nope, zOGI doesn't support retrieving the contact_id (as contactId).
But it should support writing it, just set "contactId: 10160" for
example. Since "contactId" is an attribute known to OGo Logic it should
just set it.
That should be corrected in zOGI r951 (Google Code version).
> > ??? 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.
Ok, that is different than assignments.
> > 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?
Nope, it should work to set contactId in either version. zOGI stores
attributes as-is unless specific renaming or value mangling is in place
(such as translating attribute names; objectId becomes companyId,
etc...)