Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > Manager and Object modules difference

Forum

Search UsersRules
Manager and Object modules difference
#1
Active user
Points:: 0
Joined:: Jul 18, 2012

Good morning!

Would someone please explain what is the difference between Manager and Object modules? What are cases when one should use Manager module and what are when one should use Object module?

Thanks.

Profile
#2
Just came
Points:: 0
Joined:: Mar 12, 2012

The same like in OOP(Object-oriented programming):

Manager modul - static functions of the object; use it for reading data(printing forms), and other general functions
Object modul - private and public functions of the instances; use it when you want to make manipulation with data(writing, posting)

For more information look at the Sample Applications

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

Thank you, Ihor, and what if I need to print a document, how will I use the manager module? There is not Ref field in this module context...

Profile
#4
Active user
Points:: 0
Joined:: Nov 1, 2011

You can get it through the parameter of your procedure/function.
Look an example in the "1C:Small Business".

Profile
#5
Just came
Points:: 0
Joined:: May 5, 2012

if you want to print a lot of documents, you cannot to do it from manager module. You have to sel ect document that you need using Query. When you execute query you will get dozens of documents references. After that you can get documents objects by using  
the function "GetObject". You can call printing function fr om object module. :)

Profile
#6
Just came
Points:: 0
Joined:: Mar 12, 2012

You have to sent Object Reference from external function. Try to use Print Design Wizard(RMB on the object in conf. tree -> Wizards -> Print Design Wizard) and analyze its result. Everything will be much clearer.

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

But why do I want to print it from the object module if the Manager module is designed for printing?

Profile
#8
Just came
Points:: 0
Joined:: Nov 2, 2011

You can use Manager Module.
See full example: http://www.rdbcode.com/Video/section2part4/section2part4.html

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

Very interesting! And there's more video at this site... Thank you!

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.