<?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 Localization lab test, almost there! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255228#M581792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Roland, but I see that you are using pre calculated fields using the load script, since it is about localizing dates, there is a problem of doing that, since depending on the user's time zone, a specific month or day, cannot be pre calculated, since, (GMT +- X) can fall on many days or months, that's why I was trying to use a runtime solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 20:24:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-28T20:24:26Z</dc:date>
    <item>
      <title>Localization lab test, almost there!</title>
      <link>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255226#M581790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, for the past couple of days I have been working, mostly trying to create a function that will allow me to localize some dates, there are a couple of threads that I started regarding some bug QlikView has, if you have some spare time, go ahead and take a look at them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://bit.ly/urzrU2"&gt;http://bit.ly/urzrU2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://bit.ly/vdOz7v"&gt;http://bit.ly/vdOz7v&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, the system variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;MonthNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;DayNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can be modified in runtime, but their new value won't be reflected on the expression and date formats that use them like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WWW, MMM D, YYYY = Wed, Nov 24, 2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created a couple of tables DayNames and MonthNames, also a third one called Languages, as you can imagine, the data is linked by Language to each name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv4.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/8836_qv4.png" /&gt;&lt;/P&gt;&lt;P&gt;If you find weird the value inside the column MonthName and DayName, that includes both&amp;nbsp; Locale_&amp;lt;VALUE&amp;gt; its because there is another weird behavior with QV that if I have the same value in a column, the functions FieldValue goes crazy, but that's another story.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did create a function that returned the date as I wanted, here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;fieldvalue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DayName'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DayID'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;weekday&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;($1)) &amp;amp; '_'&amp;amp; GetFieldSelections(Locale)&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;lt;' &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;gt;'&lt;BR /&gt;)&lt;BR /&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//Delimiter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&amp;amp;', ' &amp;amp;&lt;BR /&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//MonthName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;TextBetween(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldvalue(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MonthName'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,FieldIndex(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MonthID'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Num(Month($1)) &amp;amp; '_'&amp;amp; GetFieldSelections(Locale)&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;lt;' &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;gt;'&lt;BR /&gt;)&lt;BR /&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//Delimiter&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;amp;' ' &amp;amp;&lt;BR /&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//DayNumber&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;day($1)&lt;BR /&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//Delimiter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&amp;amp;', ' &amp;amp;&lt;BR /&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//YearNumber&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Year($1)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far everything was going fine, but when I called it from the calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(fn_localizedDate(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does display the dates as I wanted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv5.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/8849_qv5.png" /&gt; &lt;IMG alt="qv6.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/8850_qv6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am stuck, since after I choose the desired date, the calendar goes blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some testing I see that I selects all the Languages after selecting a date, but why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, any suggestion on how to implement this, or make it to work, as for displaying dates accordingly to the selected language, will be very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 20:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255226#M581790</guid>
      <dc:creator />
      <dc:date>2011-11-24T20:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Localization lab test, almost there!</title>
      <link>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255227#M581791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try another approach. Please take a look (or two) into my example app. Don't hesitate to ask for details, if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hint:&lt;/P&gt;&lt;P&gt;Independent of the concept you will use: I recognized that all your tables where singles. In most cases this is not the best approach. Check out the possibilities of linking tables together via uniqe keys. (Or second: the QV-Joins)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 08:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255227#M581791</guid>
      <dc:creator />
      <dc:date>2011-11-25T08:47:37Z</dc:date>
    </item>
    <item>
      <title>Localization lab test, almost there!</title>
      <link>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255228#M581792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Roland, but I see that you are using pre calculated fields using the load script, since it is about localizing dates, there is a problem of doing that, since depending on the user's time zone, a specific month or day, cannot be pre calculated, since, (GMT +- X) can fall on many days or months, that's why I was trying to use a runtime solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 20:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Localization-lab-test-almost-there/m-p/255228#M581792</guid>
      <dc:creator />
      <dc:date>2011-11-28T20:24:26Z</dc:date>
    </item>
  </channel>
</rss>

