R
R
Roman2020-09-02 11:36:27
User interface
Roman, 2020-09-02 11:36:27

How to do multiple actions on a UI button?

Good day!
I am new to 1C. Please tell me how to connect the simultaneous opening of the Processing and the Directory on the "Button Type" "Action".

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Melnikov, 2020-09-02
@Mi11er

What exactly doesn't work?
on non-control forms it would be so (but you don’t have to do it =), purely for an example).

Обр = Обработки.Обработка1.ПолучитьФорму("Форма").Открыть();
Спр = Справочники.Справочник1.НайтиПоКоду("").ПолучитьФорму("Форма").Открыть();

A
Alexander, 2020-09-02
@Dem0lisher

You can enter a counter when you open the form.
When you click on the button, add one to this counter.
Well, to open, for example, with an even value of the counter one form, with an odd value - another. There are different options, but something I do not understand your task. Our teacher at 1s said - "Frail games of a sickly mind."

R
Roman, 2020-09-02
@Shouldercannon

I beg your pardon. I should have attached an image. 5f4f77c495ef0442525174.png
There is such a panel and on it there is a button Nomenclature by clicking on which the directory opens. As you can see, there is only one action.
Is there a way to do this via a module? We click on the Nomenclature button , it calls a certain module, and it, in turn, opens the same directory and, in addition, some kind of processing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question