Aman Nagarkoti Aman Nagarkoti - 2 months ago 14
Apache Configuration Question

Facing error in use entity-and and entity-one in apache ofbiz.

I am new to ofbiz, I am using in form.xml but when I use with same it is giving errors.

my code is:

<entity-and entity-name="AssetAuthor" list="allAuthors">
<field-map field-name="assetRefId" from-field="assetRefId" />
</entity-and>


when I do same with doesn't works. please help.

Answer

when you are using

<entity-one></entity-one>

you need to pass primary-key of the table.In your case there would be a composite primary key,so you have to pass all keys in field-map tag.