|
28.10.2006, 16:40 | #1 |
Участник
|
Dynamics AX Geek: RecId & Tablebrowser
Источник: http://AxGeek.spaces.live.com/Blog/c...DB13!146.entry
============== A table with recId columns (other than its own recId) will not show these in the table browser. Take reqTransCov for example. It has two additional recId columns, linking it to reqTrans: ReceiptRecId and IssueRecId. You will not see those in the table browser. That is because adding them to a grid will always fail. Axapta will pretend it did add them, but in fact it did not. Try it out. Most of the time it will make sense not to display them as they are internal information and not of interest to the user. However, it might sometimes be helpful to see them, if just for debugging purpose. You can use the display-method workaround to do so:
This display method is a (datasource) method to display reqTransCov.receiptRecid: display recid ReceiptRecid(common _record) { return _record.(fieldNum(ReqTransCov, ReceiptRecId)); } The more general approach would of course be to implement this capability into \Classes\SysTableBrowser and Forms\SysTableBrowser. Maybe I’ll pick that up in a later post… ============== Источник: http://AxGeek.spaces.live.com/Blog/c...DB13!146.entry |
|