Manager and Object modules difference

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 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.

Edited: Lies Susann - Aug 16, 2012 09:19 AM
 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Mar 12, 2012
Company: ProsteerGroup

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

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

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...

 
#4
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Nov 1, 2011
Company:

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

 
#5
People who like this:0Yes/0No
Just came
Rating: 0
Joined: May 5, 2012
Company:

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. :)

 
#6
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Mar 12, 2012
Company: ProsteerGroup

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.

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

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

 
#8
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 2, 2011
Company:

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

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

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

 
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.