Save discard

Save discard

navyabasavaraju01
Contributor Contributor
584 Views
2 Replies
Message 1 of 3

Save discard

navyabasavaraju01
Contributor
Contributor

I'm working on one custom tool which will check some desired parameter values if that match save will be continue (by using saving event) , I can able to generate some warning if the value is not matching but unfortunately I unable to control the save after event raise. Is there any suggestion to avoid the save after event raise, Kindly note I am using UI save option to save my document.

 

Many Thanks

Navya Y.B 

0 Likes
Accepted solutions (1)
585 Views
2 Replies
Replies (2)
Message 2 of 3

aignatovich
Advisor
Advisor
Accepted solution

Hi!

 

You can subscribe to DocumentSaving event.

 

SDK says:

Handlers of this event are permitted to make modifications to any document (including the active document), except for documents that are currently in read-only mode.

This event is cancellable, except when it is raised during close of the application. Check the 'Cancellable' property of event's argument to see whether it is cancellable or not. When it is cancellable, call the 'Cancel()' method of event's argument to cancel it. Your application is responsible for providing feedback to the user about the reason for the cancellation.

 

0 Likes
Message 3 of 3

navyabasavaraju01
Contributor
Contributor

Thanks this worked for me Smiley Happy

0 Likes