Hi,
I have tried saving of the data, it works but i am not able to fetch the data on click of refresh. Please help me out, i am pasting my xhtml file content. <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.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:exforms="http://www.exforms.org/exf/1-0" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:saxon="http://saxon.sf.net/" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <xhtml:head> <xhtml:title>Untitled Form</xhtml:title> <style type="text/css"> .xforms-label { font-weight: bold } .books-label { display: -moz-inline-box; display: inline-block; width: expression('9em'); min-width: 9em; } .xforms-textarea-appearance-xxforms-autosize, .xforms-textarea-appearance-xxforms-autosize textarea { width: 20em; margin-bottom: 2px } .xforms-input input { width: 20em; margin-bottom: 2px } .xforms-select1 { margin-bottom: 2px } .xforms-select1 input { margin-bottom: 2px } .books-table { background-color: #cccccc } .books-table .add-td { width: 33em } .books-table .form-td { width: 33em; background: white; padding: .5em } .xforms-repeat-selected-item-1{ background-color: #cccccc } .xforms-repeat-selected-item-1 .books-action-table { margin-bottom: 1em } .books-action-table td { white-space: nowrap; vertical-align: middle; padding-right: 1em } .books-action-table .xforms-submit img { vertical-align: middle } .books-action-table .xforms-trigger img, .books-action-table .xforms-submit img { margin-right: 5px; vertical-align: middle } .books-action-table .xforms-trigger span, .books-action-table .xforms-submit span { vertical-align: middle } </style> <xforms:model id="fr-form-model"> <xforms:instance id="main"> <dummy/> </xforms:instance> <xforms:instance id="add-book-instance"> <books/> </xforms:instance> <xforms:instance id="book-instance"> <book xmlns=""> <title/> <author/> <language/> <link/> <rating/> <notes/> </book> </xforms:instance> <xforms:instance id="delete-book-instance"> <books> <book> <id/> </book> </books> </xforms:instance> <xforms:instance id="languages-instance"> <languages xmlns=""> <language> <name>English</name> <value>en</value> </language> <language> <name>French</name> <value>fr</value> </language> <language> <name>Spanish</name> <value>es</value> </language> </languages> </xforms:instance> <xforms:instance id="ratings-instance"> <ratings xmlns=""> <rating> <name>1</name> <value>1</value> </rating> <rating> <name>2</name> <value>2</value> </rating> <rating> <name>3</name> <value>3</value> </rating> <rating> <name>4</name> <value>4</value> </rating> <rating> <name>5</name> <value>5</value> </rating> </ratings> </xforms:instance> <xforms:submission id="list-submission" ref="instance('main')" replace="instance" method="post" action="/addmore/get"> <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while saving!</xforms:message> </xforms:submission> <xforms:submission id="save-submission" ref="instance('add-book-instance')" action="/repeat/add" method="post" replace="none" instance="main"> <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while saving!</xforms:message> </xforms:submission> <xforms:submission id="delete-submission" ref="instance('add-book-instance')" action="/repeat/add" method="post" replace="none" instance="main"> <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while saving!</xforms:message> </xforms:submission> <xforms:send submission="list-submission" ev:event="xforms-ready"/> </xforms:model> </xhtml:head> <xhtml:body>
</xhtml:html> |
Administrator
|
Did you find a solution for this one? -Erik
On Wed, Feb 22, 2012 at 5:38 AM, sriramture <[hidden email]> wrote: > Hi, > > > I have tried saving of the data, it works but i am not able to fetch the > data on click of refresh. Please help me out, i am pasting my xhtml file > content. > > <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.org/2001/XInclude" > xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:exforms="http://www.exforms.org/exf/1-0" > xmlns:fr="http://orbeon.org/oxf/xml/form-runner" > xmlns:saxon="http://saxon.sf.net/" > xmlns:sql="http://orbeon.org/oxf/xml/sql" > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <xhtml:head> > <xhtml:title>Untitled Form</xhtml:title> > > <xforms:model id="fr-form-model"> > > <xforms:instance id="main"> > <dummy/> > </xforms:instance> > > > <xforms:instance id="add-book-instance"> > <books/> > </xforms:instance> > > > <xforms:instance id="book-instance"> > <book xmlns=""> > <title/> > <author/> > <language/> > <link/> > <rating/> > <notes/> > </book> > </xforms:instance> > > <xforms:instance id="delete-book-instance"> > <books> > <book> > <id/> > </book> > </books> > </xforms:instance> > > <xforms:instance id="languages-instance"> > <languages xmlns=""> > <language> > <name>English</name> > <value>en</value> > </language> > <language> > <name>French</name> > <value>fr</value> > </language> > <language> > <name>Spanish</name> > <value>es</value> > </language> > </languages> > </xforms:instance> > > <xforms:instance id="ratings-instance"> > <ratings xmlns=""> > <rating> > <name>1</name> > <value>1</value> > </rating> > <rating> > <name>2</name> > <value>2</value> > </rating> > <rating> > <name>3</name> > <value>3</value> > </rating> > <rating> > <name>4</name> > <value>4</value> > </rating> > <rating> > <name>5</name> > <value>5</value> > </rating> > </ratings> > </xforms:instance> > > <xforms:submission id="list-submission" ref="instance('main')" > replace="instance" method="post" action="/addmore/get"> > <xforms:message ev:event="xforms-submit-error" level="modal">An error > occurred while saving!</xforms:message> > </xforms:submission> > > <xforms:submission id="save-submission" > ref="instance('add-book-instance')" > action="/repeat/add" method="post" replace="none" instance="main"> > <xforms:message ev:event="xforms-submit-error" level="modal">An error > occurred while saving!</xforms:message> > </xforms:submission> > > <xforms:submission id="delete-submission" > ref="instance('add-book-instance')" > action="/repeat/add" method="post" replace="none" instance="main"> > <xforms:message ev:event="xforms-submit-error" level="modal">An error > occurred while saving!</xforms:message> > </xforms:submission> > > <xforms:send submission="list-submission" ev:event="xforms-ready"/> > > </xforms:model> > </xhtml:head> > <xhtml:body> > <table class="books-action-table"> > <tr> > <td> > <xforms:submit submission="save-submission" appearance="minimal"> > <xforms:label> ../apps/addmore/images/save.gif Save</xforms:label> > </xforms:submit> > </td> > <td> > <xforms:submit submission="list-submission" appearance="minimal"> > <xforms:label> ../apps/addmore/images/recycle-green.png > Revert</xforms:label> > </xforms:submit> > </td> > </tr> > </table> > <table class="books-table" width="80%"> > <tr width="100%"> > <td> > <xforms:trigger appearance="minimal"> > <xforms:label> ../apps/addmore/images/add.gif </xforms:label> > <xforms:insert ev:event="DOMActivate" > context="instance('add-book-instance')" nodeset="book" > origin="instance('book-instance')"/> > </xforms:trigger> > </td> > <td class="add-td"> > <xforms:trigger appearance="minimal"> > <xforms:label>Add One</xforms:label> > <xforms:insert ev:event="DOMActivate" > context="instance('add-book-instance')" nodeset="book" > origin="instance('book-instance')"/> > </xforms:trigger> > </td> > </tr> > <xforms:repeat ref="instance('add-book-instance')/book" id="book-repeat"> > <tr width="100%"> > <td width="100%" colspan="2"> > <table style="border :2px solid #121212;" width="100%"> > <tr width="100%"> > <td> > <xforms:input ref="title"> > <xforms:label class="books-label">Title</xforms:label> > </xforms:input> > <xforms:trigger appearance="minimal"> > <xforms:label> ../apps/addmore/images/remove.gif </xforms:label> > <xforms:delete ev:event="DOMActivate" > context="instance('add-book-instance')" nodeset="book" > at="index('book-repeat')"/> > </xforms:trigger> > </td> > </tr> > <tr width="100%"> > <td> > <xforms:input ref="author"> > <xforms:label class="books-label">Author</xforms:label> > </xforms:input> > </td> > </tr> > <tr> > <td> > <xforms:select1 ref="language"> > <xforms:label class="books-label">Language</xforms:label> > <xforms:item> > <xforms:label class="books-label">Choose One...</xforms:label> > <xforms:value/> > </xforms:item> > <xforms:itemset nodeset="instance('languages-instance')/language"> > <xforms:label class="books-label" ref="name"/> > <xforms:value ref="value"/> > </xforms:itemset> > </xforms:select1> > </td> > </tr> > <tr> > <td> > <xforms:input ref="link"> > <xforms:label class="books-label">Link</xforms:label> > </xforms:input> > </td> > </tr> > <tr> > <td> > <xforms:select1 ref="rating" appearance="full"> > <xforms:label class="books-label">Rating</xforms:label> > <xforms:item> > <xforms:label class="books-label">None</xforms:label> > <xforms:value/> > </xforms:item> > <xforms:itemset nodeset="instance('ratings-instance')/rating"> > <xforms:label class="books-label" ref="name"/> > <xforms:value ref="value"/> > </xforms:itemset> > </xforms:select1> > </td> > </tr> > <tr> > <td> > <xforms:textarea ref="notes" appearance=""> > <xforms:label class="books-label">Notes</xforms:label> > </xforms:textarea> > </td> > </tr> > </table> > </td> > </tr> > </xforms:repeat> > </table> > </xhtml:body> > </xhtml:html> > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Mysql-failure-of-fetching-of-data-from-custom-table-tp4410324p4410324.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 |
Free forum by Nabble | Edit this page |