Grocery Crud haves one limitation, the name of the primary key and the foreign key need be the same.
looking two tables of your model: productsId is the pk of products, BUT in productsEans you need rename ProductEanProductId to ProductId.
And next you can make the relation with grocery[/quote]
Tnx for your reply. Unfortunately this is no solution to my problem because this does not allow me to select multiple EAN's, but just one For now I changed my model a bit and will ask the user to enter the EAN's comma-separated.
I've got another question. Is there a way to pass some parameters to a callback function? Also, if I use a callback for an edit field (callback_edit_field), is there a way to pre-fill file 'value'-attribute with the corresponding value?