I have a process that deletes Accounts. This process has rules:
If Question.Reply='Yes' Then
DISPLAY QUESTION 'Continuing will delete this Account and all of its history. Sure you want to delete it?'
If Question.Reply='Yes' Then
Delete Account
I call it from a query. It is set to allow selection of multiple Accounts.
My Delete process is called multiple times, one for each selected account, so the warning message is displayed multiple times. I can't see any way around that problem.
Is there a way for me to give the message once and then delete all selected Accounts?
Failing that, I tried to put an identifier in the DISPLAY QUESTION text:
DISPLAY QUESTION 'Continuing will delete Account ' + Account.AccountID + ' and all of its history. Sure you want to delete it?'
But the same AccountID is displayed for every Account that is selected! The AccountID that is shown is that of the first Account that was selected from the list of Accounts.
This looks like a bug to me. Why would the deleted Account remain in the context? How can I display to the AccountID of the Account that is currently being processed?
It also highlights a recurring problem that I have with collections of objects in the context. There appears to be no way to regard the collection of Accounts in the context as an ordered set. I'd like to know:
1) how many are there
2) if they have an order
3) have some way to iterate over them in their order
4) have some way to index into them.
This probably files in the face of how Aware works though.
thanks,
Terry