Hi, I would like to delete a row from a data list using an action script. The row is selected base on two fields (Tracking No and user id). The script must be able to delete the matching row on the Submit action.
If you have any script example to acomplish this I will be grateful.
The data list you mentioned, is it a sublist on form or Data list in Application? For Data list in application, you can also use workflow node Set Data List to delete data by condition.
Thanks Jason & Frank. It is a Data List. Let me explain how it works. You can enter values in certain fields (Tracking No and user) to select a specific row from the list. Once you have filtered the row you want to delete, simply click the “delete” button to remove it. Please note that this action does not involve passing the data list to the next step by clicking “submit”."
@mauro.roa I don’t quite understand your idea yet. Can you put in some hand drawn drawings to describe it? This would be more understandable. Based on my current understanding, your idea is to directly select multiple items in the Data List, then delete the data, and finally submit it?
Finally, I found that using an HTTP DELETE request as an action step solves the problem: I was able to delete a data list row based on certain filters and by pressing a button. I was trying to implement the data list deletion using code, but without success. Thanks, Frank.