shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
285 stars 45 forks source link

Entity Reference does not display data when edit mode is set to readOnly and inherit #1432

Closed Tshepiso-R closed 1 week ago

Tshepiso-R commented 2 weeks ago

Issue Description When attempting to display data using the Quickview entity reference type with the edit mode set to readOnly, the component fails to display data even when the selected record contains relevant information. This issue is observed in both name and dynamic form selection modes. Similarly, when the edit mode is set to inherit, and the parent form is in readOnly mode, the data does not display

To Reproduce Steps to reproduce the behavior:

  1. Navigate to 'https://function-adminportal-test.shesha.dev/dynamic/Shesha/test-cascade-behavior-details?id=1e39b24b-466e-4281-b029-049afa4e936b'.
  2. Observe that data is displayed for all entity reference components.
  3. Drill down to the form designer.
  4. Modify the edit mode to ReadOnly for both QuickView Dialog Dynamic and QuickView Name.
  5. Save and render the form.
  6. Observe that after changing the edit mode, the data fails to display.
  7. Drill down to the form designer.
  8. Change the edit mode to inherit
  9. Save and render the form.
  10. Observe that the data does not display even when you click the edit button

Expected Behavior

  1. When the edit mode is set to readOnly for Quickview entity reference type, the component should display data from the selected record.
  2. When the edit mode is set to inherit and the parent form is in readOnly edit mode, the Quickview data should display
  3. The expected behavior aligns with the behavior of the Navigation Link and Modal dialog box entity reference types.

image