xforms

Orbeon Nightly Build is not letting me connect to MYSQL database

南笙酒味 提交于 2019-12-13 04:19:50
问题 I am trying to update existing orbeon installation with nightly build and use the existing MYSQL database, but the new version is not letting me connect to mysql databse. It is defaulted to eXist database. I set the property oxf.fr.persistence.service.mysql.datasource to mysql : <property as="xs:anyURI" name="oxf.fr.persistence.service.mysql.datasource" value="mysql"/> but no use. can some one please help me with this connection issue. 回答1: The way you configure which persistence layer to use

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

How to save user entered values in XForms textbox

穿精又带淫゛_ 提交于 2019-12-12 03:10:02
问题 I am pretty new in xforms. and this question seems to b very simple. I have an xform which contain two text boxes and a button control. I want that when a user submits the form, the values in the text box are stored in the xform model. How I can do this? Code is given below, when i click on the button , values in the model element doesnot change. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:form="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xml:lang="en">

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

XForms: set default selection in dropdown in binding

烂漫一生 提交于 2019-12-11 13:46:16
问题 I have a main instance named 'myinstance' which has the element color. Color can be 'Red', 'Blue', 'Green' or ''Yellow'. The colors are populated in a drop-down from another instance called 'colorsinstance'. When my form loads, I want the default in the dropdown to be set to 'Green' in the nodeset binding. <instance id="colorsinstance"> <items> <item label="Color1" value="Red"/> <item label="Color2" value="Blue"/> <item label="Color3" value="Green"/> <item label="Color4" value="Yellow"/> <

Orbeon Xforms nested repeats

泄露秘密 提交于 2019-12-11 08:28:39
问题 I am trying to create a form with nested repeats that runs in Orbeon server. The idea is to have some elements that can be repeated and other elements inside the first one, that also can be repeated. i.e a block for inserting personal information (for several persons in a repeat) and for each person, we can add several phone numbers (also a repeat). I have not found so much information about how to do it, and I suppose that I can create this: Other StackOverflow question (but this example

Orbeon form localization using current site's session language

六眼飞鱼酱① 提交于 2019-12-11 07:49:35
问题 I'm using ORBEON 2018.2.3.201905172253 PE within SAP Commerce (Hybris). From Orbeon documentation and the tests I've run, I understand forms localization works through a language dropdown selector within each form. The thing is, I already have a language selector for my entire website, as usual. So, let's say a user gets into my site, which default language is English. Afterwards, he changes the site's language to Chinese. He is browsing my site in Chinese and navigates to a form which

Write constraint to validate a field based on the value entered in another field in Orbeon Form Builder

匆匆过客 提交于 2019-12-11 05:04:10
问题 I want to validate the size of the phone number field based on the selection made in the Phone Type field. Cell numbers should be 10 in size, Home and work numbers should be 11 in size. How would I write the constraint expression in Orbeon Form Builder. I tried using if in the constraint field, but was unsuccessful. Thank you for your help! 回答1: Let's say you have two controls: a phone type and a phone number. Create the phone type control, for instance as a drop-down or radio buttons. Give

Growing eXist database

╄→гoц情女王★ 提交于 2019-12-08 11:01:44
问题 I'm using Orbeon Forms, and eXist to store filled forms there. And I have next problem, eXist is growing more than 500 MB per day. If I will made reserve copy of whole database, then will delete all DB files, and restore reserved copy, then DB is only 1 GB large, but after few days it becomes 4 GB, and grows, grows and grows... First I was using embeded eXist 1.2.6, and I thought that it's unstable version, so I moved all data to external eXist 1.4.1, but still it continue to grow in new