<?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: OneAndOnlyOne as a Action in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887691#M532507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a List Box which holds the Report_Date. I can use the =max(Report_Date) in the action to select it. I want to also set the List Box to OneAndOnlyOne selected. Because of what I am trying to show the user I don't want the user to be able to 'unselect' the Report_Date by selecting 'clear'. The user must also not be able to select more than 1 of the Report_Dates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a action cannot read/set/change object-properties, then I need to find another solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-John &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 12:29:14 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2015-05-06T12:29:14Z</dc:date>
    <item>
      <title>OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887689#M532505</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 am able to run a macro to select and set a object to alwaysoneselected. See below. This normally happens on Open Document.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("Report_Date").Select "=max(Report_Date)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld=ActiveDocument.GetField("Report_Date")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fprop = fld.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprop.OneAndOnlyOne = true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld.SetProperties fprop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need / want to get away from this practice and rather use a trigger. So how I see this working is to have a landing page with some values and buttons. The buttons are to direct the user to specific subject. On selecting the relevant button, the action can direct a user to the subject and set the alwaysoneselected field for that subject. The part of directing the user to the tab is the simple part. I would appreciate assistance on '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OneAndOnlyOne = true&lt;/SPAN&gt;' as a trigger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at the API, but must be honest, it looks like it was written in a foreign code! I would appreciate any pointers on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - John. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 11:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887689#M532505</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-06T11:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887690#M532506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With actions it's not possible to read/set/change object-properties. But I don't understand what do you want to achieve - you could set the OneAndOnlyOne option before and used by opening directly a select-action with a search-string with max(Report_Date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887690#M532506</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-06T12:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887691#M532507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a List Box which holds the Report_Date. I can use the =max(Report_Date) in the action to select it. I want to also set the List Box to OneAndOnlyOne selected. Because of what I am trying to show the user I don't want the user to be able to 'unselect' the Report_Date by selecting 'clear'. The user must also not be able to select more than 1 of the Report_Dates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a action cannot read/set/change object-properties, then I need to find another solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-John &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887691#M532507</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-06T12:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887692#M532508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's clear why do you want to have this field with OneAndOnlyOne but not why do you not enabled these option before and saved the app with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887692#M532508</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-06T12:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887693#M532509</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 does not work. &lt;/P&gt;&lt;P&gt;If I select yesterday's date in the list box and set the list box as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Always One Selected Value, then save the model. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have a trigger on Opening to set the Report_Date to =max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Report_Date&lt;/SPAN&gt;). The &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Report_Date remains yesterday's date. Even if I have a action on a button as &lt;SPAN style="font-size: 13.3333330154419px;"&gt; =max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Report_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;), it remains yesterdays date. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;John-&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887693#M532509</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-06T13:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887694#M532510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the search-string needs to be independent from the current selection. This could be achieved with set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max({1} Report_Date) // maybe with further conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887694#M532510</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-06T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: OneAndOnlyOne as a Action</title>
      <link>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887695#M532511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh nooo!!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Marcus I appreciate it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OneAndOnlyOne-as-a-Action/m-p/887695#M532511</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-06T13:22:30Z</dc:date>
    </item>
  </channel>
</rss>

