xforms

Connect Chiba xForm to a restful web service (exist db)

I need to read an xml instance from an exist db. I am attempting to connect chiba to a restful web service via the following command: <xf:model> <xf:instance id="data-instance" src="http://myhost:8081/exist/rest/test/" /> </xf:model> However, I get the following error message when I load the xform: Object...

xform data grid

I am using orbeon to process my xforms. I am attempting to create a data grid that I can use to copy and paste rows/columns of data from my clipboard (excel). Do you have any clue how I can implement this? I just stumbled on the ajax dhtmlxgrid. http://dhtmlx.com/docs/products/dhtmlxGrid/samples/12_initialization_loading/03_grid_int_f...

XForms and multiple inputs for same model tag

Hi! I apologize ahead of time if I am not asking this properly.. it is hard to put into words what I am asking.. I have XForms model such as: <file> <criteria> <criterion></criterion> </criteria> </file> I want to have multiple input text boxes that create a new criterion tag. user interface such as: <xf:input ref=...

How to load and pass a Xforms form in Orbeon (How to Send instance to XForms) ?

Hi, I am using the Orbeon Forms solution to generate messages from filled-in web forms. I read different code snippetse in Orbeon's wiki on XForms submission from a pipeline, and I tried different solutions but it doesn't work, and there is no example with a POST from a pipeline, caught by a PFC and sent to an XForms view that receives...

Testing whether an event has happened after a period of time in jQuery

I'm writing a script for a form-faces xforms product that is keyed off an event built into form faces. The event is called 'xforms-ready'. I have define 'startTime' as happening as soon as the document in 'ready'. What I want the script to do is warn the user that it is taking too long before the 'xforms-ready' happens, say if it's been ...

XForms bind element error

Hi! I am changing my code to use binds in XForms (which is better practice than using nodesets everywhere!) but I am getting errors. The error message I receive is: "Error: XForms Error (8): id (data_criterion) does not refer to a bind element..." From tutorials/guides I have been using, it seems as though this should work, but clear...

XForms: set default date in binding

I am new to Xforms and need help setting the default date in nodeset binding. I need to set the default date to be current date + 30 days. How do I do this? ...

Can XPath concatenate two nodeset values? (for use in XForms)

Hi! I am wanting to concatenate two nodeset values using XPath in XForms. I know that XPath has a concat(string, string) function, but how would I go about concatenating two nodeset values? BEGIN EDIT: I tried concat function.. I tried this.. and variations of it to make it work, but it doesn't <xf:value ref="concat(instance('para...

Possible to set two values for two different nodes from user input in XForms?

Hi! I would like to set two values for two different nodes from user input in XForms. I am curious about how this is done, if at all possible. For example, if I have the following data model: <xf:instance id="criteria_data" xmlns=""> <criteria> <set> <root></root> <criterion></criterion> </set...

XForms: set default selection in dropdown in binding

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"...

XForms: set relevancy for a list

I have a list element in my model instance. I am using Orbeon XForms. <mypage> <list name='mylist'/> <status /> </mypage> Status can be Private or Public. In xforms:binding, I want to set relevant attribute for showing/hiding the list. The list is bound to a drop-down. If status is Private I want to show the list, if status is...

robust server side dynamic form engine for ASP.NET

I've recently implemented a simple dynamic forms engine that uses dynamically loaded ASP.NET controls in concert with an EAV schema to handle the variable nature of the data model. The business was sufficiently satisfied with the end product for a time, but is now clamoring for much more complex dynamic forms: Field visibility is tied...

Tree View/Navigation in XForms

Hi! I am wondering.. is tree view/navigation possible to do (and somewhat easily) in XForms given a XML data structure? If it is possible, where can I find a really excellent example (code and hopefully a working form to view)? Also, are there any tips you have for implementing this? (I'm new to XForms, and only know the basics so far...

XForms: Using calculate and xxforms:default attribute in nodeset binding

I have form1 passing a query string parameter(param1) to form2. I pass param1=true from form1. In form 2, I am trying to set the value of the param1 into a local instance. If I DO NOT pass param1 from form 1, I want form2 to take the value of param1 to be false. Here is my instance. <xforms:instance id="querystring-instance"> <query...

XForms: xxforms:variable breaks xforms-alert functionality

I have the following tag in my form to capture a query string parameter. <xxforms:variable name="param1" select="xxforms:get-request-parameter('param1')"/> I have many form fields on this form and some of them are required fields displaying the red alert icon. As user fills these fields, the red alert icon changes to green check mark....

xforms: how to prevent xxforms:default value from over-writing user input

I have a dropdown to display status, which can be Enabled(true) or Disabled(false). Here is my xml instance. <?xml version="1.0" encoding="UTF-8"?> <page> <file-name></file-name> <status></status> </page> By default, status should be true. So I have set it in binding as follows. <xforms:bind nodeset="./status"...

Localizing XForms in EPiServer File Manager

In the EPiServer file upload dialogue, there is a section for adding meta data to an uploaded file such as Title, Link, Description, Author and Publisher. These form fields are implemented using XForms and configured in FileSummary.config. The headings for these fields are defined directly in HTML markup containing the XForms controls a...

Possible to implement an XForms Color Picker? (Not using Orbeon)

Hi! I'm looking to implement an XForms Color Picker/Selector/Control (you know where it shows boxes or shades of colors in a dropdown type control). Is it possible to do this in XForms (without using Orbeon; I am using XSLTForms)? Is so, how is it implemented, or can anyone point me to (simple) code examples that do? Thanks! :) ...

XML for User Interface Definition

I'm looking for information to choose a XML for User Interface Definition to build UI in new project. The project's objective is running in both web and desktop environments and support cross-platform. Therefore I focus on XUL and XForms but I'm not familiar with the XForms. Please give me some advices, what are cons and pros and the fut...

XForms: Setting relevant removes tag from XML

I have a drop down with 2 options "Upload File", "Add URL". If user selects Upload file, my form will display a file selector. If user selects Add URL, the form will hide the file selector and instead display a textbox. I have done this using relevancy. <xforms:bind nodeset="./document" relevant="instance('test')/uploadMethod='Upload Fi...