Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > How to call a function from object module of data processor?

Forum

Search UsersRules
How to call a function from object module of data processor?
#1
Active user
Points:: 0
Joined:: Jul 18, 2012

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?

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

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();

Profile
#3
Active user
Points:: 0
Joined:: Jul 18, 2012

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

Code
DataProcessors.

does not work.

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

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

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

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.