Acumatica 移动应用程序中的一般查询

Generic Inquiry in Acumatica Mobile App

我们在 Acumatica 实例中创建了一堆通用查询,现在想让其中一些也可以通过 Acumatica 移动应用程序访问。将通用查询包含到移动站点地图中的推荐方法是什么?

在 Acumatica 中,可以使用或不使用参数创建通用查询:

  • 如果 GI 没有定义任何参数,它将只包含 Result 网格,例如 Business Accounts GI (GIMB0001 ) 下面:

  • 带有参数的 GI 将包含 Filter_ 顶级表单和 Result 网格,例如下面的 商业帐户过滤 GI (GIMB0002)

下面的代码片段展示了如何使用 Acumatica 的 Mobile Site Map Definition Language(又名 MSDL)映射一个没有参数的 GI 和一个有参数的 GI:

sitemap {
  add folder "Mobile GIs"{
    icon = "system://Pen"
    type = "ListFolder"
    add item "GIMB0001" {
      displayName = "Business Accounts GI"
      icon = "system://Culture"
    }
    add item "GIMB0002" {
      displayName = "Business Accounts Filtered GI"
      icon = "system://Culture"
    }
  }
}

add screen "GIMB0001" {
  type = SimpleScreen
  add container "Result" {
    fieldsToShow = 4
    add field "BusinessAccount"
    add field "Type"
    add field "Status"
    add field "ClassID"
    add field "Country"
    add field "City"
    add field "Email"
    add field "Phone1"
    add field "Web"
  }
}

add screen "GIMB0002" {
  type = FilterListScreen
  add container "Filter_" {
    add field "Status"
    add field "ClassID"
  }
  add container "Result" {
    fieldsToShow = 4
    add field "BusinessAccount"
    add field "Type"
    add field "Status"
    add field "ClassID"
    add field "Country"
    add field "City"
    add field "Email"
    add field "Phone1"
    add field "Web"
  }
}

要将上面代码片段中定义的更改应用到本地 Acumatica ERP 实例,您可以将整个代码片段另存为 .msd 文件并将其放入本地网站的 App_Data\Mobile 文件夹。重新启动移动应用程序后,您的更改应应用于移动站点地图。要将 .msd 文件打包到自定义项中,您只需使用 Files[=66 添加即可=] 自定义管理器 的部分。

Business Accounts GI (GIMB0001)Business Accounts Filtered GI (GIMB0002) 映射之间的主要区别是:

  • 移动站点地图屏幕的类型:SimpleScreen 用于不带参数的 GI,FilterListScreen 用于 GI带参数

  • 定义容器的数量:1 无参数的 GI 和 2 有参数的 GI