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

Properties not displaying when returning the entity type using JS on the components Autocomplete and Entity Picker #1390

Open Tshepiso-R opened 3 weeks ago

Tshepiso-R commented 3 weeks ago

Description Upon setting the entity type through JavaScript, users expect to be able to select display properties and properties for entity filtering seamlessly. However, the system fails to recognize the entity type set via JavaScript, resulting in the absence of available properties for selection. This issue affects both the Entity Picker and Autocomplete components

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/dynamic/Boxfusion.SheshaFunctionalTests.Common/twenty-three-details?id=9e58861b-2b22-48e9-a5ab-05fddd8cfe13'
  2. Utilize JavaScript to dynamically set the entity type, such as return "Shesha.Core.Address". Attempt to select a display property for the entity type.
  3. Try to select a property for entity filtering.

Actual behavior When attempting to select a display property or a property for entity filtering after setting the entity type using JavaScript, no data is displayed. Despite configuring the entity type through JavaScript, the system fails to populate the available properties for display or filtering.

Expected behavior: After setting the entity type using JavaScript, users should be able to select display properties and properties for entity filtering as usual. The system should recognize the entity type and provide a list of available properties for selection, allowing users to proceed with configuring the form without any issues.

image image