How to open a data processor instead of opeing the catalog item?

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

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?

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

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?

 
#3
People who like this:1Yes/0No
Active user
Rating: 3
Joined: Sep 16, 2011
Company: individual

You can avoid changing the catalog item form by setting

Code
StandardProcessing = False;

in BeforeRowChange().

 
#4
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Thanks! StandardProcessing = False; is easier.

 
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.