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

Autocomplete custom query param not accepting dynamically defined values #1423

Open hlayisanimazuze opened 2 weeks ago

hlayisanimazuze commented 2 weeks ago

When a dynamic value is passed as the query parameter value, an error is thrown stating that the value is not valid. The dynamic value configuration fails to retrieve the value

Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/shesha/forms-designer?id=87621377-4de0-4c1a-a663-428df573a556'
  2. Open developer console and navigate to 'network' tab
  3. Click on 'preview' icon
  4. Select a member on the member autocomplete e.g. ernest
  5. Click on 'getMemberPayments' autocomplete
  6. Actual Results: An error gets thrown, the value is not valid`. Even if you render the same component on the details view and use {{data.id}}, the same error gets thrown

NB: If you hard code the id, it does get the data accordingly.

Expected behavior The query param should accept the dynamic values

image