首页 > 解决方案 > 移动应用程序上的 Acumatica-LotSerialNbrAttribute 屏幕

问题描述

我正在使用 Acumatica 自定义Acumatica-LotSerialNbrAttribute

此自定义添加了一个新屏幕,用于查找 InventoryID 和 LotSerialNbr 并可视化其属性。

IN202501

我正在尝试将此窗口添加到 acumatica 移动应用程序。这是我的代码:

add screen IN202501 {
  add container "InventoryLotSerialContainers" {
    add field "InventoryID"
    add field "LotSerialNbr"    
    add group "Attributes" {
      displayName = "Attributes"
      collapsable = True
      add attributes "AttributesAttributes"
    }
    add recordAction "Save" {
      behavior = Save
    }
    add recordAction "Cancel" {
      behavior = Cancel
    }
    attachments {
    }
  }
}

并且屏幕在带有 2 个选择器的移动应用程序上可见然后我选择库存,当我选择 Lot Serial Nbr 时,第一个选择器为空白,导致我无法查看属性也无法保存信息。

手机屏幕1

这里 InventoryID 选择器为空白。 手机屏幕2

希望您能帮助我在 acumatica 移动应用程序上成功发布此屏幕。谢谢。

标签: customizationacumatica

解决方案


属性是 Acumatica 中的网格样式表示。这意味着您需要一个显示多条记录的容器。我很快就对移动设备生锈了,但我相信您的定义设置为仅显示单个值。

尝试为属性添加一个单独的容器:

add container "AttributesAttributes" {
  add field "Attribute"
  add field "Value"
}

这应该打开多个记录的视图,显示您的所有属性。通过指定 Attribute 和 Value 字段,您应该在容器中看到这两个数据元素。


推荐阅读