<?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 ODAG Unable to pass filtered value with single quote in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630278#M63416</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have an ODAG selection app and I am selecting values which have a single quote in it. If you try to generate the application using ODAG with a value containing a single quote, the application is generated without data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a workaround for this issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 08:08:09 GMT</pubDate>
    <dc:creator>mborsadw</dc:creator>
    <dc:date>2021-04-02T08:08:09Z</dc:date>
    <item>
      <title>ODAG Unable to pass filtered value with single quote</title>
      <link>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630278#M63416</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have an ODAG selection app and I am selecting values which have a single quote in it. If you try to generate the application using ODAG with a value containing a single quote, the application is generated without data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a workaround for this issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630278#M63416</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2021-04-02T08:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODAG Unable to pass filtered value with single quote</title>
      <link>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630652#M63417</link>
      <description>&lt;P&gt;You can change the delimiter using the following syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$(odso_ORIGIN){"quote": "|", "delimiter": ";"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you plan to utilize this in an Inline Table load, you will need to adjust the settings. From the &lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/LoadData/bind-expressions-OnDemand-template-app.htm" target="_self"&gt;help documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;Bind data containing quotation marks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If the data in any of the fields used for bind variables contain either single or double quotation marks, you need to change the default behavior of the INLINE load statement to not interpret quotation marks as value delimiters. Change the delimiter using the format spec to a character that never occurs in the values of the field being bound, as is shown with the '|' character in the following example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OdagBinding:

LOAD * INLINE [

VAL

$(odso_ORIGIN){"quote": "", "delimiter": ""}

]

(ansi, txt, delimiter is '|', embedded labels);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630652#M63417</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2019-10-02T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODAG Unable to pass filtered value with single quote</title>
      <link>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630667#M63418</link>
      <description>&lt;P&gt;Neither of these options work. Here is the loadscript for both the selection and the detail app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Selection app:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Flight]:&lt;BR /&gt;Load * inline [&lt;BR /&gt;Origin, Destination, Time&lt;BR /&gt;Dallas, Atlanta, 2&lt;BR /&gt;Dallas, Chicago, 1.5&lt;BR /&gt;Dallas, San Franci'sco, 3&lt;BR /&gt;Dallas, New York, 3&lt;BR /&gt;Austin, Dallas, 1&lt;BR /&gt;Austin, New York, 3.5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Store [Flight] into [lib://qvd/Flights.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Detail app:&lt;/P&gt;&lt;P&gt;// DO NOT ALTER THIS SUBROUTINE&lt;BR /&gt;SUB ExtendQVDWhere(Name, ValVarName)&lt;BR /&gt;LET T = Name &amp;amp; '_COLNAME';&lt;BR /&gt;LET ColName = $(T);&lt;BR /&gt;LET Values = $(ValVarName);&lt;BR /&gt;IF (len(Values) &amp;gt; 0) THEN&lt;BR /&gt;IF len(WHERE_PART) &amp;gt; 0 THEN&lt;BR /&gt;LET WHERE_PART = '$(WHERE_PART) AND mixmatch([$(ColName)],$(Values) )';&lt;BR /&gt;ELSE&lt;BR /&gt;LET WHERE_PART = ' WHERE mixmatch([$(ColName)],$(Values))';&lt;BR /&gt;ENDIF&lt;BR /&gt;ENDIF&lt;BR /&gt;END SUB;&lt;/P&gt;&lt;P&gt;// DO NOT ALTER THIS SUBROUTINE&lt;BR /&gt;SUB BuildValueList(VarName, TableName, ColName, QuoteChrNum)&lt;BR /&gt;IF ($(QuoteChrNum) = 0) THEN&lt;BR /&gt;LET LOADEXPR = 'Concat($(ColName),' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39) &amp;amp; ') AS CombinedData';&lt;BR /&gt;ELSE&lt;BR /&gt;LET CHREXPR = ' chr(' &amp;amp; '$(QuoteChrNum)' &amp;amp; ') ';&lt;BR /&gt;LET LOADEXPR = 'Concat( $(CHREXPR) &amp;amp; $(ColName) &amp;amp; $(CHREXPR)' &amp;amp; ',' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39) &amp;amp; ') AS CombinedData';&lt;BR /&gt;ENDIF&lt;BR /&gt;_TempTable:&lt;BR /&gt;LOAD $(LOADEXPR) Resident $(TableName);&lt;BR /&gt;Let vNoOfRows = NoOfRows('_TempTable');&lt;BR /&gt;IF $(vNoOfRows)&amp;gt; 0 THEN&lt;BR /&gt;LET $(VarName) = Peek('CombinedData',0,'_TempTable');&lt;BR /&gt;ENDIF&lt;BR /&gt;drop table _TempTable;&lt;BR /&gt;drop table '$(TableName)';&lt;BR /&gt;END SUB;&lt;/P&gt;&lt;P&gt;SET DESTINATION='';&lt;BR /&gt;&lt;STRONG&gt;OdagBinding:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;VAL&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$(odso_Destination){"quote": "", "delimiter": ""}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(ansi, txt, delimiter is '|', embedded labels);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET DESTINATION_COLNAME='Destination';&lt;BR /&gt;CALL BuildValueList('DESTINATION', 'OdagBinding', 'VAL', 39); // 39 is for single quote wrapping values&lt;/P&gt;&lt;P&gt;SET WHERE_PART = '';&lt;/P&gt;&lt;P&gt;FOR EACH fldname IN 'DESTINATION'&lt;BR /&gt;LET vallist = $(fldname);&lt;BR /&gt;IF (IsNull(vallist)) THEN&lt;BR /&gt;LET vallist = '';&lt;BR /&gt;ENDIF&lt;BR /&gt;IF (len(vallist) &amp;gt; 0) THEN&lt;BR /&gt;CALL ExtendQVDWhere('$(fldname)','vallist');&lt;BR /&gt;ENDIF&lt;BR /&gt;NEXT fldname&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TRACE Generated WHERE clause: ;&lt;BR /&gt;TRACE $(WHERE_PART);&lt;/P&gt;&lt;P&gt;LET FLIGHTS_QVD='[lib://qvd/Flights.qvd] (qvd)';&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM $(FLIGHTS_QVD)&lt;BR /&gt;$(WHERE_PART);&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/1630667#M63418</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2019-10-02T16:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODAG Unable to pass filtered value with single quote</title>
      <link>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/2515461#M105675</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18080"&gt;@mborsadw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;were you able to found any solution to this? even I am facing same issue but not able to resolve by the solution provided above.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tauceef&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 13:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODAG-Unable-to-pass-filtered-value-with-single-quote/m-p/2515461#M105675</guid>
      <dc:creator>TauceefCogni</dc:creator>
      <dc:date>2025-04-23T13:58:09Z</dc:date>
    </item>
  </channel>
</rss>

