How to Understand if Write and Close or Write Button Pressed?

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

How can I find out in Script if Write and Close button or Write Button pressed?
The case is that I have a dependent table on the object form which should be updated when the object is written. But if the form will be closed right after Write and Close this is not necessary and I would like to skip this update. How can I do that?

 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Nov 23, 2011
Company:

In this case you can delete default buttons and ad new ones (with new scripts)

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Thank you, maxd!
I've added a save and refresh button.
It works, but if it is a common solution? Looks like I have to override the control bar buttons every time I just want to do this simple dirrefence.

 
#4
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Nov 23, 2011
Company:

Yes, it's a common solution

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.