orbeon

XBL control's attributes

一个人想着一个人 提交于 2019-12-13 00:42:52
问题 I have my custom XBL control, let's say : <fr:my-control id="my-control-id" attr1 = "value1 value2 value3" attr2 = "aaa" ../> In my XBL I have defined a handler and attr1 as xf:select <xbl:handlers> <xbl:handler event="my-custom-event" phase="target"> <xf:send submission="my-submission"/> </xbl:handler> ... <xf:select ref="@subOn"> And in dialog.control.details I have added : <xf:select appearance="full" ref="if ($xforms-control/self::xf:select) then $bound-node else ()"> <xf:label>Send

Which HTML tag can be used to accept dynamic class name in Orbeon Forms

 ̄綄美尐妖づ 提交于 2019-12-12 23:13:10
问题 I use Orbeon Forms and I want to set a dynamic class name on a div or span (or any non-XForms tags like xforms:output ) so that group of controls can be set with that CSS class. <div class="color-with-{if(/fetch/data1='Yes') then 'green' else 'red'}"> But this is not working. When I look at the HTML source code after the form is rendered it seems it did not processed that dynamic part. <div class="color-with-{if(/fetch/data1='Yes') then 'green' else 'red'}" id="xf-279"> However this dynamic

Making XForms enforce the constraint and type model item properties only when field is populated

情到浓时终转凉″ 提交于 2019-12-12 18:06:21
问题 I have a simple XForm with an input field where I have specified the field to be optional with the required="false()" property. However, I would like add a type and constraint property to the field to enforce an integer type and that the integer must be greater than 10, but only if data is entered in the field; after all, the field is optional. For example: <xf:bind nodeset="testGreaterThanTen" required="false()" type="xs:integer" constraint=". > 10"/> I would have thought the required="false

Orbeon Forms - Find current Document_id

感情迁移 提交于 2019-12-12 06:37:39
问题 I want to have a text box have the current document_id displayed. Is there an XPath expression to get that? 回答1: The following XPath returns the current document id, the same that you see on the URL on the edit page you get by clicking on a form instance in the summary page. xxforms:instance('fr-parameters-instance')/document Note however that if you use this in a calculated expression, for new forms, the value won't show until a change was done in the form (e.g. users entered a value in a

Orbeon forms editor: “Error at line 32 of oxf:/forms/orbeon/builder/service/toolbox.xsl”

旧巷老猫 提交于 2019-12-12 05:06:05
问题 Been successfully using Orbeon 4.4CE for a long time, but today the Form Editor seems to have suddenly broken. Creating a new form (or editing an existing form) shows a partial toolbox missing most of the controls. Log file reveals this: INFO ProcessorService - /fr/service/custom/orbeon/builder/toolbox - Received request ERROR XSLTTransformer - Error at line 32 of oxf:/forms/orbeon/builder/service/toolbox.xsl: An empty sequence is not allowed as the value of variable $resources-property ERROR

Orbeon - HTTP Headers

ぃ、小莉子 提交于 2019-12-12 04:07:29
问题 I have a form created by Form Builder and I want to display the values of request headers in a label control, could I please know where to add xxf:get-request-header() ? Is it on the initial value box of the control and are there configurations I need to make in the properties-local.xml file in order to make this work? 回答1: You can use formulas , and more specifically a calculated value to set the value of a field, but at this point Form Builder doesn't support setting the label of a field

Orbeon Forms - Uploading attachments and retrieving

妖精的绣舞 提交于 2019-12-12 03:56:31
问题 I have a requirement to attach a PDF file with a form created by using Orbeon Form builder. Is there an inbuilt form builder control which I can use for this and please help me to retrieve the attached PDF file when the Orbeon form is submitted. 回答1: Upon users submitting the form, Orbeon Forms can run a process you define. This process can use the send() action to have the data entered by users sent through an HTTP POST to a service you provide. If files were attached to the form, the data

How can I add a “category” to forms, in addition to the “app” and “form”?

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:33:47
问题 I have changed the code of Orbeon Form Builder to add a new input field in dialog-form-settings.xbl : <xf:input ref="category" id="fb-category-input" xxf:autocomplete="off"> <xf:label>Category</xf:label> <xf:hint>input Category</xf:hint> </xf:input> <!-- Dispatch event with result --> <xf:dispatch name="fb-update-metadata" targetid="fb-dialog-form-settings"> <xf:property name="app" value="instance()/app"/> <xf:property name="form" value="instance()/form"/> <!-- Add By Haibpl --> <xf:property

Orbeon Form Builder - Session Issue

人盡茶涼 提交于 2019-12-12 01:53:10
问题 I have been facing an issue in the orbeon form builder. It asks me often to reload the page. How many requests would it handle at a time?. Is there any specific tomcat configuration to handle multiple requests?. There seems to be a memory issue. I have added the configuration in the TOMCAT_HOME/bin/catalina.sh file. I have also attached the screen shot of the error dialogue and the tomcat console error message. Please guide me on this to resolve issues. Tomcat Configuration export CATALINA

Orbeon Single sign-on to SAP Netweaver

荒凉一梦 提交于 2019-12-12 00:21:46
问题 We have setup Orbeon 4.0 beta 3 on SAP Netweaver 7.3 with custom persistancy layer. This layer is created on Netweaver with this in mind: http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api Basic CXF webservices which acts as a proxy to the SAP Backend where we store the form and data. Connection to the backend is made via SAP HTTPDestination. This setup works as long as authentication is turn off in web.xml etc. The next step was to enable this with SSO in mind. So