<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to handle the &amp;quot; ' &amp;quot; in UI as it does not make NXQL crash ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-handle-the-quot-quot-in-ui-as-it-does-not-make-nxql-crash/m-p/316949#M3950</link>
    <description>&lt;P&gt;Hello Nuxeo people,&lt;/P&gt;
&lt;P&gt;I'm using the studio and in this case  i'm focussed on the  Content Model -&amp;gt; Structure Templates functionality.&lt;/P&gt;
&lt;P&gt;My problem is if i want to create a document with a ' in it (for instance "L'école ...") i have to pass my document title as "L\'école ..." if i don't want NXQL to crash when attempting to create the given document.&lt;/P&gt;
&lt;P&gt;The result is an unwelcomed \ in the document title in the UI &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please, what can I do to make this kind of conversion transparent ?&lt;/P&gt;
&lt;P&gt;Thank you !&lt;/P&gt;
&lt;P&gt;Antoine&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2013 11:18:50 GMT</pubDate>
    <dc:creator>Antoine_Cordier</dc:creator>
    <dc:date>2013-06-06T11:18:50Z</dc:date>
    <item>
      <title>How to handle the " ' " in UI as it does not make NXQL crash ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-handle-the-quot-quot-in-ui-as-it-does-not-make-nxql-crash/m-p/316949#M3950</link>
      <description>&lt;P&gt;Hello Nuxeo people,&lt;/P&gt;
&lt;P&gt;I'm using the studio and in this case  i'm focussed on the  Content Model -&amp;gt; Structure Templates functionality.&lt;/P&gt;
&lt;P&gt;My problem is if i want to create a document with a ' in it (for instance "L'école ...") i have to pass my document title as "L\'école ..." if i don't want NXQL to crash when attempting to create the given document.&lt;/P&gt;
&lt;P&gt;The result is an unwelcomed \ in the document title in the UI &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please, what can I do to make this kind of conversion transparent ?&lt;/P&gt;
&lt;P&gt;Thank you !&lt;/P&gt;
&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 11:18:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-handle-the-quot-quot-in-ui-as-it-does-not-make-nxql-crash/m-p/316949#M3950</guid>
      <dc:creator>Antoine_Cordier</dc:creator>
      <dc:date>2013-06-06T11:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle the " ' " in UI as it does not make NXQL crash ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-handle-the-quot-quot-in-ui-as-it-does-not-make-nxql-crash/m-p/316950#M3951</link>
      <description>&lt;P&gt;OK,&lt;/P&gt;
&lt;P&gt;It was all my mistake as I attached a trigger to workspace creation in that domain.&lt;/P&gt;
&lt;P&gt;This trigger is using a NXQL query to determine whether a chain should run or not.&lt;/P&gt;
&lt;P&gt;So this made my day:&lt;/P&gt;
&lt;P&gt;Replace :  SELECT * FROM Document WHERE ecm:path='@{sectionPath}'&lt;/P&gt;
&lt;P&gt;With    :  SELECT * FROM Document WHERE ecm:path='@{sectionPath.replace("'", "\'")}'&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:04:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-handle-the-quot-quot-in-ui-as-it-does-not-make-nxql-crash/m-p/316950#M3951</guid>
      <dc:creator>Antoine_Cordier</dc:creator>
      <dc:date>2013-06-06T14:04:19Z</dc:date>
    </item>
  </channel>
</rss>

