Pentaho

 View Only

 Date input Component calendar and the week day start

  • Pentaho
  • Ctools
  • Pentaho
Alberto Gutierrez's profile image
Alberto Gutierrez posted 06-15-2018 06:42

Hi! Im newbie with Ctools and Im trying to change the calendar of the date input component to make it start on monday instead on sunday. is it possible? I have tried inserting code on pre-excution property of the component, but it doesn't work...or maybe I'm doing it badly. can someone help with it? thanks in advance!!


#Ctools
#Pentaho
David Martinez's profile image
David Martinez

Try to set default language in Dashboards object in preExecution function of Date Input component:

Dashboards.i18nCurrentLanguageCode="es"

In my case, language code was "es-ES" and component expects "es".  ¿bug?

Paulo Pires's profile image
Paulo Pires

I think that the week start is fixed, but you can check the available documentation of the date input component in your Pentaho repository:

/pentaho/api/repos/%3Apublic%3Aplugin-samples%3Apentaho-cdf%3A30-documentation%3A30-component_reference%3A10-core%3A40-DateInputComponent%3Adate_input_component.xcdf/generatedContent

Luciano Donazzolo's profile image
Luciano Donazzolo

Hi, do you know how to address the same issue in a RequireJS context?

I tried both

this.dashboard.i18nCurrentLanguageCode="it";

and

this.dashboard.Utils.i18nCurrentLanguageCode="it";

with no success.

Thanks in advance

Luciano