Delete images that are referenced

I have an โ€œimageโ€ table referenced to a โ€œtransactionโ€ table so that I can attach multiple images to one transaction. I can add new images, but how do I delete the referenced images? The inline and detail forms for the images do not have a Delete/Trash option, I can only โ€œClearโ€ the image.


0 5 438
  • UX
5 REPLIES 5

Steve
Platinum 4
Platinum 4

There is no way to delete the image file, if thatโ€™s what youโ€™re asking.

Iโ€™ll try explaining with a view of my table. When I added the 2 picture references it stored them in my โ€œTransaction_Imagesโ€ table as 2 separate records, both referring to the same Transaction_ID.

If I โ€œClearโ€ the images, the image references (.jpg & .png) will clear, but the records will remain. This makes sense so far

However, how do I delete the image records related to the Transaction?

For other โ€œtextโ€ type of data, related records (children) can be deleted from their parent record as in the sample below. For some reason I donโ€™t see this option when working with images.
3X_5_6_5603b4cb7c97af78b946192f7da867a72b9cb269.png

Hope that explanation helps

So within a form, you (the user) add an image, which is actually an image in a row of a nested form. You (the user) then wants to delete the image, but the only option is to โ€œClearโ€ it, which doesnโ€™t delete the row added to contain the image, leaving a row with a blank image when you save the form. How can you avoid saving the image row that now has no image?

Iโ€™ve never run into this situation, so I donโ€™t know! I can imagine ways to accomplish it, but none trivial. Let me enlist the aid of some other gurus: @tsuji_koichi @MultiTech_Visions @Aleksi

This is because of AppSheet native behavior in terms of nested rows within form view. User can add and edit row through in line form, but there is no delete action available. For the inline view with detail view of parent, there is no delete action avaialble. Just add or view action only. Similarly, add action is only available while the use is on the form view for parent row.

To let the user able to delete nested row from parent form view, it could be possible that we place toggle fields, [Delete?] within child record. One this toggle fields is turn ON (select Y), then fire the workflow (automation) to delete own row.
Thats only workaround I came up with to achieve โ€œdelete rowโ€ operation from parent record.

Thanks for the explanation. I tried your suggestion, but the action doesnโ€™t seem to fire either when I click save after setting the new โ€œDeleteโ€ toggle to "Y"es. I tested my action and confirmed it works when viewing the images directly (not in a parent form).
Nothing happens when Iโ€™m editing the nested images

Action fires when Iโ€™m editing in the Images table directly (not nested inline form)

Top Labels in this Space