How to add something to tabular section of a catalog

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: May 26, 2012
Company:

Give me some hint please, or a reference where to read how to add something to tabular section of a catalog from ItemForm Module.

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

You can use

  • &AtServer: method Add of Tabular section
  • &AtClient: method Add of FormDataCollection
(see Syntax assistant - Ctrl-F1 or menu item in Help)
for example:
Code
&AtServer
Procedure addServer()
   NewLine = Object.TabularSection1.Add();
   NewLine.Attribute1 = "S1";
EndProcedure

&AtClient
Procedure addclient(Command)
   NewLine = Object.TabularSection1.Add();
   NewLine.Attribute1 = "C1";
EndProcedure

 
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.