Acumatica 无法从 BLC 访问扩展 DAC
Acumatica Can't access Extension DAC from BLC
我正在尝试从 InventoryItem 和 InventoryItemExt 向我的图形分配变量。
(第一列是 InventoryItem 选择器)
我也试过使用另一个 PXSelectorAttribute,这样做我在运行时收到了一个属性错误
InventoryItemExt item2 = PXSelectorAttribute.Select<atcProjectLinesTable.itemNumber>(cache,line) as InventoryItemExt;
您的 FieldUpdated 处理程序是为 atcProjectLinesTable DAC 声明的 - 缓存参数表示为 atcProjectLinesTable DAC 而不是 InventoryItem 创建的 PXCache 实例。我会假设问题发生在系统调用 cache.GetExtension<InventoryItemExt>(item)
时。
尝试替换以下行
InventoryItemExt item2 = cache.GetExtension<InventoryItemExt>(item);
和
InventoryItemExt item2 = item.GetExtension<InventoryItemExt>();
我正在尝试从 InventoryItem 和 InventoryItemExt 向我的图形分配变量。
我也试过使用另一个 PXSelectorAttribute,这样做我在运行时收到了一个属性错误
InventoryItemExt item2 = PXSelectorAttribute.Select<atcProjectLinesTable.itemNumber>(cache,line) as InventoryItemExt;
您的 FieldUpdated 处理程序是为 atcProjectLinesTable DAC 声明的 - 缓存参数表示为 atcProjectLinesTable DAC 而不是 InventoryItem 创建的 PXCache 实例。我会假设问题发生在系统调用 cache.GetExtension<InventoryItemExt>(item)
时。
尝试替换以下行
InventoryItemExt item2 = cache.GetExtension<InventoryItemExt>(item);
和
InventoryItemExt item2 = item.GetExtension<InventoryItemExt>();