<?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 add some fields and populate them using a function. please help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281673#M579093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; yes it is.&lt;/P&gt;&lt;P&gt;the oracle function that i would like to use calculates if a policy is changed or not and had been applied to the Oracle database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;FUNCTION &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;IS_ANNEX_CHANGED &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;p_policy_id &lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;number&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;varchar &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;cursor &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;c1 &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;is select &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;(*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;from&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;select &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cfg&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;fract_type&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;from &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;gen_risk_covered grc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cfg_gl_gen_fractions cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;where &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;grc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cover_type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cfg&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cover_type ..................&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;the function returns Y for policies that are changed and N for others.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;I would like to make execute the function into the load statement and to add a flag field that will contain the Y or N for each policy.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 17:38:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-14T17:38:26Z</dc:date>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281671#M579091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem that must be solved urgently because it is applied on many tables, and the start is the hardest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have imported a table from a qvd file, and after that I would like to add a field (flag field) at the end of the table and to populate it with 1 or 0, regarding to my ORACLE function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that I can execute the oracle function directly for each line from my table, and to put the result into the flag field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each answer is precious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Silviu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 17:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281671#M579091</guid>
      <dc:creator />
      <dc:date>2012-02-14T17:21:09Z</dc:date>
    </item>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281672#M579092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By any chance your qvd is populated from oracle?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 17:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281672#M579092</guid>
      <dc:creator />
      <dc:date>2012-02-14T17:22:43Z</dc:date>
    </item>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281673#M579093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; yes it is.&lt;/P&gt;&lt;P&gt;the oracle function that i would like to use calculates if a policy is changed or not and had been applied to the Oracle database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;FUNCTION &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;IS_ANNEX_CHANGED &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;p_policy_id &lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;number&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;varchar &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;cursor &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;c1 &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;is select &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;(*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;from&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;select &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cfg&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;fract_type&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;from &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;gen_risk_covered grc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cfg_gl_gen_fractions cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;where &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;grc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cover_type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cfg&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;cover_type ..................&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;the function returns Y for policies that are changed and N for others.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;I would like to make execute the function into the load statement and to add a flag field that will contain the Y or N for each policy.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 17:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281673#M579093</guid>
      <dc:creator />
      <dc:date>2012-02-14T17:38:26Z</dc:date>
    </item>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281674#M579094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why dont you&amp;nbsp; use a store procedure to populate a new table in oracle and qlikview extracts from there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 17:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281674#M579094</guid>
      <dc:creator />
      <dc:date>2012-02-14T17:42:42Z</dc:date>
    </item>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281675#M579095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please detaliate what store procedure involves on my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 17:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281675#M579095</guid>
      <dc:creator />
      <dc:date>2012-02-14T17:49:56Z</dc:date>
    </item>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281676#M579096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm saying that maybe the best idea is to resolve your problem in the oracle bundle and only use qlikview to retrieve the modified information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a store procedure in oracle that uses your function and populates a new table/view. Then only retireve from qv the info of the new table/view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 18:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281676#M579096</guid>
      <dc:creator />
      <dc:date>2012-02-14T18:00:16Z</dc:date>
    </item>
    <item>
      <title>add some fields and populate them using a function. please help</title>
      <link>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281677#M579097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function returns if a policy is changed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is to load the POLICY table, to apply the function into the load script, and to add one field at the end of the table that will contain Y/N(changed/not changed) for each row(each policy ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION IS_ANNEX_CHANGED (p_policy_id number) return varchar is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cursor c1 is select count(*)&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;select cfg.fract_type&lt;/P&gt;&lt;P&gt;from gen_risk_covered grc, cfg_gl_gen_fractions cfg&lt;/P&gt;&lt;P&gt;where grc.cover_type=cfg.cover_type&lt;/P&gt;&lt;P&gt;and grc.insr_type=cfg.insr_type&lt;/P&gt;&lt;P&gt;and risk_state between 0 and 12&lt;/P&gt;&lt;P&gt;and grc.annex_id&amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;and policy_id=p_policy_id&lt;/P&gt;&lt;P&gt;minus&lt;/P&gt;&lt;P&gt;select cfg.fract_type&lt;/P&gt;&lt;P&gt;from gen_risk_covered grc, cfg_gl_gen_fractions cfg&lt;/P&gt;&lt;P&gt;where grc.cover_type=cfg.cover_type&lt;/P&gt;&lt;P&gt;and grc.insr_type=cfg.insr_type&lt;/P&gt;&lt;P&gt;--and risk_state between 0 and 12&lt;/P&gt;&lt;P&gt;and grc.annex_id=0&lt;/P&gt;&lt;P&gt;and policy_id=p_policy_id&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nr number;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open c1;&lt;/P&gt;&lt;P&gt;fetch c1 into nr;&lt;/P&gt;&lt;P&gt;close c1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if nvl(nr,0)&amp;gt;0 then &lt;/P&gt;&lt;P&gt;return 'Y';&lt;/P&gt;&lt;P&gt;else return 'N';&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loaded table in qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy:&lt;/P&gt;&lt;P&gt;LOAD POLICY_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSR_TYPE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFFICE_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLIENT_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGENT_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSR_BEGIN, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSR_END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ................... &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[...\policy.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have made so far is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;POLICY:&lt;BR /&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;POLICY_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INSR_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OFFICE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CLIENT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AGENT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INSR_BEGIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INSR_END&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [...\policy.qvd] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;P&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('POLICY')-1;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vPolicyID&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('POLICY_ID',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(P)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;POLICY_ANNEX_CHANGED:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;'$(vPolicyID)' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;POLICY_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ANNEX_CHANGED&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; Select IS_ANNEX_CHANGED (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vPolicyID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) as ANNEX_CHANGED from 'path';&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;P ;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;﻿&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿After entering the function path, I receive the following error: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S0002, ErrorCode: 942, ErrorMsg: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Can someone give me any idea of what to do from here?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thak you,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Silviu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 13:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-some-fields-and-populate-them-using-a-function-please-help/m-p/281677#M579097</guid>
      <dc:creator />
      <dc:date>2012-02-15T13:57:39Z</dc:date>
    </item>
  </channel>
</rss>

