<?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 Dynamic Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207826#M63455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does every user get a selection + D? Should the button always select the other value (not D)?&lt;/P&gt;&lt;P&gt;If so, field F should always have two values, the "select" value and D. When the user clicks the button, select both values (*) and then deselect (ToggleSelect) D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Selector&lt;BR /&gt; ActiveDocument.Fields("F").Select "*"&lt;BR /&gt; ActiveDocument.Fields("F").ToggleSelect "D"&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If it's not as simple as that, I'd make another table with user and select value as fields. You should have the user when they open the document, so you should be able to use this table to select the necessary values. EDIT: Or what Mark said, I didn't see his reply when I posted. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2010 17:55:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-11T17:55:47Z</dc:date>
    <item>
      <title>Dynamic Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207824#M63453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a field F with values A, B, C, D.&lt;/P&gt;&lt;P&gt;I have Section Access applied:&lt;BR /&gt;User X can see only values A+D&lt;BR /&gt;User Y can see only values B+D&lt;BR /&gt;User Z can see only values C+D&lt;/P&gt;&lt;P&gt;I have a button;&lt;BR /&gt;on click field value A shall be selected for User X;&lt;BR /&gt;on click field value B shall be selected for User Y;&lt;BR /&gt;on click field value C shall be selected for User Z;&lt;/P&gt;&lt;P&gt;I know how to do this in a 'brute force' of coding, but my question is, whether there is a generic way (for much more value combinations and users).&lt;/P&gt;&lt;P&gt;The common case is, that I want to select the first entry in a sorted field value list.&lt;BR /&gt;Do you have any idea for an 'elegant' solution?&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 17:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207824#M63453</guid>
      <dc:creator />
      <dc:date>2010-01-11T17:23:26Z</dc:date>
    </item>
    <item>
      <title>Dynamic Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207825#M63454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about a table with User, Value?&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;User Value&lt;/P&gt;&lt;P&gt;X A&lt;/P&gt;&lt;P&gt;X D&lt;/P&gt;&lt;P&gt;Y B&lt;/P&gt;&lt;P&gt;Y D&lt;/P&gt;&lt;P&gt;Z C&lt;/P&gt;&lt;P&gt;Z D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 17:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207825#M63454</guid>
      <dc:creator />
      <dc:date>2010-01-11T17:28:02Z</dc:date>
    </item>
    <item>
      <title>Dynamic Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207826#M63455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does every user get a selection + D? Should the button always select the other value (not D)?&lt;/P&gt;&lt;P&gt;If so, field F should always have two values, the "select" value and D. When the user clicks the button, select both values (*) and then deselect (ToggleSelect) D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Selector&lt;BR /&gt; ActiveDocument.Fields("F").Select "*"&lt;BR /&gt; ActiveDocument.Fields("F").ToggleSelect "D"&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If it's not as simple as that, I'd make another table with user and select value as fields. You should have the user when they open the document, so you should be able to use this table to select the necessary values. EDIT: Or what Mark said, I didn't see his reply when I posted. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 17:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207826#M63455</guid>
      <dc:creator />
      <dc:date>2010-01-11T17:55:47Z</dc:date>
    </item>
    <item>
      <title>Dynamic Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207827#M63456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;With a macro you can do it: regards&lt;BR /&gt;&lt;B&gt;sub&lt;/B&gt; selectFirstValue&lt;BR /&gt;&lt;B&gt;set&lt;/B&gt; LB = ActiveDocument.GetSheetObject("LB01")&lt;BR /&gt;boxvalues=LB.GetPossibleValues&lt;BR /&gt;ActiveDocument.Fields("Fieldname"). &lt;B&gt;Select&lt;/B&gt; boxvalues(0)&lt;BR /&gt;&lt;B&gt;end&lt;/B&gt; &lt;B&gt;sub&lt;/B&gt;&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 18:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207827#M63456</guid>
      <dc:creator />
      <dc:date>2010-01-11T18:00:09Z</dc:date>
    </item>
    <item>
      <title>Dynamic Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207828#M63457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;NMiller wrote:Does every user get a selection + D?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;No, it was just meant to show that there are more values in the field than I have users.&lt;/P&gt;&lt;P&gt;I am afraid of the table-solution (by Mark), as this means continued maintennace work.&lt;BR /&gt;My sample is very simplified. In reality I have a number fields which need special treatment and many users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 18:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207828#M63457</guid>
      <dc:creator />
      <dc:date>2010-01-11T18:34:10Z</dc:date>
    </item>
    <item>
      <title>Dynamic Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207829#M63458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;fredrik.martzen wrote:ActiveDocument.Fields("Fieldname"). &lt;B&gt;Select&lt;/B&gt; boxvalues(0)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So if my list is sorted (I assume that this can also be forced within the macro), this would be it.&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;P&gt;And just out of curiosity: A generic (i.e. no manual data assignment necessary) solution without macro (so just by the means of QV-Formala/Script) in sight?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 18:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Selection/m-p/207829#M63458</guid>
      <dc:creator />
      <dc:date>2010-01-11T18:38:15Z</dc:date>
    </item>
  </channel>
</rss>

