Orbeon,负责填写表格的文件

时间:2013-08-02 11:01:44

标签: persistence orbeon

我正在寻找负责xml中已完成数据模型的文件。例如,它看起来像:

<form xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:version="java:org.orbeon.oxf.common.Version" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:exf="http://www.exforms.org/exf/1-0">
   <section-1>
      <control-3>name</control-3>
      <control-1>second-name</control-1>
   </section-1>
</form>

此示例可以存储包含两个输入字段(name,second-name)的简单表单。 我想找到它,因为我想添加参数包含完成此表单的用户的id。所以我想改变模型,以完成的形式xml达到以下效果:

<form xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:version="java:org.orbeon.oxf.common.Version" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:exf="http://www.exforms.org/exf/1-0">

<user-who-complete-this-form-ID>100</user-who-complete-this-form-ID>

   <section-1>
     <control-3>name</control-3>
     <control-1>second-name</control-1>
   </section-1>
</form>

或许有人知道其他方式提供完成表单的用户的id到拥有持久层?

问候

1 个答案:

答案 0 :(得分:0)

这看起来就像您在表单生成器中创建的表单的数据。如果确实如此,并且您想要添加字段,则可以从表单生成器中执行此操作,重新发布表单,新表单的实例将包含您添加的附加字段。