检索保存为草稿的 Orbeon 表单

Retrieve Orbeon form that was saved as a draft

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

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

调用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
    );
%>

有了这个,表单将从数据库加载数据,用户将能够对数据进行更改。