The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
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: 0 Yes / 0 No
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: 0 Yes / 0 No
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.

/* Агрессивный фикс заголовков для документации */ body .content h3, body #content h3, body .workarea h3, body .content h4, body #content h4, body .workarea h4, body .content h5, body #content h5, body .workarea h5 { display: block !important; color: #222 !important; font-weight: bold !important; text-transform: none !important; letter-spacing: normal !important; margin-top: 25px !important; margin-bottom: 12px !important; line-height: 1.3 !important; } /* Принудительные размеры */ body .content h3, body #content h3, body .workarea h3 { font-size: 22px !important; } body .content h4, body #content h4, body .workarea h4 { font-size: 19px !important; } body .content h5, body #content h5, body .workarea h5 { font-size: 17px !important; } /* Убираем возможные мелкие шрифты, которые могли прийти из стилей Bitrix */ .content h4 *, #content h4 *, .workarea h4 * { font-size: inherit !important; }