Auto Action after delete does not get triggered

A number of test scenarios refer to properties the test is being applied too, which is created as an enum list of keys.

E.g. Properties ENUMList { propertykey001, propertykey002, propertykey003 }

To remove a property from the list, uses the following: INTERSECT([Properties], Property[Propertykey])

So when a property is deleted the following actions are triggered to clean-up and remove references to the deleted property. 

  1. Remove loan-details
  2. Remove test results
  3. Delete the property *
  4. Lastly update the test-scenarios to remove the now deleted property from the test-scenarios.

Steps 1-3 work fine, the last step [4] does not work.  * This may be because it needs to wait for the property to be deleted. I have tried this as a Group of actions as listed above. Also as a BOT see screenshot below.

Please note step [4] does work if you leave the action visible and click on it manually.

Screenshot 2022-12-30 at 11.02.10.png

The Bot runs without error but the references in the test-scenarios to the now deleted property remains. This is likely to be something simple, hence the question. 

 

0 3 102
3 REPLIES 3

Steve
Platinum 4
Platinum 4

Actions are performed within the context of a row. If you've deleted the row, there is no context for the remaining action, so the remaining action does not run. Deleting itself must be the very last action the row takes.

Many thanks @Steve for the explanation. The problem is how do I tell the actions in the list which property is being deleted?  For now I have created a 'logical-deleted' flag, which is the first action and sets this flag. While the record physically exists, the other actions have something to reference. The UI then filters-out the logically-deleted records so they are not displayed.

Not ideal, but I wasn't sure if there was a de-reference of some description that would work. This solution is using Actions alone, not a Bot.

At present I appear to have hit another snag. A difference in behaviour between the ipad / iphone version, classic desktop mode and the new desktop mode.

It appears a Form Save action is not being triggered in the new desktop mode, but works fine in the other versions. This is stopping me from demonstrating the app in the new desktop mode. See screenshot. I do not know if there is a quick work-around for this. I have spent a couple of days looking at this, before discovering it was a UI behavioural issue. Have you heard of such an issue? If not I'll raise it with support. 

 Screenshot 2023-01-03 at 10.37.42.png

 

Steve
Platinum 4
Platinum 4

@Harriswe wrote:

For now I have created a 'logical-deleted' flag, which is the first action and sets this flag. While the record physically exists, the other actions have something to reference.


This is a good approach.

 

  1. Flag the property as deleted (e.g., set [Deleted?] to TRUE)
  2. Remove loan-details (e.g., [Related Loan Details])
  3. Remove test results (e.g., [Related Test Results])
  4. Update the test-scenarios to remove the deleted-flagged property (e.g., SELECT([Related Properties][PropertID], [Deleted?])) from the test-scenarios.
  5. Delete the property

 

Top Labels in this Space