I can not change attributes of a form during the document posting

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 25, 2012
Company: Care Small Animal Hospital

Aho!

I'm changin the an attribute of the document form during posting to display the posting result, but now I receive the following message: "Data has been changed. Do you want to save changes?" and when I choose Save the document is posted again. Is it possible to perform this programmatically not to make a user click save twice?

 
#2
People who like this:1Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

You can change form's property Modified to False at AfterWrite event handler of form.

Code
&AtClient
Procedure AfterWrite(WriteParameters)
   Modified = False;
EndProcedure


Quote
changin the an attribute of the document form during posting
and are you see variant with writing posting result to any information register?

 
#3
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 25, 2012
Company: Care Small Animal Hospital

Thank you again, Ivan!

 
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.