11
Views
2
Comments
Upload Image

Hi,

In my database I have 2 tables. Empresa and Empresa Picture, to store Empresa logo's, when I try to add a Empresa I need to upload my image, but When I try to upload the image I have this error:

I think it's because the action "ChangePicture", He store Picture.Id but Picture.Id its a Empresa.id identifier. 

Can you Help me.

Attached the Module.

BNIPatrimoniov65.oml

Rank: #171

Hi Viktor,

you need refactor your table, example:

and when you create a EmpresaPicture, set the EmpresaId, example:


and an important point is, you must first create the record for the Empresa table, then create EmrpesaPicture.


however, it may be necessary to delete the EmpresaPicture table and recreate.


Look .oml in attachment.


Regards.

BNIPatrimoniov65.oml

mvp_badge
MVP
Rank: #75

Hi Viktor,

After analyzing the shared .oml file, I observed some of the implementation improvements/corrections which are very much required in the ChangePicture and the Save action flow to make it work...

Please refer the attached .oml file with code changes


Hope this helps you!


Regards,

Benjith Sam

BNIPatrimoniov65.oml