31
Views
3
Comments
Solved
Picture in form is not saving in database
Application Type
Reactive

I am making a HR portal  and when im saving an employe image in form its not saving in database what will be the issue here my oml please review it.

HR Portal.oml
Solution

Hi Muhammad,

In your implementation, you omitted the step of assigning the value of the EmployeeImg.Id attribute with the newly created CreateEmployeeProfile.Id.

To establish the one-to-one record association correctly (in-between EmployeeProfile - EmployeeImg entities), it's necessary to explicitly set the EmployeeImg.Id attribute with the ID of the newly created parent EmployeeProfile record as shown below.

In addition, to follow best practices, ensure that you address all the TrueChange warnings. 

Refer to the attached oml file. I hope this helps you!


Kind regards,

Benjith Sam

HR Portal.oml

thanks alot

You're welcome. I'm glad it helped you :)


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.