orbeon

How to do something with selected values of an xforms:select every time they change?

不打扰是莪最后的温柔 提交于 2019-12-07 22:28:43
问题 I have this problem with XForms I am running on Orbeon Forms. I am using a fr:box-select control as follows: <fr:box-select bind="box-select-bind" id="box-select-control"> <xforms:action ev:event="xforms-value-changed"> <xxforms:variable name="selected-value" select="."/> <xforms:message level="modal">Hello:<xforms:output select="$selected-value" /> </xforms:message> </xforms:action> <xforms:itemset nodeset="instance('codes')/box-select/item"> <xforms:label ref="label"/> <xforms:value ref=

How to create Orbeon custom control XBL with predefined visibility, control name, default value?

不问归期 提交于 2019-12-07 01:43:31
I have created a custom control (hidden text box with some predefined value), where I want to set visibility=false() , controlName="Mycustom" , default value="This is my custom control" in XBL file. So that whenever we use that custom control from Orbeon Form Builder, it will come with all default values with no need to set anything. XBL: <xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml

Custom control: dropdown values from XML file

寵の児 提交于 2019-12-06 12:45:52
问题 Here is my custom control: <?xml version="1.0" encoding="UTF-8"?> <xbl:xbl xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:saxon="http://saxon.sf.net/" xmlns:xbl="http://www

Custom control: dropdown values from XML file

落爺英雄遲暮 提交于 2019-12-04 18:00:56
Here is my custom control: <?xml version="1.0" encoding="UTF-8"?> <xbl:xbl xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:saxon="http://saxon.sf.net/" xmlns:xbl="http://www.w3.org/ns/xbl"> <metadata xmlns="http://orbeon.org/oxf/xml/form-builder"> <display-name lang="en"

Running Orbeon-Form-Builder-Generated-Form with Java Application

别来无恙 提交于 2019-12-04 06:23:36
问题 Should I be able to run Orbeon-Form-Builder-Generated-Form with Java Application, i.e. Copy the source of the Form into a simple.JSP (using separate deployment as mentioned in http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications) ? I found that the evaluation of $form-resources fails. Why ? simple.jsp XML <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:/

Where can we get the form data in xml/metadata format on click of Send button event?

不羁岁月 提交于 2019-12-02 19:34:44
问题 I am a new scala learner. As a part of requirement I need to insert the form data in activemq queue for submit event. I tried to debug the send method code to know where exactly do we get the document/form data in xml format on click of send button in "FormRunnerActions.scala" class. Due to my insufficient code analysis I am not able to find where exactly do I get the form data in xml format. Can anyone please help me the file name/ method name where we can get and save the form data in a

How can I set the relevant property of an Orbeon element to depends on if a previous element is visited or not?

两盒软妹~` 提交于 2019-12-02 18:39:55
问题 I am trying to create in a form some elements that are visible if one specific element has been visited or not. Is it possible? At this moment, I only can achieve this copying the relevant part of the first element to the others one, but, in the case on one element depends on many others elements, the relevant rule is too large. Then I am looking for some way to simply this: is there any kind of function like "isVisible()"? Something like (i.e. control-2 must be visible only if control-1 is

Running Orbeon-Form-Builder-Generated-Form with Java Application

回眸只為那壹抹淺笑 提交于 2019-12-02 13:38:20
Should I be able to run Orbeon-Form-Builder-Generated-Form with Java Application, i.e. Copy the source of the Form into a simple.JSP (using separate deployment as mentioned in http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications ) ? I found that the evaluation of $form-resources fails. Why ? simple.jsp XML <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3

Orbeon Form Builder - hyperlink with dynamic url?

China☆狼群 提交于 2019-12-02 11:10:14
In Orbeon 4.4 Form Builder, I'd like to be able to add a hyperlink control to a form, where the target URL is constructed partially from values available in other form fields. In addition, I would like to be able to control the visibility of the hyperlink the same way as other FB controls (i.e. via the "relevent" attribute). What would be the best approach? Tried using the existing "link button" control, & adding this within the appropriate corresponding <xf:trigger> tag in the source: <xf:action ev:event="DOMActivate"> <xf:load show="new" resource="http://staticurl.com"/> </xf:action> This

Orbeon static autocomplete not working as expected

淺唱寂寞╮ 提交于 2019-12-02 11:07:56
I'm using Orbeon v2017.1 and I'd like to add an autocomplete field with a static itemset. I've tried implementing it as it is defined here https://doc.orbeon.com/form-runner/component/autocomplete#static and I've also tried creating a service and action which will fill the data, but it displays it as radio buttons instead of populating the dropdown. Is there a working example for this version of Orbeon which I could look at? EDIT: Here is an example of two autocomplete fields (dynamic and static) I'm not sure if the used free web service supports filtering, so the fr-search-value was not used