Add Button with event to form

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 9, 2012
Company: Net Lap Consulting GmbH

Hi,
addind a button was not so difficult - but I can't figure out why my buttons are not shown on the form.


What steps are necassary to display me buttons other at the command bar or at the forms and add an event to excecute script on click?

Thanks

Andre

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hi, Andre!
You need to create a command, set the handler for it and drag that command to the form to get a working button.

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 9, 2012
Company: Net Lap Consulting GmbH

Thanks - a command I can add at the tree:
Catalogs
|
--MyForm
   |
   -Commands

But how to assign a handler to?

When I try to drag my so created command to the form I get a denied sign.
Maybe there's something writen about in one of the documentation ...?

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 2, 2011
Company:

You can see small example for "printing button": http://rdbcode.com/Video/section2part4/section2part4.html

Maybe this approach solves your problem.

 
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.