Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > How to open a data processor instead of opeing the catalog item?

Forum

Search UsersRules
How to open a data processor instead of opeing the catalog item?
#1
Active user
Points:: 0
Joined:: Sep 16, 2011

Hello!

I want to make a pseudoform for my catalog items which will execute some procedures depending on the catalog item. So I have created a data processor and open its form with catalog item ref as a parameter in BeforeRowChange event handler.
The problem is that both the data processor and catalog item forms are opened. How can I suppress opening the catalog item form?

Profile
#2
Active user
Points:: 0
Joined:: Sep 26, 2012

You can use event OnOpen of Item Form.
This code in event work:

Code
Cancel = true;
OpenForm("DataProcessor.DataProcessor1.Form.Form");


But are you realy think that you need data processor, may be it will be better create different forms in catalog like topic405?

Profile
#3
Active user
Points:: 32
Joined:: Sep 16, 2011

You can avoid changing the catalog item form by setting

Code
StandardProcessing = False;

in BeforeRowChange().

Profile
#4
Active user
Points:: 0
Joined:: Sep 16, 2011

Thanks! StandardProcessing = False; is easier.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.