Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Editing multiple profiles of one record. #45

Closed omarrana closed 6 years ago

omarrana commented 6 years ago

I have one entity named Profile for contact. A contact can have many profiles.

Unfortunately i can edit entity form when there is one Profile but as soon as i add new Profile i get this error : image

Can this be solved? i am using current contact to map my profile

amervitz commented 6 years ago

In the Web.config file, change

<customErrors mode="RemoteOnly" redirectMode="ResponseRewrite">

to

<customErrors mode="Off" redirectMode="ResponseRewrite">

and then you will see the exception information and can more easily troubleshoot the error yourself.

omarrana commented 6 years ago

image

image

I am getting this error because contact has more then one profile. When i click edit it takes contact id and not the row id. What value should i put in the query parameter so that it takes row id? i tried profil_id but it says record not found,

omarrana commented 6 years ago

Solved : id must be use a query parameter for all the entitylist form and entity form.