Hi,

I am trying to comprehend how to implement the one-to-many managed associations in LiveCycle Data Services. Unfortunately there is no complete sample available.

I have got the Company and Employee tables in database and there is an id_company foreign key in the Emploee records. I naively expected, that when I set the one-to-many association (in destination Company) and make the fill operation on ArrayCollection of companies, the LCDS will automatically call the fill method for emploees property in each company. But obviously this is not the case - I will have to fill this child ArrayCollections (or at least the IDs for lazy associations) in my custom Java assembler for the parent (Company) destination (using SQL query to Emploee table). But I am not sure how to pass this child List from Java to ArrayCollection in AS. Can someone explain this to me?

And are there any other places in Company Java assembler where I have to work with Emploee table or is then the creating, updating, and deleting of employee accomplished by simply creating, updating, and deleting items in emploees ArrayCollection in AS?

Thanxs

Zdenek M

Reply via email to