Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > I can not change attributes of a form during the document posting

Forum

Search UsersRules
I can not change attributes of a form during the document posting
#1
Active user
Points:: 0
Joined:: Oct 25, 2012

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?

Profile
#2
Active user
Points:: 0
Joined:: Sep 26, 2012

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?

Profile
#3
Active user
Points:: 0
Joined:: Oct 25, 2012

Thank you again, Ivan!

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.