【发布时间】:2018-07-18 02:54:54
【问题描述】:
我们在 Acumatica 实例中创建了一堆通用查询,现在想让其中一些也可以通过 Acumatica 移动应用程序访问。将通用查询包含到移动站点地图中的推荐方法是什么?
【问题讨论】:
我们在 Acumatica 实例中创建了一堆通用查询,现在想让其中一些也可以通过 Acumatica 移动应用程序访问。将通用查询包含到移动站点地图中的推荐方法是什么?
【问题讨论】:
在 Acumatica 中,可以使用或不使用参数来创建通用查询:
如果一个 GI 没有定义任何参数,它将只包含 Result 网格,例如下面的 Business Accounts GI (GIMB0001):
带有参数的 GI 将同时包含 Filter_ 顶级表单和 结果 网格,例如 Business Accounts Filtered GI (GIMB0002 ) 如下:
下面的代码 sn-p 显示了如何使用 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"
}
}
要将上面代码 sn-p 中定义的更改应用到本地 Acumatica ERP 实例,您可以将整个代码 sn-p 保存为 .msd 文件并将其放入您本地网站的 App_Data\Mobile 文件夹。重新启动移动应用程序后,您的更改应应用于移动站点地图。要将 .msd 文件打包成自定义文件,您只需使用 Files 部分添加它>自定义管理器。
企业帐户 GI (GIMB0001) 和 企业帐户过滤后的 GI (GIMB0002) 映射之间的主要区别是:
移动站点地图屏幕的类型:SimpleScreen 用于不带参数的 GI,FilterListScreen 用于带参数的 GI
已定义容器的数量:1 表示不带参数的 GI,2 表示带参数的 GI
【讨论】: