You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
When an entityform is rended it checks if the statecode is 0. If it is not it assumes (possibly wrongly) that the record should be inactive and sets the form to read-only, no matter the settings on the EntityForm configuration.
But as described in this Dynamics Community Forum post there is at least one entity that has more than the 0 or 1 (active, inactive) status, such as a ServiceAppointment which has four states - for example '3' means scheduled and you would assume that could be made editable.
This may be hard to get around however, for example, the SalesOrder state code also has a '3' for a fulfilled invoice.
The text was updated successfully, but these errors were encountered:
Hi @BobHarper1, please check what the behavior is in online portals. We will need to defer to its behavior to decide whether this is by design or if any changes are appropriate.
I believe it is as I've described - any entity with a state code other than 0 will be read-only. This appears to be by design - going by the code comments anything that StateCode != 0 is presumed to be inactive.
This can have an undesired effect on some Dynamics OOB entity types that makes use of Portal difficult, in some specific cases.
When an entityform is rended it checks if the statecode is 0. If it is not it assumes (possibly wrongly) that the record should be inactive and sets the form to read-only, no matter the settings on the EntityForm configuration.
Relevant lines: https://github.com/Adoxio/xRM-Portals-Community-Edition/blob/master/Framework/Adxstudio.Xrm/Web/UI/WebControls/EntityForm.cs#L581-L589
But as described in this Dynamics Community Forum post there is at least one entity that has more than the 0 or 1 (active, inactive) status, such as a ServiceAppointment which has four states - for example '3' means scheduled and you would assume that could be made editable.
This may be hard to get around however, for example, the SalesOrder state code also has a '3' for a fulfilled invoice.
The text was updated successfully, but these errors were encountered: