Login  Register

Re: Invalid URL on otherwise valid eXist queries

Posted by bsteuhl on Jan 19, 2010; 11:36pm
URL: https://discuss.orbeon.com/Invalid-URL-on-otherwise-valid-eXist-queries-tp1008531p1018024.html

I used a different query to (where clause) instead if the predicate.  The predicate is more efficient so I would still like to know the solution, but it is no longer an urgent matter.  He is the new xquery:

<xforms:submission id="psiSearch" method="get"
                                action="http://localhost:8600/exist/rest/db/?_query=declare namespace xmldb='http://exist-db.org/xquery/xmldb'; declare namespace fe='http://york.com/forms/probation/xform'; let $resources := for $x in xmldb:get-child-resources('CJPSIS/completedPSI') where starts-with($x, '{instance('search')/fe:offenderID}') return &lt;file&gt;{{$x}}&lt;/file&gt; return &lt;files&gt;{{$resources}}&lt;/files&gt;"
                                        replace="instance" instance="searchResults"  xxforms:username="XXXX" xxforms:password="XXXXX!" validate="false">
                                        <xforms:message ev:event="xforms-submit-error" level="modal">exist call failed</xforms:message>
                        </xforms:submission>

Thank you - BTMSoftwareSolutions.com