Hello,
I am testing with orbeon-3.9.0.201205082332-CE to see if the new form builder feature "Custom XML" works. With "Advanced > Customize XML" I put my own XML and tried to design a form. I run into different problems (little refresh problem and bugs after which I can't open a saved form any more) and want to ask if somebody successfully works with the new feature? Is there some more documentation? I found this: http://wiki.orbeon.com/forms/projects/form-runner-builder/form-builder-custom-xml Thank you very much for sharing your experiences, Karolin Heiss |
Administrator
|
Hi Karolin,
The feature is not yet documented, but we plan to document it for the release. Do you have an example of problems you found? -Erik On Wed, May 9, 2012 at 8:24 AM, Karolin Heiss <[hidden email]> wrote: > Hello, > > I am testing with orbeon-3.9.0.201205082332-CE to see if the new form > builder feature "Custom XML" works. > > With "Advanced > Customize XML" I put my own XML and tried to design a form. > I run into different problems (little refresh problem and bugs after which I > can't open a saved form any more) and want to ask if somebody successfully > works with the new feature? > Is there some more documentation? I found this: > http://wiki.orbeon.com/forms/projects/form-runner-builder/form-builder-custom-xml > > Thank you very much for sharing your experiences, > > Karolin Heiss > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-Advanced-Custom-XML-help-tp4620806.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
here is what I tested and doesn't work like I expected: 1. Create a new xForm. 2. Delete automatically generated 'Untitled section'. 3. Switch to 'Custom XML' and apply XML: <form> <HierarchyEmployeeEmpl> <Bookmark/> <Employee> <EmployeeNumber>123</EmployeeNumber> <CodeName>KAROLIN HEISS</CodeName> <LastName>Heiss</LastName> <FirstName>Karolin</FirstName> <BadgeID>123-456-789</BadgeID> <Child> <ChildNumber>1</ChildNumber> <LastName>Heiss</LastName> <FirstName>Anna</FirstName> </Child> <Child> <ChildNumber>2</ChildNumber> <LastName>Heiss</LastName> <FirstName>Otto</FirstName> </Child> </Employee> </HierarchyEmployeeEmpl> </form> 4. Press 'New Section' => ERROR: the new sections doesn't appear 5. Workarround (later just called CustomXMLRefresh) I found out, that a missing section appears after I apply the 'Custom XML' again. 6. Now I want to bind the new section to my Custom XML. Because I can't bind it directly to 'HierarchyEmployeeEmpl/Employee' I bind it to 'HierarchyEmployeeEmpl'. (would be helpfull to set a xPath as section name like 'HierarchyEmployeeEmpl/Employee') 7. press 'New Section' 8. do CustomXMLRefresh to see section -> section is visible now 9. 'move right' 10. 'Edit section details' 11. set section name 'Employee' 12. apply => ERROR: section disappears 13. With CustomXMLRefresh the section is visible again. 14. press 'Single-Line Text' in section Employee. 15. set control name 'EmployeeNumber' and xPath 'HierarchyEmployeeEmpl/Employee/EmployeeNumber' => ERROR (?): I am missing the 'Edit help' button and can't set the control title. 16. create 'New repeat' section and bind to 'Child'. => FAQ: Why can't I 'move right' like a 'New section'? 17. press 'Single-Line Text' in section Child. Set control name 'ChildNumber' and xPath 'HierarchyEmployeeEmpl/Employee/Child/ChildNumber' 18. ChildNumber data is shown properly in edit field 19. press 'Single-Line Text' in section Child. Set control name 'LastName' and xPath 'HierarchyEmployeeEmpl/Employee/Child/LastName' 20. Error message because control name 'LastName' already exists (HierarchyEmployeeEmpl/Employee/LastName). So I change the control name to 'ChildLastName'. 21. ChildLastName data is shown properly in edit field 21. Do CustomXMLRefresh => ERROR: control ChildLastName disappears because after CustomXMLRefresh the xPath is automatically set to the invalid xPath HierarchyEmployeeEmpl/Employee/Child/ChildFirstName. Beside this problems I wonder how to design a form which automatically displays all HierarchyEmployeeEmpl/Employee/Child? The Number of Repetitions parameters are numbers. I would like to set 'Maximum Number of Repetitions' to count(HierarchyEmployeeEmpl/Employee/Child). Please let me know if you can't reproduce this problems? I happily will do some more testing to help to improve the new feature. Cheers, Karolin |
Administrator
|
Karolin,
Thanks a lot. I have entered and fixed the first issue, and possibly more: https://github.com/orbeon/orbeon-forms/issues/200 You can also now specify an XPath expression for the section. #15: We are aware of the missing help editor. #16: We would like to implement universal selection/move: http://wiki.orbeon.com/forms/projects/form-runner-builder/form-builder-improved-item-selection No ETA for this one though! For min/max, things should work if you the min value is 1 and the max value 1 too. But this is also dependent on the following issue, which I have just entered: https://github.com/orbeon/orbeon-forms/issues/201 Thanks! -Erik On Thu, May 10, 2012 at 3:50 AM, Karolin Heiss <[hidden email]> wrote: > Hi Erik, > here is what I tested and doesn't work like I expected: > > 1. Create a new xForm. > 2. Delete automatically generated 'Untitled section'. > 3. Switch to 'Custom XML' and apply XML: > > <form> > <HierarchyEmployeeEmpl> > <Bookmark/> > <Employee> > <EmployeeNumber>123</EmployeeNumber> > <CodeName>KAROLIN HEISS</CodeName> > <LastName>Heiss</LastName> > <FirstName>Karolin</FirstName> > <BadgeID>123-456-789</BadgeID> > <Child> > <ChildNumber>1</ChildNumber> > <LastName>Heiss</LastName> > <FirstName>Anna</FirstName> > </Child> > <Child> > <ChildNumber>2</ChildNumber> > <LastName>Heiss</LastName> > <FirstName>Otto</FirstName> > </Child> > </Employee> > </HierarchyEmployeeEmpl> > </form> > > 4. Press 'New Section' > > => ERROR: the new sections doesn't appear > > 5. Workarround (later just called CustomXMLRefresh) > I found out, that a missing section appears after I apply the 'Custom XML' > again. > > 6. Now I want to bind the new section to my Custom XML. Because I can't bind > it directly to 'HierarchyEmployeeEmpl/Employee' I bind it to > 'HierarchyEmployeeEmpl'. (would be helpfull to set a xPath as section name > like 'HierarchyEmployeeEmpl/Employee') > > 7. press 'New Section' > 8. do CustomXMLRefresh to see section -> section is visible now > 9. 'move right' > 10. 'Edit section details' > 11. set section name 'Employee' > 12. apply > > => ERROR: section disappears > > 13. With CustomXMLRefresh the section is visible again. > > 14. press 'Single-Line Text' in section Employee. > 15. set control name 'EmployeeNumber' and xPath > 'HierarchyEmployeeEmpl/Employee/EmployeeNumber' > > => ERROR (?): I am missing the 'Edit help' button and can't set the control > title. > > 16. create 'New repeat' section and bind to 'Child'. > > => FAQ: Why can't I 'move right' like a 'New section'? > > 17. press 'Single-Line Text' in section Child. Set control name > 'ChildNumber' and xPath 'HierarchyEmployeeEmpl/Employee/Child/ChildNumber' > 18. ChildNumber data is shown properly in edit field > 19. press 'Single-Line Text' in section Child. Set control name 'LastName' > and xPath 'HierarchyEmployeeEmpl/Employee/Child/LastName' > 20. Error message because control name 'LastName' already exists > (HierarchyEmployeeEmpl/Employee/LastName). So I change the control name to > 'ChildLastName'. > 21. ChildLastName data is shown properly in edit field > > 21. Do CustomXMLRefresh > > => ERROR: control ChildLastName disappears because after CustomXMLRefresh > the xPath is automatically set to the invalid xPath > HierarchyEmployeeEmpl/Employee/Child/ChildFirstName. > > Beside this problems I wonder how to design a form which automatically > displays all HierarchyEmployeeEmpl/Employee/Child? The Number of Repetitions > parameters are numbers. I would like to set 'Maximum Number of Repetitions' > to count(HierarchyEmployeeEmpl/Employee/Child). > > Please let me know if you can't reproduce this problems? > I happily will do some more testing to help to improve the new feature. > > Cheers, Karolin > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-Advanced-Custom-XML-help-tp4620806p4623122.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hallo Eric,
I am want to tests your fixes - Thank you! -with freshly downloaded Orbeon Forms 3.9.0.post.201205150100 CE. But I stopped at #3 because I still can't see the new section. Do I have to wait for a later build than 201205150100 to test your fixes? Thank you very much, Karolin |
Administrator
|
Karolin,
That should be in that build. I will try this again (but probably not today). -Erik On Mon, May 14, 2012 at 11:28 PM, Karolin Heiss <[hidden email]> wrote: > Hallo Eric, > I am want to tests your fixes - Thank you! -with freshly downloaded Orbeon > Forms 3.9.0.post.201205150100 CE. > But I stopped at #3 because I still can't see the new section. > > Do I have to wait for a later build than 201205150100 to test your fixes? > > Thank you very much, > Karolin > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-Advanced-Custom-XML-help-tp4620806p4633983.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
That seems to work for me:
- new - delete section - switch to custom XML - paste custom XML - new section - section shows in the builder Now the section must be bound to a node so it shows at runtime. If I enter HierarchyEmployeeEmpl as XPath, it works. Then a nested control can bind to Bookmark, etc. It would be good if we didn't need to bind sections at all. Currently it is required so that Visibility/Read-Only work. I added an issue for this: https://github.com/orbeon/orbeon-forms/issues/205 -Erik On Tue, May 15, 2012 at 2:55 PM, Erik Bruchez <[hidden email]> wrote: > Karolin, > > That should be in that build. I will try this again (but probably not today). > > -Erik > > On Mon, May 14, 2012 at 11:28 PM, Karolin Heiss <[hidden email]> wrote: >> Hallo Eric, >> I am want to tests your fixes - Thank you! -with freshly downloaded Orbeon >> Forms 3.9.0.post.201205150100 CE. >> But I stopped at #3 because I still can't see the new section. >> >> Do I have to wait for a later build than 201205150100 to test your fixes? >> >> Thank you very much, >> Karolin >> >> -- >> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-Advanced-Custom-XML-help-tp4620806p4633983.html >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hey Erik,
I tested again with orbeon-3.9.0.post.201205202200 CE. Looks pretty good now :-) One problem with the nightly build: When I insert a new field/section etc. a question dialog is shown "This page is asking you to confirm that you want to leave - data you have entered may not be saved". If I press yes the URL is loaded . f.e. javascript:ORBEON.Builder.controlAdded.fire('fb$HierarchyEmployeeEmplEmployee-control$Child-control$td-8-td·1') Question: Hide add/remove icons in repeat section. I set boolean XPath expression "true()" for Read-Only on repeat section but add/remove icons in the repeat section are still shown. I open the configuration dialog and XPath expression is empty. Karolin |
Hi Erik,
With Edit source in Form Builder I saved the form made with a custom XML and opened it again with xforms-sandbox > Upload local file. Instet of the xForm an error is shown: Orbeon Forms Error xFormsTest.xhtml Is the created source not made to be displayed like this? There is no more error message so I don't know whats wrong? Thank you for your help, Karolin |
Administrator
|
In reply to this post by Karolin Heiss
Karolin,
Are you running Opera? We have seen that issue with that browser: https://github.com/orbeon/orbeon-forms/issues/207 Readonly on the repeat will make all nested controls readonly, but does not prevent adding/removing rows. But you can control the min/max values. What is the use case here? BTW today I committed more fixes related to the Custom XML mode: https://github.com/orbeon/orbeon-forms/issues/237 With the latest fixes, I don't reproduce the empty XPath for the readonly value. But we have an open issue for the fact that you can't specify a binding XPath for the repeat: https://github.com/orbeon/orbeon-forms/issues/201 -Erik On Mon, May 21, 2012 at 4:11 AM, Karolin Heiss <[hidden email]> wrote: > Hey Erik, > > I tested again with orbeon-3.9.0.post.201205202200 CE. > Looks pretty good now :-) > > One problem with the nightly build: > When I insert a new field/section etc. a question dialog is shown "This page > is asking you to confirm that you want to leave - data you have entered may > not be saved". If I press yes the URL is loaded . f.e. > javascript:ORBEON.Builder.controlAdded.fire('fb$HierarchyEmployeeEmplEmployee-control$Child-control$td-8-td·1') > > Question: Hide add/remove icons in repeat section. > I set boolean XPath expression "true()" for Read-Only on repeat section but > add/remove icons in the repeat section are still shown. I open the > configuration dialog and XPath expression is empty. > > > Karolin > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-Advanced-Custom-XML-help-tp4620806p4647987.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Karolin Heiss
Karolin,
The form must run via Form Runner. See this FAQ: Can I use Form Builder to create a form, and put the form on my web site? http://wiki.orbeon.com/forms/orbeon-forms-faq/faq-orbeon-form-builder#TOC-Can-I-use-Form-Builder-to-create-a-form-and-put-the-form-on-my-web-site- Now the following FAQ answer turns out to be a bit incorrect: Can I use Form Builder to create a form, paste the form in a JSP, and use separate deployment? http://wiki.orbeon.com/forms/orbeon-forms-faq/faq-orbeon-form-builder#TOC-Can-I-use-Form-Builder-to-create-a-form-paste-the-form-in-a-JSP-and-use-separate-deployment- We actually have an experimental way to process such forms in separate deployment. The relevant code is here: https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/ops/xforms/xforms-renderer.xpl#L70 The trick is to run unroll-form.xpl on the Form Runner form. But this is not really a supported feature at the moment. -Erik On Mon, May 21, 2012 at 4:28 AM, Karolin Heiss <[hidden email]> wrote: > Hi Erik, > > With /Edit source/ in Form Builder I saved the form made with a custom XML > and opened it again with /xforms-sandbox > Upload local file/. > Instet of the xForm an error is shown: /Orbeon Forms Error/ > > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4647997/xFormsTest.xhtml > xFormsTest.xhtml > > Is the created source not made to be displayed like this? There is no more > error message so I don't know whats wrong? > > Thank you for your help, > Karolin > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-Advanced-Custom-XML-help-tp4620806p4647997.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Erik Bruchez
Hi Erik
I test with orbeon-3.9.0.post.201205220600 CE: 1. Issues207: I am running Firefox and have the problem discribed in issue 207. 2. I show readonly data. I would like to compleatly hide add/remove buttons. 3. Issues237: Tested - ok 4. The generated form code runs 1x1 with separate deployment :-) How about an automatic, integrated Schema validation? If there is a Custom XML with belonging XSD a standard validation against the schema would be a good solution. Regards, Karolin |
Administrator
|
> Issues207: I am running Firefox and have the problem discribed in issue 207.
Ah yes, that's fixed now. > I show readonly data. I would like to compleatly hide add/remove buttons. Ok. I guess it would make sense, if the node to which the grid points to is readonly, to not show the buttons at all. We'll think about it. > Issues237: Tested - ok Great. > The generated form code runs 1x1 with separate deployment :-) > > How about an automatic, integrated Schema validation? If there is a Custom > XML with belonging XSD a standard validation against the schema would be a > good solution. You can import an XML schema in the builder. Do you need more? -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |