The 1C:Enterprise developers forum
Salam!I need to change a value of a tabular section attribute. For an attribute Type example for a first row of a tabular named Items.How can I do that?
You can do it at client or at server
&AtClient Procedure changeValue1() line = Object.Items[0]; line.Type = "new value"; EndProcedure &AtServer Procedure changeValue2() lObject = FormAttributeToValue("Object"); line = lObject.Items[0]; line.Type = "new value server"; ValueToFormAttribute(lObject , "Object"); EndProcedure
This works for me:
&AtClient Procedure SetType(Command) Object.Items[0].Type = "my type"; SetTypeServer(); EndProcedure &AtServer Procedure SetTypeServer() Object.Items[1].Type = "his type"; EndProcedure
Thank you, friends!
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.
Get our brochures now! They are packed with all the info you need on 1C:Enterprise, a comprehensive technological platform with a wide range of built-in and separate tools and services and a system of off-the-shelf solutions powered by this platform. Plus, data on customer projects, including stats on their size and the effect of automation. Just leave your email address to download!
We're committed to your privacy. 1С uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy
Your request has been successfully sent.