orbeon

readonly field behaviour in Orbeon Forms

╄→гoц情女王★ 提交于 2019-12-24 22:25:08
问题 We have an issue with the field readonly behaviour in Orbeon Forms. We usually write conditions in the bind definitions to tell when a field should be readonly, so when the condition is met, the field on the form(HTML browser) will not be editable. However, in the HTML Page source of the field we see that the field holds up the property disabled="disabled" but not readonly="readonly". Because of the property disabled="disabled" the data in the input field will be shown in grey color( IE

How can I remove the content of an element when is not relevant?

随声附和 提交于 2019-12-24 14:44:26
问题 If I have a radio button with three options A, B, C and I have an input field that the relevancy depends on if the radio button has the value A. Then: If I select the value A in the radio button, the input field is visible and I can add a value. BUT when I change the radio button to B, the Input field is hidden but the value is still there (if I select A again, I can see the value) Is it possible to remove the value by an event? 回答1: The simplest is to reset the value with a calculate , which

passing values between a section template and an other section

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:31:22
问题 i'm using Orbeon section templates in a common library that i use in multiple forms. I need some values of a given section template to determine the visibility of some controls in other sections of my form. So i'm looking for a solution to parametrize the section template in order to never access its inner control values. Can someone pls explain to me how to achieve that? 回答1: To refer to the value of a field which is inside a section template from a field outside of that section template

How to create checkbox item resulting with 'yes'/'no' values instead of 'true'/'false'?

你。 提交于 2019-12-24 10:17:05
问题 I've got a problem and hope it's only my lack of experience in XForms. I need to create checkbox item for data that is defined as an enumeration 'Yes'/'No'. Basically it's just boolean value but with another pair of values. What I've already been able to do is something that basically works but need extra data node in model: <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http:/

Orbeon Forms Radio Button Alignment

我是研究僧i 提交于 2019-12-24 08:39:41
问题 Can someone please tell me how to align Orbeon forms Radio Buttons to have values horizontally rather than one below the other? 回答1: For now, you can go to the Control Settings, and under "Custom CSS classes": If you're using radio radio buttons, enter xforms-select1-appearance-xxforms-horizontal If you have checkboxes, enter xforms-select-appearance-xxforms-horizontal In the future, we're planning to have a more straightforward and explicit way of doing this, most likely directly in the

Orbeon dialog is shown in Chrome 59V but not working in Chrome 60V

你离开我真会死。 提交于 2019-12-24 07:47:48
问题 We have Orbeon Forms implemented in a project. When we edit an Orbeon dialog is opened to enter some values. It was working successfully with Chrome 59.0. Last month Chrome browser had an update and updated to version 60.0. The same code for the Orbeon dialog is not showing. A request sent to Orbeon is successful and getting the response back but not showing in Chrome. This is working as expected in Internet Explorer and Chrome 59.0. 回答1: This is a known issue with versions of Orbeon Forms up

How to convert JSON to XML in Orbeon?

余生颓废 提交于 2019-12-24 06:37:29
问题 With JSON support, I'm able to call a web service. Orbeon will internally change the JSON to XML. Question is, inside the XML, there is a node element that contains JSON string. How do I convert that into XML and assign it an variable(so I can use XPath for further query)? Is there any Orbeon converter that can be called? Example of instance data after submission to the web service: <json type="object"> <data> { "name": "Mark", "age": 21 } </data> </json> 回答1: Although this is not documented,

cannot connect orbeon to my own mysql

最后都变了- 提交于 2019-12-24 03:14:07
问题 I have tried all steps described in http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/oracle-and-mysql-persistence-layers#TOC-MySQL2 . I am using Orbeon Forms 4.7 and XAMPP v3.2.1. My steps are: Create a new user orbeon with password orbeon and new schema orbeon. Create the tables used for Orbeon Forms in the orbeon schema. Download mysql-connector-java-5.1.33-bin.jar and copy it in xampp\tomcat\lib. Edit Tomcat's server.xml, and within the for Orbeon Forms adding a <Resource>

Orbeon Form Builder - Referring to a control within a Section Template

假如想象 提交于 2019-12-23 21:48:39
问题 I have a number of forms that all reference a 'Header' Section Template. I would like to reference a control in this section template from another control in the form. (Using the method shown here: Write constraint to validate a field based on the value entered in another field in Orbeon Form Builder) I get the following error when I try to reference a control named 'section' in the section template: Undeclared variable in a standalone expression: $section Here is the XPath Expression I am

Re-initialize XBL component on xxforms-iteration-moved

纵饮孤独 提交于 2019-12-23 15:17:26
问题 I have a XBL component which creates a checkbox control in javascript. Value is set in javascript during the component initialization. Component works well when not used inside repeat but inside repeat when I try to move rows up or down XBL control doesn't change the state. xxforms-iteration-moved event is fired on the row which is moved but doesn't fire on the row which changes position during this move. For instance, if I move row 3 to row 2 then xxforms-iteration-moved is fired on row 3