<?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: format textfield in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690573#M250037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field CallMonth is loaded as Month(TempDate), the function in the help says int month(Timestamp), although I expect it to be a dual. Your map is based on text values, and fails (no month is the only value), I would try to map to 1-12 instead of 'jan'-'dec'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 14:47:05 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-07-31T14:47:05Z</dc:date>
    <item>
      <title>format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690569#M250033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my script I use the set function to set my monthnames&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET MonthNames='jan;feb;mrt;apr;mei;jun;jul;aug;sep;okt;nov;dec';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For translation to the english values I was thinking to do an applymap like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthsEN:&lt;/P&gt;&lt;P&gt;Mapping Load * INLINE [ CalMonth, CalMonthEN&lt;/P&gt;&lt;P&gt;jan, Jan&lt;/P&gt;&lt;P&gt;feb, Feb&lt;/P&gt;&lt;P&gt;mrt, Mar&lt;/P&gt;&lt;P&gt;apr, Apr&lt;/P&gt;&lt;P&gt;mei, May&lt;/P&gt;&lt;P&gt;jun, Jun&lt;/P&gt;&lt;P&gt;jul, Jul&lt;/P&gt;&lt;P&gt;aug, Aug&lt;/P&gt;&lt;P&gt;sep, Sep&lt;/P&gt;&lt;P&gt;okt, Oct&lt;/P&gt;&lt;P&gt;nov, Nov&lt;/P&gt;&lt;P&gt;dec, Dec&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; DatumNum as TempDate&lt;/P&gt;&lt;P&gt;resident Detail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendarTemp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; month(TempDate) as CalMonth&lt;/P&gt;&lt;P&gt;resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; CalMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp; applymap('MonthsEN', CalMonth, 'No Month') as CalMonthEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;resident MasterCalendarTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;P&gt;drop table MasterCalendarTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This applymap isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do a test that both values are the same I created an other table "test"&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt; Load * INLINE [ CalMonth, CalMonthEN1&lt;/P&gt;&lt;P&gt;'jan', Jan&lt;/P&gt;&lt;P&gt;'feb', Feb&lt;/P&gt;&lt;P&gt;'mrt', Mar&lt;/P&gt;&lt;P&gt;'apr', Apr&lt;/P&gt;&lt;P&gt;'mei', May&lt;/P&gt;&lt;P&gt;'jun', Jun&lt;/P&gt;&lt;P&gt;'jul', Jul&lt;/P&gt;&lt;P&gt;'aug', Aug&lt;/P&gt;&lt;P&gt;'sep', Sep&lt;/P&gt;&lt;P&gt;'okt', Oct&lt;/P&gt;&lt;P&gt;'nov', Nov&lt;/P&gt;&lt;P&gt;'dec', Dec&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CalMonth.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63457_CalMonth.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;How can I format my text so they are all on the left or all on the right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690569#M250033</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2014-07-31T13:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690570#M250034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share you qvw?&lt;/P&gt;&lt;P&gt;I tried at my end with data similar to yours and applymap worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690570#M250034</guid>
      <dc:creator />
      <dc:date>2014-07-31T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690571#M250035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my qvw.&lt;/P&gt;&lt;P&gt;As you see I have values on the right side of the listbox and values on the left side of the listbox.&lt;/P&gt;&lt;P&gt;How can I put all the values on the same side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690571#M250035</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2014-07-31T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690572#M250036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to &lt;STRONG&gt;Presentation &amp;gt;Alignment &amp;gt;make both text and number to left align.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because since your mapping its taking it as number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690572#M250036</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2014-07-31T14:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690573#M250037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field CallMonth is loaded as Month(TempDate), the function in the help says int month(Timestamp), although I expect it to be a dual. Your map is based on text values, and fails (no month is the only value), I would try to map to 1-12 instead of 'jan'-'dec'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690573#M250037</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-31T14:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690574#M250038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working for me.&lt;/P&gt;&lt;P&gt;But if I Use this in a selectiobox the CalmonthN (this is the field with the month function from Qlikview) is sorting like I would have it.&lt;/P&gt;&lt;P&gt;But the textversions are sorting good (if I sort on the numeric value)&lt;/P&gt;&lt;P&gt;but if I select a value it is automatic set to the last place. How can I let the values in the same order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="calmonth1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63481_calmonth1.PNG.png" style="width: 620px; height: 183px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 15:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690574#M250038</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2014-07-31T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690575#M250039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably have the sort by state set to descending? If so remove the sort by state check mark. If not I will need more info, sort by expression??, expression=??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 15:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690575#M250039</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-31T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: format textfield in script</title>
      <link>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690576#M250040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Piet Hein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried different sort-settings but nothing seems to work...&lt;/P&gt;&lt;P&gt;You can find my testdashboard in this comment.&lt;/P&gt;&lt;P&gt;If it's possible I would like that the CalMonth and CalMonthEN are sorting the same way as the CalMonthN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 06:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/format-textfield-in-script/m-p/690576#M250040</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2014-08-01T06:43:42Z</dc:date>
    </item>
  </channel>
</rss>

