<?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: Macro to store Inputfield Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552444#M206349</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;Try the attached example.&lt;/P&gt;&lt;P&gt;You can load source data, edit values, store partial changes or restore last saved data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 15:07:54 GMT</pubDate>
    <dc:creator>Andrea_Ghirardello</dc:creator>
    <dc:date>2013-08-30T15:07:54Z</dc:date>
    <item>
      <title>Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552439#M206344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im developing a production planning report, multiple users will use this report and some sort of inputfield is required to adjust the inventory stocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to do to solve this problem is creating a macro to store the inputfield value to qvd (or excel really dont mind) to adjust the inventory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone has ever did something similar and can give me some advice? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks &lt;/P&gt;&lt;P&gt;Juan Pedro&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552439#M206344</guid>
      <dc:creator />
      <dc:date>2013-08-30T08:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552440#M206345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put your inputfields in (several) tables (in a hidden sheet and perhaps mit additional data, like the qvw, object, user, date or timestamp, keys and so on) which only serve to export into a desired format. &lt;/P&gt;&lt;P&gt;Then the user could click on a button and the export-macro runs. Before the export will execute the macro should check if certain selections are set or not and then set the required selections or breakup with message to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 11:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552440#M206345</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-30T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552441#M206346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcus first of all thnks for your anserw, &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Marcus Sommer ha scritto:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Then the user could click on a button and the export-macro runs. Before the export will execute the macro should check if certain selections are set or not and then set the required selections or breakup with message to the user.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part is more than clear to me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; and your solution idea is identical to mine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt is more related to the VBS part of the solution since i dont really know how to extract the value from the inputfield since in my applications i only extracted fields with selections made in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my requirment is clear since my english is more than rusty &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Juan Pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 12:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552441#M206346</guid>
      <dc:creator />
      <dc:date>2013-08-30T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552442#M206347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's from an old (dead?) project which is always on an alpha-level, but the export worked fine. I hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13778661976557422 jive_macro_code" jivemacro_uid="_13778661976557422" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;sub export&lt;BR /&gt; &lt;BR /&gt; dim doc, fld, fldArea, fldClear, i, ii, msg, check, ex_shop, ex_wert, path, user, zeit, dauer, puffer, msg1, ex_bruttonetto&lt;BR /&gt; &lt;BR /&gt; Set doc = ActiveDocument&lt;BR /&gt; Set user = CreateObject("WScript.Network")&lt;BR /&gt; user = user.UserName&lt;BR /&gt; dauer = now()&lt;BR /&gt; &lt;BR /&gt; path = "Path"&lt;BR /&gt; zeit = mid(now(), 1, 10) &amp;amp; "-" &amp;amp; mid(now(), 12, 2) &amp;amp; "." &amp;amp; mid(now(), 15, 2)&lt;BR /&gt; fldArea = array("PlanArt", "Szenario", "Version") '"Index_4", &lt;BR /&gt; fldClear = array("Jahr", "Monat", "Art", "Bereich", "O-Kategorie", "H-Kategorie", "Kategorie", "Kategorie_BN", "Kanal", "Konzept")&lt;BR /&gt; check = true&lt;BR /&gt; msg = ""&lt;BR /&gt; &lt;BR /&gt; for i = 0 to ubound(fldArea)&lt;BR /&gt; set fld = doc.GetField(fldArea(i))&lt;BR /&gt; 'msgbox fldArea(i) &amp;amp; chr(10) &amp;amp; fld.GetValueCount(1)&lt;BR /&gt; ii = fld.GetValueCount(1)&lt;BR /&gt; if ii = 0 or ii &amp;gt; 1 then &lt;BR /&gt; msg = msg &amp;amp; "Bitte das Feld """ &amp;amp; fldArea(i) &amp;amp; """ selektieren." &amp;amp; chr(10)&lt;BR /&gt; check = false&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt; &lt;BR /&gt; if check = false then&lt;BR /&gt; msgbox "Die folgenden Felder dürfen jeweils nur eine einzelne Selektion aufweisen!" &amp;amp; chr(10) &amp;amp; chr(10) &amp;amp; msg&lt;BR /&gt; set doc = nothing&lt;BR /&gt; set fld = nothing&lt;BR /&gt; set user = nothing&lt;BR /&gt; exit sub&lt;BR /&gt; end if&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'Feldselektionen aufheben, damit immer ein vollständiger Planungsstand gespeichert wird&lt;BR /&gt; 'Ursprungsselektion auslesen und nach Export wieder setzen --&amp;gt; eventl. per Bookmark ???&lt;BR /&gt; for i = 0 to ubound(fldClear)&lt;BR /&gt; doc.Fields(fldClear(i)).Clear next &lt;BR /&gt; &lt;BR /&gt; 'Verhindern, daß der Export über einen Minutenwechsel hin statt findet --&amp;gt; Matching-Index wäre dann nicht mehr identisch&lt;BR /&gt; if right(formatdatetime(now(), vblongtime), 2) * 1 &amp;gt;= 45 then&lt;BR /&gt; puffer = 61 - (right(formatdatetime(now(), vblongtime), 2) * 1)&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 61000 - (right(formatdatetime(now(), vblongtime), 2) * 1000)&lt;BR /&gt; end if&lt;BR /&gt; &lt;BR /&gt; set ex_shop = doc.GetSheetObject("CH284")&lt;BR /&gt; ex_shop.Export path &amp;amp; "Shopanzahlen\ShopAnzahlen" &amp;amp; "_" &amp;amp; user &amp;amp; "_" &amp;amp; zeit &amp;amp; ".txt",";"&lt;BR /&gt; &lt;BR /&gt; set ex_wert = doc.GetSheetObject("CH292")&lt;BR /&gt; ex_wert.Export path &amp;amp; "Wert\Wert" &amp;amp; "_" &amp;amp; user &amp;amp; "_" &amp;amp; zeit &amp;amp; ".txt",";"&lt;BR /&gt; &lt;BR /&gt; set ex_bruttonetto = doc.GetSheetObject("CH316")&lt;BR /&gt; ex_bruttonetto.Export path &amp;amp; "BruttoNetto\BruttoNetto" &amp;amp; "_" &amp;amp; user &amp;amp; "_" &amp;amp; zeit &amp;amp; ".txt",";"&lt;BR /&gt; &lt;BR /&gt; 'doc.Reload&lt;BR /&gt; &lt;BR /&gt; dauer = formatdatetime(now() - dauer, 2)&lt;BR /&gt; if puffer &amp;gt; 0 then puffer = "(Pufferzeit: " &amp;amp; puffer &amp;amp; ")"&lt;BR /&gt; msg1 = "Daten erfolgreich gespeichert und neu in die Anwendung eingeladen" &amp;amp; chr(10) &amp;amp; chr(10)&lt;BR /&gt; msg1 = msg1 &amp;amp; "Dauer: " &amp;amp; formatdatetime(now() - dauer, vblongtime) &amp;amp; chr(10) &amp;amp; puffer&lt;BR /&gt; &lt;BR /&gt; msgbox msg1&lt;BR /&gt; &lt;BR /&gt; set doc = nothing&lt;BR /&gt; set fld = nothing&lt;BR /&gt; set user = nothing&lt;BR /&gt; set ex_shop = nothing&lt;BR /&gt; set ex_wert = nothing&lt;BR /&gt; &lt;BR /&gt; end sub &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 12:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552442#M206347</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-30T12:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552443#M206348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnk You this is what i wanted &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; will adapt the code you posted next monday and mark your anserw as correct as soon as im done! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice week end. &lt;/P&gt;&lt;P&gt;Juan Pedro &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 13:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552443#M206348</guid>
      <dc:creator />
      <dc:date>2013-08-30T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552444#M206349</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;Try the attached example.&lt;/P&gt;&lt;P&gt;You can load source data, edit values, store partial changes or restore last saved data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 15:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552444#M206349</guid>
      <dc:creator>Andrea_Ghirardello</dc:creator>
      <dc:date>2013-08-30T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to store Inputfield Values</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552445#M206350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very Clean and simple solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks for sharing. Exactly what i needed ++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Juan Pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 07:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-store-Inputfield-Values/m-p/552445#M206350</guid>
      <dc:creator />
      <dc:date>2013-09-02T07:18:21Z</dc:date>
    </item>
  </channel>
</rss>

