如何从组合框取值 table microsoft dynamics ax 2012 x++ while select
How to take value from combo box table microsoft dynamics ax 2012 x++ while select
我有table喜欢
(第一张照片)
table
我应该怎么做才能在 x++ 中将此值设为 while select?
(2c 照片)
value
简短的回答是您需要从查找中获取 return,通过 returned 值(键)找到 table 中的值,然后获取Name
字段。
所以这将是您案例中第一个结果的数据:
InventLocation::find('11').Name
这就是所谓的lookup
。当您进行查找时,AX 将使用多种方法来确定要显示的值。您正在查看的是基于 Extended Data Type
关系的查找。
- EDT - 在这种情况下
\Data Dictionary\Extended Data Types\InventLocationId
- Table - 它有 table 的
\Data Dictionary\Tables\InventLocation
的引用
- 主键 - 它有一个备用主键
\Data Dictionary\Tables\InventLocation\Indexes\InventLocationIdx
,我相信在这种情况下它决定了 return 值
- AutoLookup - 位于
\Data Dictionary\Tables\InventLocation\Field Groups\AutoLookup
的 AutoLookup 确定向用户显示哪些字段作为信息。
如果您想要自定义查找 return InventLocation.Name
字段,您应该查看可用的不同方法。此博客 post 是了解不同方法的绝佳起点:https://kashperuk.blogspot.com/2009/04/lookup-methods-tutorial-custom-list.html
我有table喜欢 (第一张照片) table
我应该怎么做才能在 x++ 中将此值设为 while select? (2c 照片) value
简短的回答是您需要从查找中获取 return,通过 returned 值(键)找到 table 中的值,然后获取Name
字段。
所以这将是您案例中第一个结果的数据:
InventLocation::find('11').Name
这就是所谓的lookup
。当您进行查找时,AX 将使用多种方法来确定要显示的值。您正在查看的是基于 Extended Data Type
关系的查找。
- EDT - 在这种情况下
\Data Dictionary\Extended Data Types\InventLocationId
- Table - 它有 table 的
\Data Dictionary\Tables\InventLocation
的引用
- 主键 - 它有一个备用主键
\Data Dictionary\Tables\InventLocation\Indexes\InventLocationIdx
,我相信在这种情况下它决定了 return 值 - AutoLookup - 位于
\Data Dictionary\Tables\InventLocation\Field Groups\AutoLookup
的 AutoLookup 确定向用户显示哪些字段作为信息。
如果您想要自定义查找 return InventLocation.Name
字段,您应该查看可用的不同方法。此博客 post 是了解不同方法的绝佳起点:https://kashperuk.blogspot.com/2009/04/lookup-methods-tutorial-custom-list.html