Orbeon 表单 - 动态填充复选框

Orbeon forms - populate checkboxes dynamically

有没有办法用动态值填充复选框组件(或允许多项选择的不同组件)(就像您可以为动态下拉列表所做的那样)?假设我想用国家填充复选框。示例形式:https://demo.orbeon.com/demo/fr/orbeon/builder/edit/73aeafa983d00f305fb381d72e59ce7c69e2b1ea

是的,您可以使用操作和服务执行此操作:

  • 如果您的数据来自 returns JSON 或 XML.
  • 的服务,请使用 HTTP services
  • 如果您喜欢编写 SQL 从数据库中提取数据,请使用 database service
  • 使用 action to define when your service should be called (e.g. on form load), what data you want to pass to the service (if any), and what to do with the result, which, in your case, it to set the choices of a selection control.

请注意,操作和服务是 PE 功能。