PermaLinkMore than you ever wanted to know about Domino date fields02:48:17 PM
Written By : Scott Good

We are nearly finished with Internationalizing our workflow tool, ProcessIt. This has been a pretty significant effort, out of which has come a whole suite of tools that make it much easier to convert any Domino application to support multiple languages.

DatePicker.jpg

YES, I KNOW the "Spanish" in the image here is awful. I used Google's translation service to get something to put in all the places there was language. We are the in the process of getting real, actual, translations. The cool thing is, the way we built this, substituting them in is trivial. Really.


I'll write more about the whole toolset another day. Today, I want to concentrate on a single tool in the box and some interesting things we learned along the way.

This release of both the toolset and ProcessIt has concentrated on web-facing applications, although we have built all the tools with an eye toward making things work in the Notes client, too. One of the biggest challenges has been getting a great user experience for all the various dialog boxes you have to use.

Workflow applications, like pretty much any sophisticated Notes/Domino application, involve some amount of user interaction in the form of prompts, calendar pickers, date pickers, etc. One of our goals was to get rid of anything that required opening a new window. We wanted a modal-dialog-like experience.

And, we (which is a nice way of spreading the blame around by not saying "I, the anal-retentive one") didn't want to use the DoJo dialogs as they are, how can I put this nicely?, SLOW. As a result, we have spent a not-insignificant amount of time rolling our own, one of which you can see in the image above.

The calendar picker, which you see here, had a whole set of special problem because date fields have all kinds of different formats you can set them to use. So, we had to make it smart.

What was interesting, once we started digging into this, was to find out how really smart Domino is about dates on the web. I mean, sure, we all know that if you put a date into a field using the North American English-language Notes client, users on a Spanish-language Notes client will see that date in Spanish. If month names or abbreviations are included, they're translated. If not, the generic date format is re-swizzled from the US's MM/DD/YYYY to the rest of the world's DD/MM/YYYY.

But that's the Notes client. Of course it does that.

What I assumed (incorrectly, I might add), was that if you hit a North American English-language Domino server from a browser, you would get the North American English-language date formats, regardless of what language your browser was set to use.

But, you don't. You get local date formats and translations based on your browser's language. Who knew?

Given that, we were able to extract from the browser the correct month names and abbreviations, along with weekday names (you have to show the first letter of each weekday on the calendar picker, after all) and to use them to automatically update the picker to use YOUR language, whatever that is.

Also, if you're changing the date in a field which already has a date in it, the picker looks at the format of the date that's already there and, if it is unambiguous (that is, it can determine what it means for sure), it will put the new date back into the field using the same format as the one coming out...whatever that may be.

Pretty cool, if I say so myself.

If the starting field is blank, or if the date is something we cannot be absolutely sure of (for instance, "03/07/08" could mean March 7, 2008; July 3, 2008; or even July 8, 2003 to Domino), well, in that case it defaults to a simple DD-MON-YYYY format (like 07-Mar-2008--translated into your language, of course) which, it turns out, Domino can always deal with, regardless of what format the field is "supposed" to have.

In my testing, this was actually a pleasant surprise: Domino will take ANY non-ambiguous date value and properly convert it during the save. Enter "2008~3~July" into a field and Domino will figure it out and convert it to its own internal date format (then show it to you the next time in whatever format the field calls for).

Once again, I'm mildly amazed at what's inside the yellow box.

Comments :v

1. Jeovani Junco08/29/2008 05:15:13 PM
Homepage: http://www.eteam.com.co/miblog.nsf


Hi, By the image you post here, I can say it's not a good spanish translation.




2. Scott Good08/29/2008 06:12:04 PM
Homepage: http://www.scottgood.com


Damn. I knew I should have said something about that. The translations are straight off of Google's translation engine. There has been no effort so far to get them right...we've been concentrating on getting the technology to work. Good translations come next.

Thanks,

Scott




Enter Comments^


Email addresses provided are not made available on this site.





You can use UUB Code in your posts.

[b]bold[/b]  [i]italic[/i]  [u]underline[/u]  [s]strikethrough[/s]

URL's will be automatically converted to Links


:-) :cry: :-\ :huh: ;-) :cool: :grin: :emb: :laugh: :-p :lips: :-( :rolleyes: :-o :-D :angry: :-x
bold italic underline Strikethrough





Remember me    

Disclaimer & Copyright
Monthly Archive
Contact me...

or IM: JSG1901
SMRT Racing Team

Thank you sponsors!

Infinite Fiberworks Co, a great source for high-quality Porsche fiberglass parts

Infinite Fiberworks Co.

If you are looking for fiberglass for Porsches, IFC is the place to go. I have used parts from most of the major suppliers and IFC's are easily the highest quality and the most reasonably-priced. Contact Mike at Infinite Fiberworks for more information.

Located in Racine, OH (so far Southeast they're almost in West Virginia), IFC's goal is to be The Best. Give 'em a try.


Bent or ugly wheels? Call Wheel Medic!

Wheel Medic & The Round House

Whether you need to repair, repaint, refinish or just replace your wheels, the guys at Wheel Medic/Round House can get you back on the road in no time!

Wheel Medic, Inc is a family-owned company which specializes in the repair and restoration of aluminum wheels.

The Round House was founded to service Wheel Medic's clients looking for more than just repair work...from custom wheel colors to high-end wheel applications and body kits, the Round House is there to serve the discriminating automotive enthusiast.


Used Porsche parts, great prices!

A Part Above

Looking for used parts for 944s, 924s, 968s or other late-model water-cooled Porsches? Contact John at A Part Above.

Located in Strongsville, OH (20 miles south of Cleveland) their goal is to provide top quality parts and services. I can tell you, John is great to work with and the prices? Very hard to beat.


SMRT Motorsports wants you!

SMRT (that's short for Skid Mark Racing Team), a very-

loosely organized band of fun-loving friends who enjoy auto racing (heck, cars in general), and the occasional adult beverage, wants you to be a part of our team.

Go here to find cool T-shirts, sweatshirts, caps and mugs with the SMRT team logo.

The BlogRoll
Speaking engagements, etc.
January 20-24, 2008
Lotusphere 2008 (Orlando, FL)
  • AJAX and JSON for IBM Lotus Domino Applications (JumpStart session)


  • Moving IBM Lotus Notes applications to the web (with Henry Newberry)


  • Implementing AJAX and JSON in Domino Applications (hands-on, with Henry Newberry)


  • A look under the hood at a world-class IBM Lotus Domino Web application (with Henry Newberry)
April 11-13, 2008
Mid-Ohio race course (New Lexington, Ohio) May 15-16, 2008
Mid-Ohio race course (New Lexington, Ohio) May 17-18, 2008
Putnam Park race course (Mount Meridian, IN) June 7-8, 2008
Grattan Park race course (maybe) (Mount Meridian, IN) July 11-13, 2008
Mid-Ohio race course (New Lexington, Ohio) August 15-17, 2008
Mid-Ohio race course (New Lexington, Ohio) September 13-16, 2007
Mid-Ohio race course (New Lexington, Ohio)
  • Racing for the NASA GTS2 National Championship
October 11-12, 2008
Putnam Park race course (Mount Meridian, IN)
Lotus Domino ND6 RSS News Feed RSS Comments Feed Geo URL RSS Validator Blog Admin Lotus Geek Open Notes Picture Database OpenNTF BlogSphere
Calendar
November 2008
Su
Mo
Tu
We
Th
Fr
Sa
1
2
4
5
6
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
By Category
What I do for a living


I am the President of Teamwork Solutions a long-time Lotus, now IBM, Premier Partner.

With offices in Columbus and Cincinnati, Ohio, we specialize in custom application development for Notes, Domino, WebSphere and Workplace. Our software product, ProcessIt! (see below), is quite possibly the world's best, most powerful and easiest-to-use workflow tool for Notes and the web.

Our clients are some of the world's largest corporations along with others that aren't so big.

We do excellent work, quickly, and often on a fixed-fee basis. We'd love to talk to you about your next project.




I am a Contributing Author to Lotus Advisor Magazine, with more than 40 articles under my belt.

I've written how-to series (serieses?) on LotusScript, JavaScript, Cascading Style Sheets (CSS), and now, AJAX (Asynchronous JavaScript and XML), as well as a bit on miscellaneous web development topics.


TheView.jpg

I also write for The View as of the July/August issue where I showed how to take an ugly Notes applications and make it beautiful with just a few minutes' (careful) work.



I am the chief architect and one of two primary developers for what many consider the best all-around workflow tool for Notes/Domino, anywhere, regardless of price.

It's called ProcessIt!, and you can read all about it at www.notesworkflow.com but the bottom line is this: ProcessIt! is fast and easy to learn, extremely powerful, and can be used by mortals. Even--dare I say it?--common users.

You can spend a lot more on a workflow tool but you won't be able to do a lot more for all the extra money.

Don't believe me? Download and try it for free for 60 days.



Copyright Porsche and NASA...not me!

I race a Porsche 944 S2 in National Auto Sport Assocation events and am the 2008 National Champion in NASA's GTS2 class.

Blame this event, a few years ago, for starting that particular money drain all over again.

I'm also a Nationally-Certified Instructor for the Porsche Club of America and am active in teaching high performance driving for them and other enthusiast groups at race track events throughout the Midwest.

In a prior racing life, I was the Midwestern Regional Formula Atlantic Champion and, in 1991, the Ohio Vally Region of SCCA's Regional Driver of the Year (but that, alas, went away when my credit cards let go of the rope!).




I'm writing a book...or at least trying to.

It's murder mystery in which, not too surprisingly, the main character runs a small software company and races cars for fun. Oh yeah, and lives near where I do.

Just where do they come up with these crazy ideas?