Add buttons to a form with coding.

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 13, 2011
Company: Logisoft Computer Systems

I am trying to create a form in which all the options available to the user will be shown as buttons.

I succeeded in adding and arranging the buttons on the form, but I cannot find a way to add what event will be executed when these buttons are clicked!

It is very important to do this with coding, as I want this to be as dynamic as possible!

Thanks in advance,
theodal

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

I hope this link can help to you

You need use property Action, see example

Edited: ivan avdonin - Apr 02, 2013 05:24 PM
 
#3
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 13, 2011
Company: Logisoft Computer Systems

I have searched the forum before I open a new thread, and I saw the link you are referring me to.

Unfortunately I cannot open the .epf.

I get the following error!

Invalid data storage format 'file://C:/Users/Alexis/Desktop/AddButtonByScript.epf'

edit: I downloaded the file again, and now it can be viewed.
I will check it and see if I can do what I want!
Thanks anyway!

Edited: Alexandros Theodorou - Apr 02, 2013 06:11 PM
 
#4
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

You need click on download.

 
#5
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 13, 2011
Company: Logisoft Computer Systems

I forgot to mention that the application's run mode is Ordinary and not Managed.

We do not use managed forms at all!

In this case the code on the epf is not correct.

Do you have anything similar that is applicable for ordinary applications?

Thanks again!

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

Yes, I add Form1 for ordinary applications

Edited: ivan avdonin - Apr 02, 2013 07:01 PM
 
#7
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 13, 2011
Company: Logisoft Computer Systems

That's exactly what I needed!

Thank you very much Ivan!

 
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.