Skip to Content
author's profile photo Former Member
Former Member

DI / JCo: adding IContactEmployees with java wrapper

Hi

Is there anyone out there with experience of adding IContactEmployees to IBusinessPartners?

When I use cE.add() and updates the BusinessPartner it just replaces the contact in the first position.

Is this a bug or have I missed something?

regards

Taisto

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 28, 2004 at 01:17 PM

    Hi Taisto,

    I am not 100% sure, but the behaviour of IContactEmployees may be somewhat unexpectedly.

    I think it's like this (please check it):

    When you get the BP object it comes - like any object from 6.5 on - with one empty line for the each collection in it; here it's the contact employees collection.

    The current line in this collection is then the first one: "0"

    (So that SetCurrentLine will fail when you try to set it to "0" after getting the BP object... but this is a known bug.)

    Therefore, if you use "Add" after you have set the properties for the object, you have change the first CP and usually you should receive an error when you try to update the BP with a CP that is empty.

    If you use "Add" before you set the CP properties, it should work - at least, if the new CP is not the first one.

    I hope you understand what I mean when you check out the sample code in the DI helpfile for this.

    Regards,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.