orbeon

Orbeon Form Builder - hyperlink with dynamic url?

不问归期 提交于 2019-12-02 08:58:23
问题 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

Orbeon Send Button With Parameters

ε祈祈猫儿з 提交于 2019-12-02 07:09:41
问题 I have looked for a while and cant find a solution that allows me to send request parameters from my forms to an external webapp when I press the save-final button. This is what I have so far in my properties-local.xml... <property as="xs:string" name="oxf.fr.detail.send.success.uri.*.*" value="http://localhost:8080/monnieapp/?id={xxf:get-request-parameter('doc-id')}"/> <property as="xs:string" name="oxf.fr.detail.process.save-final.*.*" value='require-uploads then require-valid then save

Orbeon index of repeat in repeatable section

依然范特西╮ 提交于 2019-12-02 03:25:18
I have repeatable section (not repeater) and inside it I have ouput field. How can I put the repeat index to this output? I want to bind outputs with index of current iteration. For example if I add 5 repeats I want to outputs show their index: 1,2,3,4,5. I know that there is functions like xxf:index, but they work only in repeater. Not obvious because the xxf:repeat-position() function works in the UI only, and the calculated values work in the model only. You could make changes by hand and write: <xf:output value="xxf:repeat-position()"/> 来源: https://stackoverflow.com/questions/27607637

How to add MongoDB data source in Orbeon

这一生的挚爱 提交于 2019-12-01 11:31:02
How do I add a MongoDB data source to Orbeon CE? I have been browsing through all the xml config files without any luck and the Orbeon documentation doesn't help very much. Any help would be appreciated. It is supposed to be achievable through the persistence api. Edit: And when having added the data source \ service under, for example, /fr/service/mongodb/* how do you make procedure calls to it from a form application, i.e. how do you use the /crud and /search to add and retreive information from the database? First note that support for MongoDB is at this point very much experimental. It is

What does the message “Invalid byte 2 of a 3-byte UTF-8 sequence” mean?

瘦欲@ 提交于 2019-11-30 17:46:35
I changed a file in Orbeon Forms, and the next time I load the page, I get an error message saying Invalid byte 2 of a 3-byte UTF-8 sequence . How can I solve this problem? This happens when Orbeon Forms reads an XML file and expects it to use the UTF-8 encoding, but somehow the file isn't properly encoded in UTF-8. To solve this, make sure that: You have an XML declaration at the beginning of the file saying the file is in UTF-8: <?xml version="1.0" encoding="UTF-8" ?> Your editor is XML-aware, so it can parse the XML declaration and consequently use the UTF-8 encoding. If your editor isn't

What does the message “Invalid byte 2 of a 3-byte UTF-8 sequence” mean?

最后都变了- 提交于 2019-11-30 01:10:11
问题 I changed a file in Orbeon Forms, and the next time I load the page, I get an error message saying Invalid byte 2 of a 3-byte UTF-8 sequence . How can I solve this problem? 回答1: This happens when Orbeon Forms reads an XML file and expects it to use the UTF-8 encoding, but somehow the file isn't properly encoded in UTF-8. To solve this, make sure that: You have an XML declaration at the beginning of the file saying the file is in UTF-8: <?xml version="1.0" encoding="UTF-8" ?> Your editor is

Orbeon Custom metadata at form level

十年热恋 提交于 2019-11-29 18:12:49
I want to configure success message ( successMessageTextBox ) and downloadLink ( linkTextbox ) at form level(meta-data) through formBuilder , so that admin can change and publish it anytime. Also these values can be accessible to properties-local.xml file to configure the success-message . e.g: navigate(uri="{xxf:instance('fr-parameters-instance')//linkTextbox}") success-message(message = "{xxf:instance('fr-parameters-instance')//successMessageTextBox}") Any suggestion would be appreciated!! UPDATE :- 1>MetaData if (exists(xxf:instance('fr-form-metadata')/linkTextbox)‌​) then navigate(uri="

XBL Orbeon custom control to show different success message on form save

只谈情不闲聊 提交于 2019-11-29 17:33:05
I am using yForm (Orbeon Form Builder) to generate form run time, where we have a requirement to set different custom success message for each form (eg: "Your contact form save successfully", "Your address form…"). I would like to configure this success message from Form Builder, so that whenever an end user saves that form, it can see the corresponding custom message. I'll assume that by "success message", you are referring to the message shown next to the buttons that are at the bottom of the form. This message is shown when the success-message() action runs. Actions are executed by a

Orbeon Custom metadata at form level

本秂侑毒 提交于 2019-11-28 12:34:52
问题 I want to configure success message ( successMessageTextBox ) and downloadLink ( linkTextbox ) at form level(meta-data) through formBuilder , so that admin can change and publish it anytime. Also these values can be accessible to properties-local.xml file to configure the success-message . e.g: navigate(uri="{xxf:instance('fr-parameters-instance')//linkTextbox}") success-message(message = "{xxf:instance('fr-parameters-instance')//successMessageTextBox}") Any suggestion would be appreciated!!

Orbeon Forms Postgres DB connection

假如想象 提交于 2019-11-27 09:38:31
I have tried to save the Orbeon forms in Postgres DB . I created data bases persistence layer but still forms are stored in the default eXist DB . I have created context(Data Base source) in the "Server.xml" from the tomcat7 and I have created "properties-local.xml" file in the Orbeon4.8 (orbeon/src/resources/config/properties-local.xml). My reference is this . Some one help me how to save the orbeon forms in Postgres DB? Once the database resource is configured, you can tell Orbeon to use it by adding a like like this to your properties-local.xml: <property as="xs:string" name="oxf.fr