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!