undo sample

undo sample

sonicer
Collaborator Collaborator
715 Views
3 Replies
Message 1 of 4

undo sample

sonicer
Collaborator
Collaborator

Is there a sample c# how undo some transaction by name?

 

0 Likes
716 Views
3 Replies
Replies (3)
Message 2 of 4

matthew_taylor
Advisor
Advisor

Hi @sonicer,

Transactions can only be undone in order.

The only way to undo the last transaction is use the 'undo' command, or issue it via postcommand.

You may of course rollback your own transactions.

You would do well to explain what it is you're trying to achieve.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 3 of 4

sonicer
Collaborator
Collaborator

I would like create tags....with button that is in a form ...but if user click Cancel button need undo last transaction - tag created

0 Likes
Message 4 of 4

matthew_taylor
Advisor
Advisor

You should just be able to return 'Result.Cancelled'.

If that doesn't do what you want, you're going to have to show code to explain more fully.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes