【问题标题】:RelationShip Between DeliveryName Field In SalesTable in Dynamics AXDynamics AX 中 SalesTable 中 DeliveryName 字段之间的关系
【发布时间】:2016-09-07 13:45:45
【问题描述】:

**我需要从 SalesTable 中检索 DeliveryName 字段。它们之间的关系是什么?如何从 SalesTable 中检索 DeliveryName **

【问题讨论】:

  • edit 您的问题包括您在 cmets 中提供的其他信息。对于新读者来说,您当前状态下的问题非常不清楚。

标签: dynamics-ax-2012


【解决方案1】:

对于您想要从SalesTable 获取DeliveryName 的cmets,但您需要CustInvoiceJourSalesTable 之间的关系。

关系是CustInvoiceJour.SalesId == SalesTable.SalesId

代码:

Select DeliveryName from SalesTable where SalesTable.SalesId == CustInvoiceJour.SalesId;

【讨论】:

  • 嘿,谢谢你.. 同样的方式,我如何在销售表中获取 WorkerSalesTaker、WorkerSalesResponsible 字段...帮帮我??
  • 更改此 Select DeliveryName from SalesTable where SalesTable.SalesId == CustInvoiceJour.SalesId; 并将此 Select * from SalesTable where SalesTable.SalesId == CustInvoiceJour.SalesId ; 现在有了 *****,您可以选择任何字段。
  • @VinothYesuraj:请为后续问题创建新问题。尽量避免在 cmets 中询问他们,因为这会使其他人更难找到这些问题及其答案。
【解决方案2】:

DeliveryNameSalesTable 上的字段 - 没有特殊关系,因为这是纯文本字段。

【讨论】:

  • 那么我如何使用任何条件检索该字段
  • 举个例子你想做什么
  • select DeliveryNamefrom salesTable where salesTable.CustInvoiceId==custInvoiceJour.InvoiceId;
  • 您的问题可以改写为:如何找到发票的销售订单?获得销售订单后,该字段就在那里。但是,为什么不使用CustInvoiceJour.DeliveryName
  • 嘿,只使用上面的查询我无法得到我想要的......所以你能建议我任何查询来获得销售表的交货名称......
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多