postload method() - (this) - value

raivex
raivex Member Posts: 8
edited 2014-06-26 in Dynamics AX
public void postLoad()

{

super();

//<GEEEE>

EePersonalDataAccessLogging::logReadAccess(this);

//</GEEEE>

}

My question where does the value of (this) comes from?

because it changes without me knowing.

and what are the possible methods related or triggers the postload method()

Thanks.

My real problem is e.g. the value of this must be 1 but when it comes to this method it changes to 2. and I need it to be one.

Thanks!

Please be detailed on the explanation. I'll gladly appreciate it. =)

Comments

  • Eric_Lei
    Eric_Lei Member Posts: 5
    When a new table in the AOT Tree is created, MorphX automatically creates a series of methods for it. PostLoad is one of these system methods.
    PostLoad is called when the record is read from the database, and 'this' refers the current record buffer - the value of current record.
    The PostLoad member method of the Axapta record can be overridden in Axapta X++ to accomplish specific behavior.