将自动完成字段迁移到动态下拉列表

Migrate autocomplete field to dynamic dropdown

我使用的是 Oberon 表单版本 2019.2 CE。

我想将自动完成字段迁移到动态下拉列表。作为资源(资源 URL)我使用地址:<my_service_address>/name={$fr-search-value}&param2={../c_field_name}

c_field_name 是其他动态下拉列表。

当我使用自动完成时一切正常(来自服务的正确响应),但是当我切换到动态下拉列表时响应不正确(空响应)。看起来 {../c_field_name} 是空值。

当我向我的服务传递一些测试值时(而不是 {../c_field_name}),例如:

<my_service_address>/name={$fr-search-value}&param2=1

一切正常,所以我的服务运行良好。

我尝试使用 $c_field_name 而不是 {../c_field_name},但是没有用。

你有什么建议吗?

而不是 ../c_field_name,使用 xxf:instance('fr-form-instance')//c_field_name

另见附于 this message, which uses this technique to create chained dropdowns, where each dropdown passes to the service the value selected by the user in the previous dropdown. And ideally, you should be able to just write $c_field_name, which is covered by request for enhancement #309 的表格。