检索保存为草稿的Orbeon表单

问题描述 投票:0回答:1

我发布了Orbeon表格。我启用了两个表单按钮,保存并发送:

  • 使用properties-local.xml文件覆盖“发送”按钮的操作。它将数据发送到我的Web应用程序。
  • 问题出在“保存”按钮上。我知道Save按钮将表单保存在Orbeon数据库中作为草稿。如何使用保存的数据检索该表单并再次显示?

我知道在将表单发送到我的Web应用程序端点时,会返回以下值:文档,进程,有效,应用程序,表单,表单版本和语言。

orbeon
1个回答
1
投票

调用Java嵌入API时,只需提供以下内容:

<%
    API.embedFormJava(
        request,
        out,
        myAppName,    // set this as needed
        myFormName,   // set this as needed
        "edit",       // the `edit` mode loads form data from the database
        myDocumentId, // this is the id of the document in the database
        null,
        null
    );
%>

这样,表单将从数据库加载数据,用户将能够更改数据。

© www.soinside.com 2019 - 2024. All rights reserved.