Hi All,
I implemented fr:autocomplete in xforms:repeat to populate autocomplete values. once i search the value and set and save the document. Later would like edit the values in repeat for the autocomplete value, but form displays empty value which was filled already. <xforms:case id="case-2"> <div> <div class="case-item"> <div id="spacediv" />
<xforms:trigger id="dtr"> <xforms:label>Add Consultation</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert position="after" origin="instance('template-consl')" nodeset="instance('clinicalExamniationInstance')/consls/consl[last()]" at="last()"/> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[last()]/ConslDate" value="''" /> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[last()]/Doc" value="''" /> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[last()]/@created" value="seconds-from-dateTime(now())"/> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[last()]/@modified" value="seconds-from-dateTime(now())"/> <xforms:setvalue ref="instance('consl-num')/consl" value="index('consultation')"/> <xforms:toggle case="case-3" /> </xforms:action> </xforms:trigger> <br /> </div> </div> </xforms:case> <xforms:case id="case-3"> <div> <div class="case-item"> <div class="datacontent_subtit"> Consultation </div>
<div class="case-item"> <div class="datacontent_subtit">Prescribed Medicines</div>
<xforms:label>Add Medicine</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert nodeset="instance('clinicalExamniationInstance')/consls/consl[number(instance('consl-num')/consl)]/Medicines/Medicine[last()]" position="after" at="last()" /> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[number(instance('consl-num')/consl)]/Medicines/Medicine[last()]/Name" value="''" /> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[number(instance('consl-num')/consl)]/Medicines/Medicine[last()]/Dosage" value="''" /> <xforms:setvalue ref="instance('clinicalExamniationInstance')/consls/consl[number(instance('consl-num')/consl)]/Medicines/Medicine[last()]/Duration" value="''" /> </xforms:action> </xforms:trigger> </div> <div class="case-item"> <div class="datacontent_subtit">Prescribed Tests</div>
Please help me if any one has solution for this. Thanks |
subject changed from fr:autocomplete is showing the value in repeat in edit mode to fr:autocomplete is not showing the value in repeat in edit mode
|
Hello,
This thread has your answer: http://orbeon-forms-ops-users.24843.n4.nabble.com/Setting-content-of-text-field-in-fr-autocomplete-td2216656.html You have to xxforms:iterate, perhaps on xforms-ready, through your nodes and set the label for your control: <xforms:dispatch target="autocomplete-control" name="fr-set-label"> <xxforms:context name="label" select="context()"/> </xforms:dispatch> Ethan On Fri, Dec 3, 2010 at 6:55 AM, lakshmipmandava <[hidden email]> wrote:
-- 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 lakshmipmandava
Hi,
Also, in addition to what Ethan said, setting the value of an autocomplete by setting the value of the node it is bound to wasn't yet supported at the time of the 3.8 release. Have you tried this with a nightly build? If you have, and it doesn't work for you, could you create a full but minimal example that we can run in the XForms sandbox to reproduce this, and attach it to your response? Also, you can find more information on the different ways in which the value of an autocomplete can be set at: http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete#TOC-Setting-by-value Alex On Friday, December 3, 2010, lakshmipmandava <[hidden email]> wrote: > > subject changed from fr:autocomplete is showing the value in repeat in edit > mode to fr:autocomplete is not showing the value in repeat in edit mode > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-autocomplete-is-showing-the-value-in-repeat-in-edit-mode-tp3070952p3070962.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
I am getting following error when nightly build deployed in to tomcat and clicked on edit (trigger in repeat). Error tag name "xxforms:static-state" is not allowed. Possible tag names are: <uuid>(schema: oxf:/ops/xforms/xforms-server-request.rng) Resource URL Line Column Description XML Element file:/home/lakshmi/apache-tomcat-6.0.29/temp/upload_3d42345f_12cce66e9ee__7ffe_00000001.tmp 3 27 validating document <xxforms:static-state/> oxf:/ops/xforms/xforms-server.xpl 49 60 reading processor output name → data id → xforms-request <p:output name="data" id="xforms-request"/> oxf:/ops/xforms/xforms-server.xpl 55 65 reading processor output name → response id → xforms-response <p:output name="response" id="xforms-response"/> Please suggest me what went wrong. Thanks Lakshmi |
In reply to this post by Alessandro Vernet
Hi Alex,
Downloaded latest build and tested, but still edit mode not showing the values for f:autocomplete. PFA sample file With Regards, Lakshmi Prasad Mandavaindex.jsp |
Administrator
|
I just ran again the fr:autocomplete unit tests with the latest build,
and they run fine for me (linked below). I am looking at the file you attached, and I can't run it here as it as dependencies on other files (see the JSP includes). Do you thin you could put together a self-contained, minimal test case? Also, the error you quoted in an earlier message (Error tag name "xxforms:static-state" is not allowed) is a sign that the browser has cached an old version of the JavaScript code—we don't have a static and dynamic state anymore, just a UUID. Could you try doing a "force reload" (ctrl-shift-r in Firefox) or emptying your cache before reloading your code? Does that solve the issue? http://localhost:8080/orbeon/xforms-sandbox/sample/xbl/orbeon/autocomplete/autocomplete-unittest Alex On Sat, Jan 8, 2011 at 5:02 AM, lakshmipmandava <[hidden email]> wrote: > > Hi Alex, > > Downloaded latest build and tested, but still edit mode not showing the > values for f:autocomplete. PFA sample file > > With Regards, > Lakshmi Prasad Mandava > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3204913/index.jsp > index.jsp > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-autocomplete-is-showing-the-value-in-repeat-in-edit-mode-tp3070952p3204913.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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |