To understand what super() does, you need to know about the basic of Object Oriented Programming, which is : inheritence.
For exemple, class SalesFormLetter_Invoice extends (inherits) class SalesFormLetter. SalesFormLetter has a method init() and so does SalesFormLetter_Invoice. If you instanciate SalesFormLetter_Invoice and call it's init(), when it gets to super() it will call it's parent method (SalesFormLetter.init()). If you comment the call the super(), SalesFormLetter.init() will never be called. Putting code before or after super() depends on if you want your action to happen before or after SalesFormLetter.init(). In Axapta it's not always clear what is the parent, but you don't always need to know either. Another exemple, in the lookup() method, super() call the generic lookup construction. If you want to create your own lookup you have to comment super() ortherwise 2 lookup will pop-up. I know it's a bit confusing but I don't know how to explain it further. It's really in the basics of OO. Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, pradeep itnal <[EMAIL PROTECTED]> wrote: > > Hi all > i have some confusion with respect to USe of super() in different methods: can anyone help me out clearyfing this doubt?? i want to what difference it makes when i write my code before super() and what happens if i write my code after Super(). > for example in fetch() method on reports we override super(); and same in Lookup() method also.... pls help me out... > > thanks in advance... > > > 5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html >