Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can WebFocus 8 Use the Browser Locale?
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Can WebFocus 8 Use the Browser Locale?
 Login/Join
 
Gold member
posted
Can WebFocus 8 use the browser's locale to alter dates and times to the correct values, and alter date and time formats to their regional formats?

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 70 | Registered: February 08, 2018Reply With QuoteReport This Post
Expert
posted Hide Post
I believe it can. However, your procedures need to accommodate for that. That 'locale' stats come from, I think, the location of the severer which is where the procedures are processed.


   See you at Summit! In FOCUS Since 1983 ~ from PC FOCUS to WebFOCUS.
   Currrently using 8204 Gen 48 in Test and Production.
   KGPCo at CenturyLink. October 2017 to Present...
 
Posts: 2967 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
That's what I've been reading. It's a silly thing to do since it's what the user sees that's important. Using the locale of the browser, which is easily available, makes much more sense. I've seen javascript implementations of this though. But all this is old, 2012 and before.


WebFOCUS 8
Windows, All Outputs
 
Posts: 70 | Registered: February 08, 2018Reply With QuoteReport This Post
Gold member
posted Hide Post
I have always used JS if i have to do anything related to locale, it is easy and reliable.


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Reply With QuoteReport This Post
Guru
posted Hide Post
If you have enabled the dynamic language switch, a user selects a language once and that choice is kept in a cookie. Default output on the server is whatever is defined in the masterfile. Using:

SET DATE_ORDER=
SET DATE_SEPARATOR=
SET TIME_SEPARATOR=
SET DATEOUTPUT=LOCALIZED

You can set the right formats you need. Especially for multinational enterprises you don't want the user's browser to be leading in choosing the date format.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 381 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
Interesting. Still, not the dynamic solution that would be necessary in places like Europe. It doesn't deal with the user's timezone, which is what started me down this road, either.

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 70 | Registered: February 08, 2018Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can WebFocus 8 Use the Browser Locale?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.