How to call a function from object module of data processor?

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

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 18, 2012
Company:

Good evening!

I have created an external data processor and put some code into the object module of it. But can't get how to call a function of object module of that data processor in the form?

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

If you put some code into the object module, then so you need create object, and then call function of object, like so:

Code
// creating object
dataProcessorObj = DataProcessors.DataProcessor1.Create();

// call some function of object
dataProcessorObj.AnyFunction();

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 18, 2012
Company:

Thank you, Ivan, but it is an external data processor, so

Code
DataProcessors.

does not work.

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

Quote
but it is an external data processor
I was not attentive. May be object ExternalDataProcessors helps you

Code
dataProcessorObj = ExternalDataProcessors.Create(FileName, SafeMode);

 
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.