<?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 Re: Annoying problem with updating data from Input_Boxes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885272#M470434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, that is the problem: When the script_execution fails at some point inside a LOAD, there is no final expression - the full LOAD is in the log and then comes some error_message. It's impossible to tell which line inside the LOAD is wrong.&lt;/P&gt;&lt;P&gt;Anyway, I have found some typos - not in the script, but in the Excel_file where the field_names come for the variables - from there I generate the field_variables. That might also have been the issue.&lt;/P&gt;&lt;P&gt;Let's see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 08:54:07 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-05-19T08:54:07Z</dc:date>
    <item>
      <title>Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885268#M470430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quite annoying problem with the updating of data in a "database" (a qvd file). Any help on this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In my app, there is basically one Input_box per field where, depending on their privileges, the users can (or cannot) enter data&lt;BR /&gt;&amp;nbsp; =&amp;gt; If they cannot or do not enter data, then I want to load from a qvd with the original field_content&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&amp;gt; If they do enter data, then obviously I want to use that to update one record (but only one of course) in the qvd.&lt;/P&gt;&lt;P&gt;- All the variables by default show the current field_content.&lt;/P&gt;&lt;P&gt;- Since I have no other way of recognizing that any field has been edited, the user has to tick a checkbox underneath the field (and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; toggle a variable) so when reloading the script, I have a way of telling whether to use this or that in the LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LOAD (the script is reloaded via a button on the GUI), I have a rather complicated construct:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; IF($(field1_edited) = 1, IF(rowNo() = $(v_line_ID), '$(edit_field1)', field1), field1) as field1 &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;=&amp;gt; That means, when the variable &amp;gt; field1_edited &amp;lt; has the value 1 (that is the checkbox), then I query the line (the user must choose&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exactly one record for updating) and if that is right, I want to enter the variable &amp;gt; edit_field1 &amp;lt; in the resulting table, otherwise the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; original field_content (that is part of a LOAD from the qvd).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, this works fine - if I edit one field and tick its checkbox - and I have that code in place - and select to update the database, the new entry appears.&lt;/P&gt;&lt;P&gt;The issue is, I have 38 fields which means quite a lot of typework in that LOAD. And somehow when I insert that code for every line in the LOAD, at some point something goes wrong and I get a script_error ("error in expression - ')' expected").&lt;/P&gt;&lt;P&gt;I'm afraid I will have to go one line at a time and test it every time.&lt;/P&gt;&lt;P&gt;Can anybody imagine why it works fine at first and at some point it breaks? I do it very carefully to avoid typos - at first I tried building the complete statement in Excel and just copying it, but I abandoned that for the same reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 08:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885268#M470430</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-19T08:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885269#M470431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this could happens if the variables contain not expected values like spaces or NULL or values which will be interpreted as qv statement-parts like comma's or semi-colon's or $-signs and maybe some more. I assume you will need some kind of error-routines before you used the variables directly within your statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 08:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885269#M470431</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-19T08:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885270#M470432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that sounds quite complicated. Thanks for answering!&lt;/P&gt;&lt;P&gt;Well, the variables for the individual fields all mirror the actual field_content - I have renamed all the fields so they don't contain any blanks.&lt;/P&gt;&lt;P&gt;The variables indicating whether a field has been edited can only be 1 or -1.&lt;/P&gt;&lt;P&gt;Of course I will have to inform all the users to observe certain rules when entering data, but that should not be a big problem. Well, I'm afraid I will have to adapt my code line by line.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 08:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885270#M470432</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-19T08:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885271#M470433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the error it sounds like you have missed a bracket in your expression. I assume you have already confirmed that this is not the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise I would agree with &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;Marcus_Sommer&lt;/A&gt;‌‌ that the dollar expansions lead to an incorrect syntax. Check your document log to see exactly what your final expression looks like, and confirm that it looks valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 08:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885271#M470433</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-19T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885272#M470434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, that is the problem: When the script_execution fails at some point inside a LOAD, there is no final expression - the full LOAD is in the log and then comes some error_message. It's impossible to tell which line inside the LOAD is wrong.&lt;/P&gt;&lt;P&gt;Anyway, I have found some typos - not in the script, but in the Excel_file where the field_names come for the variables - from there I generate the field_variables. That might also have been the issue.&lt;/P&gt;&lt;P&gt;Let's see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 08:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885272#M470434</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-19T08:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885273#M470435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run the script in the debugger and put a breakpoint on the problem LOAD statement, you can see the statement with all the variable expansions applied. This may help you with finding the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 09:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885273#M470435</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-19T09:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885274#M470436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read that before, but I haven't yet been able to do it - where exactly do I have to put the Breakpoint to see that? Not on the title for the table, it seems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 09:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885274#M470436</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-19T09:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying problem with updating data from Input_Boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885275#M470437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's working now.&lt;/P&gt;&lt;P&gt;I discovered some more typos in the underlying short_names of the fields (names without blanks) which are used to generate the variables, so there were some inconsistencies in the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; As usual, as soon as you do things right, they tend to work ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the helpful answers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annoying-problem-with-updating-data-from-Input-Boxes/m-p/885275#M470437</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-19T12:22:25Z</dc:date>
    </item>
  </channel>
</rss>

