M
medu
Guest
might be the expected behaviour although I fail to see why is this happening so maybe someone have an answer or it might be considered a bug? using protected temp-table in class inheritance and extending the temp-table from base class leads to loosing some information (like serialize names for instance). =============== base class ========================== class BaseTable: define protected temp-table ttItem serialize-name 'Item' field itemId as character serialize-name 'Id'. method override public character ToString( ): return getItemTable():default-buffer-handle:buffer-field('itemId'):serialize-name. end method. method protected handle getItemTable (): return temp-table ttItem:handle. end method. end class. =============== child class =========================== class ChildTable inherits BaseTable: define protected temp-table ttTask like ttItem. method override protected handle getItemTable( ): return temp-table ttTask:handle. end method. end class. =============== test =========================== define variable ttBase as BaseTable no-undo. define variable ttChild as BaseTable no-undo. assign ttBase = new BaseTable() ttChild = new ChildTable(). message ttBase skip ttChild view-as alert-box. I was expecting 'Id', 'Id' but it yields 'Id', 'itemId' so the field serialize-name information on child class is lost in translation 
Continue reading...

Continue reading...