Serial catalog items input

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

Hello everybody!
Normally to create a catalog item I need to click Create button, input data, click save and close button. After that to create a new one I need to click Create again. Now I have a task for one of catalogs to let a user input catalog items one after another and to save time I would like to skip opening and closing of the form. What is the best way to provide this functionality?

 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Code
&AtClient
Procedure SaveAndCreateNew(Command)
   Write();
   CreateNew();
EndProcedure

&AtServer
Procedure CreateNew()
   NewItem = Catalogs.Goods.CreateItem();
   ValueToFormData(NewItem, Object);
EndProcedure

 
#3
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

Oh! Thanks, alexht! That's what I need!

 
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.