Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     calendar localization

Read-Only Read-Only Topic
Go
Search
Notify
Tools
calendar localization
 Login/Join
 
Silver Member
posted
Is it possible to localize the calendar? It looks like it is possible to set the date format, but the proper format could be different per country (so we cannot set this once for all our users). Moreover, the month names are in English and as far as I can see this cannot be changed (in HTML Composer).

This message has been edited. Last edited by: Marc97229,


WebFOCUS 8.0.0.8, Windows 7
 
Posts: 36 | Location: Portland, OR (USA) | Registered: October 11, 2012Report This Post
Silver Member
posted Hide Post
This is not an issue at all.
Just use jQuery UI; it supports formatting, e.g.

$("#myInputId").datepicker("option", "dateFormat", "yy-mm-dd");

and translation of month names:

http://docs.jquery.com/UI/Datepicker/Localization


WebFOCUS 8.0.0.8, Windows 7
 
Posts: 36 | Location: Portland, OR (USA) | Registered: October 11, 2012Report This Post
Expert
posted Hide Post
It can be done using "jQuery". But, how can you localize the format to the country? "yy-mm-dd" may be different for another location / country, right?

Don't we want to stay in the HTML Composer?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
Doug,

If the HTML input element has id='startDate' and the locale is known on the client, e.g. by means of
var locale = '!IBI.GLB.LOCALE;' ;

then the following would turn this input element into a calendar and set its date format:

var region = locale.substring(3, 5);
$("#startDate").datepicker();

switch (region) {
case "NL":
case "FR":
case "DE":
case "GB":
$("#startDate").datepicker("option", "dateFormat", "dd/mm/yy");
break;
}


(The !IBI.GLB....; stuff is explained here http://forums.informationbuild...1057331/m/6687034526 .)


WebFOCUS 8.0.0.8, Windows 7
 
Posts: 36 | Location: Portland, OR (USA) | Registered: October 11, 2012Report This Post
Expert
posted Hide Post
That's beyond me at the moment... Frowner
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     calendar localization

Copyright © 1996-2020 Information Builders