I want to program with the Method super() in Dynamics AX2012.
I have build a class ("A") and some methods in it. I build another class("B") whhich extends from the class before.
My class "A" has some Methods.
Now in Class "B" I want to override a Method. I will do so.
I will override the Method getTable().
protected SYCCarBrandTable getTable()
{
SYCCarBrandTable ret;
ret = super();
{
select brandid,branddescription from ret
where ret.brandid == "Bentley";
}
return ret;
}
Now my Question is...
I have understood that with super() this new method did take everything with it, from the method which it Extended from in the motherclass "A".
But how can I add more Things to the method, so that it gives me the Things from the method before and the Things I have added in the overriden method ?
A.getTable? - Jan B. Kjeldsen