<?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: Frontend for a Database - another issue with updating in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852156#M298793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems now I have made it. Let's see.&lt;/P&gt;&lt;P&gt;There is now another variable involved - now I have 3 per field, that's quite a lot ...&lt;/P&gt;&lt;P&gt;That variable is like a checkbox (well, it IS assigned to a pair of textboxes with the image of a checked and an unchecked checkbox) where the user has to tick whether he has edited a particular field - right under the input_box.&lt;/P&gt;&lt;P&gt;The alternative would have been using a small table with all the fieldnames, but then the user would have had to decide beforehand which fields he/she would edit and there would have been a potential for mistakes (I mostly assume that users will make mistakes wherever they can, so I try to minimize that possibility).&lt;/P&gt;&lt;P&gt;That variable can then be used in the script_reload to decide whether the field_variable or the original field should be loaded into a temporary table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 09:14:12 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-05-18T09:14:12Z</dc:date>
    <item>
      <title>Frontend for a Database - another issue with updating</title>
      <link>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852152#M298789</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'm just building the frontend for a database.&lt;/P&gt;&lt;P&gt;The background of this is, we get data from our customer on a regular basis and a lot of people in our company work on this, so I'm building a database for it - well, I'm building the frontend whereby the database will be the qvd, but I think that should be enough, we don't have that much data in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three background actions on the database:&lt;/P&gt;&lt;P&gt;- Load a new base_file and check for any records which are not yet present in our database (and append those)&lt;/P&gt;&lt;P&gt;- Load the existing database (reload the qvd, which will include any changes already made and saved by others)&lt;/P&gt;&lt;P&gt;- Update one record (this will reload the qvd, so no changes made by others in the meantime can be lost) and insert new values just in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; those fields where the current user has entered new values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I am currently facing is this:&lt;/P&gt;&lt;P&gt;- There are a lot of variables in my script (one for every field, so I have the option of entering new values at all)&lt;/P&gt;&lt;P&gt;- A user can&amp;nbsp; have either RW or RO access to a field; Accordingly, there is an Inputbox for that field or a Textbox.&lt;/P&gt;&lt;P&gt;- The variables all have a variable value (like &amp;gt;&amp;gt; SET myvar = = [fieldname] &amp;lt;&amp;lt;) so they are populated with values only on the&lt;BR /&gt;&amp;nbsp; GUI, once the user has made a selection on a field (e.g., the user selects one (exactly one) row in the database to edit and all the&lt;BR /&gt;&amp;nbsp;&amp;nbsp; variables (in the fields that user can edit) reflect the value of that field in that row).&lt;/P&gt;&lt;P&gt;- The variables are all named like &amp;gt;&amp;gt; edit_[fieldname] &amp;lt;&amp;lt; and I have a variale v_line_ID_edit which is a fixed value (to be entered by the&lt;BR /&gt;&amp;nbsp;&amp;nbsp; user) to denote the exact record that the user means to edit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when a user selects to update the database with changes made to one record, the qvd is reloaded - but, since every field can be edited by someone (not necessarily the current user) every line in that LOAD reads like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; IF rowNo() = $(v_line_ID_to_edit), '$(edit_ blabla)', blabla) as blabla &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;The variables are not reset since otherwise those changes would be overwritten - but since for that particular record only variables are loaded, every field in that record afterwards reads like &amp;gt;&amp;gt; = [fieldname] &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been a rather long explanation, but I don't have the time to make it shorter &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I hope it is clear what exactly my issue is. If not, just ask and I'll rant on until evening ...&lt;/P&gt;&lt;P&gt;Can anybody advise me here?&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>Wed, 13 May 2015 11:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852152#M298789</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-13T11:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Frontend for a Database - another issue with updating</title>
      <link>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852153#M298790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P.S.: I guess for that to work, I will need another set of variables to take on the value 1 if a field has been edited&lt;BR /&gt;=&amp;gt; Then I will need that IF_construct in the qvd_LOAD for updating that record&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; Otherwise, that variable will have the value 0 and in that qvd_LOAD, I will just reload the field such as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; For that, I will need a table where the user can just select all the fields that he/she has edited and the respective variables will all toggle to 1. That will influence the LOAD in the script. By slightly editing the look of a listbox, I can make it like a nr. of checkboxes that the user can just tick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty easy - but I guess there's a lot of work waiting for me ... let's not keep it waiting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 12:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852153#M298790</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-13T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Frontend for a Database - another issue with updating</title>
      <link>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852154#M298791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P.S.: Okay - I can do this without the extra work for the user to once more select all the fields that he/she has edited.&lt;/P&gt;&lt;P&gt;That way, the LOAD in the script will be quite complicated, but never mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every field that I load from the qvd, I have to (for that one record selected for editing) check whether that field_variable holds any value other than the original field_value in the qvd and, if so, I fill this into the table i create, otherwise I just go with the original field_value. That table will then be immediately stored again, so the potential for "colliding" with edits being made by someone else is minimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 12:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852154#M298791</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-13T12:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Frontend for a Database - another issue with updating</title>
      <link>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852155#M298792</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;this seems to be more complicated than I thought.&lt;/P&gt;&lt;P&gt;I think I must have the syntax wrong for the LOAD or something.&lt;/P&gt;&lt;P&gt;The thing is, when I have prepared 3 input_boxes in this way (to load the user_input into the table instead of the original field, but only if&lt;/P&gt;&lt;P&gt;- the line is the one the user has chosen for editing AND&lt;/P&gt;&lt;P&gt;- the input_box has been edited, so it now holds another value than the original field&lt;/P&gt;&lt;P&gt;=&amp;gt; What happens is, when I then use just one of those input_boxes, then in that one line that I have chosen for editing,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; that value appears all right and the other two prepared fields look like &amp;gt;&amp;gt; = [original_field] &amp;lt;&amp;lt; (because that's what&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; these variables look like)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe anyone can help me there?&lt;/P&gt;&lt;P&gt;I will now try to maybe do it in two steps, with a RESIDENT LOAD.&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>Mon, 18 May 2015 07:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852155#M298792</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-18T07:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Frontend for a Database - another issue with updating</title>
      <link>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852156#M298793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems now I have made it. Let's see.&lt;/P&gt;&lt;P&gt;There is now another variable involved - now I have 3 per field, that's quite a lot ...&lt;/P&gt;&lt;P&gt;That variable is like a checkbox (well, it IS assigned to a pair of textboxes with the image of a checked and an unchecked checkbox) where the user has to tick whether he has edited a particular field - right under the input_box.&lt;/P&gt;&lt;P&gt;The alternative would have been using a small table with all the fieldnames, but then the user would have had to decide beforehand which fields he/she would edit and there would have been a potential for mistakes (I mostly assume that users will make mistakes wherever they can, so I try to minimize that possibility).&lt;/P&gt;&lt;P&gt;That variable can then be used in the script_reload to decide whether the field_variable or the original field should be loaded into a temporary table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 09:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Frontend-for-a-Database-another-issue-with-updating/m-p/852156#M298793</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-18T09:14:12Z</dc:date>
    </item>
  </channel>
</rss>

