检索保存为草稿的 Orbeon 表单
Retrieve Orbeon form that was saved as a draft
我发布了 Orbeon 表格。我启用了两个表单按钮,保存和发送:
- “发送”按钮的操作已使用
properties-local.xml
文件覆盖。它将数据发送到我的网络应用程序。
- 问题出在“保存”按钮上。我知道“保存”按钮将表单作为草稿保存在 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
);
%>
有了这个,表单将从数据库加载数据,用户将能够对数据进行更改。
我发布了 Orbeon 表格。我启用了两个表单按钮,保存和发送:
- “发送”按钮的操作已使用
properties-local.xml
文件覆盖。它将数据发送到我的网络应用程序。 - 问题出在“保存”按钮上。我知道“保存”按钮将表单作为草稿保存在 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
);
%>
有了这个,表单将从数据库加载数据,用户将能够对数据进行更改。