Who called this table?

Hi there!

I would like to know how i can get the info on which form called a certain table to do an insert. I suspected something like this.args().caller to be available, but no such luck.

The table in question is CustTrans, i need to know who called this table in the insert method. THe way to that is via posting from three different forms and i need to distinguish them from each other.

Thanks

Thomas

[:$] oups wasn’t aware that this was tha Axapta-forum.

Sorry

regards
Alexander

Hey, Thomas.

I think the easiest thing to do would be to create an optional parameter in the insert method of table CustTrans, where you could pass the name of the calling object (or the object itself, whatever you need).

You can check out an example under Tables\CustTable\insert()

(there is an optional parameter NoYes _updateCRM = true passed into the method)

Good luck!