Вопрос

I am very new to Orbeon and XForms.

I have created a form with input field "BaseId"

<xf:input id="control-3-control" bind="control-3-bind">
    <xf:label ref="$form-resources/control-3/label"/>
    <xf:hint ref="$form-resources/control-3/hint"/>
    <xf:help ref="$form-resources/control-3/help"/>
    <xf:alert ref="$fr-resources/detail/labels/alert"/>
</xf:input>

and i want when i summit this form, in crud.xpl
method PUT i cant get value of BaseId through

<sql:param type="xs:string" select="/request/baseid"/>

Help me,please
Sorry for my bad English

Это было полезно?

Решение

The value of controls are passed to the persistence layer REST API in an XML document, as the body of the HTTP request. So in crud.xpl (say the one for eXist), this will be a document under /request/body. The exact path depends on your section and control name. For instance, if the section is named address and the field city, the value will be under /request/body/form/address/city.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top