<?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 what am I doing wrong? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1524898#M599300</link>
    <description>&lt;P&gt;I am extracting the string in between the string tags from the below xml.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Attributes&amp;gt;&lt;BR /&gt;&amp;lt;Map&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Cause of Removal" value="Associate Activity"/&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Date"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;BR /&gt;&amp;lt;Long&amp;gt;1521745344721&amp;lt;/Long&amp;gt;&lt;BR /&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Removed Access"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;BR /&gt;&amp;lt;List&amp;gt;&lt;BR /&gt;&amp;lt;String&amp;gt;Test New Ent&amp;lt;/String&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;String&amp;gt; Test New Ent2&amp;lt;/String&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;String&amp;gt;Test New Ent3&amp;lt;/String&amp;gt;&lt;BR /&gt;&amp;lt;/List&amp;gt;&lt;BR /&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Requestee" value=" (OE17YR)"/&amp;gt;&lt;BR /&gt;&amp;lt;/Map&amp;gt;&lt;BR /&gt;&amp;lt;/Attributes&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the script I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (ACTION = 'Remove Role Access', TextBetween(Replace(Replace(Replace(Replace(ATTRIBUTES,chr(10),' '),' ', ''), '&amp;lt;String&amp;gt;', ''), '&amp;lt;/String&amp;gt;', chr(10)), '&amp;lt;entrykey="RemovedAccess"&amp;gt;&amp;lt;value&amp;gt;&amp;lt;List&amp;gt;', '&amp;lt;/List&amp;gt;')) As [Removed Roles]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all the spaces in between the string is replaced with non space. In the script, when I replace the non space with space, it does not work. Script runs but does not bring in anything. Any help would be appreciated. Thanks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem is&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:52:37 GMT</pubDate>
    <dc:creator>diwaskarki</dc:creator>
    <dc:date>2024-11-16T04:52:37Z</dc:date>
    <item>
      <title>what am I doing wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1524898#M599300</link>
      <description>&lt;P&gt;I am extracting the string in between the string tags from the below xml.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Attributes&amp;gt;&lt;BR /&gt;&amp;lt;Map&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Cause of Removal" value="Associate Activity"/&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Date"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;BR /&gt;&amp;lt;Long&amp;gt;1521745344721&amp;lt;/Long&amp;gt;&lt;BR /&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Removed Access"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;&lt;BR /&gt;&amp;lt;List&amp;gt;&lt;BR /&gt;&amp;lt;String&amp;gt;Test New Ent&amp;lt;/String&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;String&amp;gt; Test New Ent2&amp;lt;/String&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;String&amp;gt;Test New Ent3&amp;lt;/String&amp;gt;&lt;BR /&gt;&amp;lt;/List&amp;gt;&lt;BR /&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Requestee" value=" (OE17YR)"/&amp;gt;&lt;BR /&gt;&amp;lt;/Map&amp;gt;&lt;BR /&gt;&amp;lt;/Attributes&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the script I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (ACTION = 'Remove Role Access', TextBetween(Replace(Replace(Replace(Replace(ATTRIBUTES,chr(10),' '),' ', ''), '&amp;lt;String&amp;gt;', ''), '&amp;lt;/String&amp;gt;', chr(10)), '&amp;lt;entrykey="RemovedAccess"&amp;gt;&amp;lt;value&amp;gt;&amp;lt;List&amp;gt;', '&amp;lt;/List&amp;gt;')) As [Removed Roles]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all the spaces in between the string is replaced with non space. In the script, when I replace the non space with space, it does not work. Script runs but does not bring in anything. Any help would be appreciated. Thanks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem is&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1524898#M599300</guid>
      <dc:creator>diwaskarki</dc:creator>
      <dc:date>2024-11-16T04:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1524922#M599301</link>
      <description>Are you reading the data as a text file, or an XML file? I suggest that you upload the complete load statement(s) as well as where/how ACTION and ATTRIBUTES (fields or variables?) are set.</description>
      <pubDate>Sat, 29 Dec 2018 08:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1524922#M599301</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-12-29T08:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1525137#M599302</link>
      <description>&lt;P&gt;this xml clob is actually stored in a db2 table field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running this query :&lt;/P&gt;&lt;P&gt;Load id&lt;/P&gt;&lt;P&gt;IF (ACTION = 'Remove Role Access', TextBetween(Replace(Replace(Replace(Replace(ATTRIBUTES,chr(10),' '),' ', ''), '&amp;lt;String&amp;gt;', ''), '&amp;lt;/String&amp;gt;', chr(10)), '&amp;lt;entrykey="RemovedAccess"&amp;gt;&amp;lt;value&amp;gt;&amp;lt;List&amp;gt;', '&amp;lt;/List&amp;gt;')) As [Removed Roles],&lt;/P&gt;&lt;P&gt;IF (ACTION = 'Remove Group Access', TextBetween(Replace(Replace(Replace(Replace(ATTRIBUTES,chr(10),' '),' ', ''), '&amp;lt;String&amp;gt;', ''), '&amp;lt;/String&amp;gt;', chr(10)), '&amp;lt;entrykey="RemovedAccess"&amp;gt;&amp;lt;value&amp;gt;&amp;lt;List&amp;gt;', '&amp;lt;/List&amp;gt;')) As [Removed Entitlements],&lt;/P&gt;&lt;P&gt;If(INSTANCE='emailSent', STRING1) As AuditEmailSentSubject,&lt;/P&gt;&lt;P&gt;SQL SELECT ID, INSTANCE,SOURCE,ATTRIBUTES&lt;BR /&gt;FROM IDENTITYIQ.SPT_AUDIT_EVENT WHERE ACTION='emailSent' or ACTION='Remove Group Access' or ACTION='Remove Role Access'&lt;BR /&gt;with ur;&lt;/P&gt;&lt;P&gt;as you can see there are three different instances of action. the data in the string tag changes depending on what the action is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 17:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-am-I-doing-wrong/m-p/1525137#M599302</guid>
      <dc:creator>diwaskarki</dc:creator>
      <dc:date>2018-12-31T17:51:16Z</dc:date>
    </item>
  </channel>
</rss>

