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

When files are attached to the `fileList` component before an entity is created via `execute script`, those files do not get saved under that entity #1407

Closed hlayisanimazuze closed 2 weeks ago

hlayisanimazuze commented 3 weeks ago

When creating a new record and attaching files using the file list component with the default buttons action, the attachments are saved under the entity as expected. However, when using the execute script action, attachments created prior to entity creation are not saved. If the entity is created via execute script and files are attached in the subsequent step, they are successfully saved onto the entity. There is also a need to support the same scenario to allow attachments to be created before the entity has been created via execute script

Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/dynamic/TestModule/book-formatting'
  2. Click on 'Add' 3.Enter all the required information, including attaching files and click on save
  3. Afterwards, check the record created to see whether the attachments have been saved under the entity created
  4. Actual Results: The attachments are not saved

Expected behavior The files attachments uploaded via file list should get saved under the entity created

hlayisanimazuze commented 3 weeks ago

Related Item

hlayisanimazuze commented 3 weeks ago

@AlexStepantsov, I've noticed on the payload _delayUpdate does not get show on the payload when using execute script, could that be the reason like how the default buttons does. The below screen is from the default buttons

image