Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > How to access an attribute of a tabular section

Forum

Search UsersRules
How to access an attribute of a tabular section
#1
Just came
Points:: 0
Joined:: Oct 8, 2012

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?

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

You can do it at client or at server

Code
&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

Profile
#3
Just came
Points:: 0
Joined:: Jul 18, 2012

This works for me:

Code
&AtClient
Procedure SetType(Command)
   Object.Items[0].Type = "my type";
   SetTypeServer();
EndProcedure

&AtServer
Procedure SetTypeServer()
   Object.Items[1].Type = "his type";
EndProcedure

Profile
#4
Just came
Points:: 0
Joined:: Oct 8, 2012

Thank you, friends!

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.