forumadmin

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-01-28
04:46
11093 views
Call a delete transition using actions
Question posted 1/24/09 by Ramez Kayaleh
Details:
I am having problems executing a delete transition through actions. Here is what I am trying to do:
Through Actions and depending on a binary field, Transition A can call either transition Pending or Delete. Between transition A and (Pending & Delete) is a state called "XYZ". When binary field is checked the Pending transition executes properly and takes the record to the Pending state. When binary field is unchecked the Delete transition is supposed to delete the record and end up at the Delete state. Instead, it deletes the record, lands in the XYZ state and gives the following error:
Your attempt to access the record was not successful:
The record has been deleted and could not be found. Please close this window and refresh the item list
Please help. These inconsistencies are becoming very frustrating.
Thank you
1 Reply
forumadmin

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-01-28
04:46
Comment posted 1/26/09 by Lynn Mattie
I'm not sure I 100% understand what you are trying to do. If you are using the system "Delete" state, that really isn't a state at all. It is just an indicator that the item is no longer in the system. Maybe you could create your own "Deleted" state that is an inactive state and create your own "Delete Item" transition that takes the item to this state. That way it remains in this "Deleted" state and you won't receive an error about trying to access a record that doesn't exist. However, I'm not sure how it can wind up in the "XYZ" state and be deleted at the same time.