dojo
PermaLink Configuring a Notes date field for use with the Dojo date picker06/05/2009 01:08 PM
dojo

Credit goes to Michelle O'Rorke.  She had blogged about how to do this, but it didn't sink in for me the first time around.  You need to change the field display settings so that Domino will render the date into international format ("yyyy-mm-dd").  When the Dojo control processes the value in the field, it will format the date into the format using the i18n settings it detects in your browser. 

When you submit the form, Domino will be able to process the date because of the display settings for the field.  The only other thing to do is add a computed for display field that will display the date normally ("mm/dd/yyyy" for us Yanks) when a document is being read.  Here's a picture of how to do the date field settings:


Date field display settings



(0)

PermaLink More fun with Dojo: "Using JavaScript control" nullifies other Dojo components05/31/2009 01:55 PM
dojo

I've been including dojo components in my Domino form using the following $$HTMLHead field:

Load Dojo $$HTMLHead

However, when I change a Rich Text field to use the new "Using JavaScript control" setting, the dojo rich text area appears, but none of my other dojo controls (FilteringSelect, ComboBox, TextArea, etc.) will load.  Nice...



(3)

PermaLink Question on dojo date picker05/27/2009 10:04 AM
dojo
I've been having a fun time trying to get the dojo date picker to work.  I'm using dojo 1.1.1 that ships with Domino 8.5.

It seems that the dijit.form.DateTextBox widget won't load a date value that already exists in the document if its not in the format dojo is expecting, which is "yyyy-mm-dd".  I tried reformatting the date in the "HTML Attributes" event for the field, but the date is still cleared out by the widget:

date := SurveyDate;
year := @Text ( @Year ( date ) );

month := @Text ( @Month ( date ) );
@If ( @Length ( month ) < 2; month := "0" + month; "" );

day := @Text ( @Day ( date ) );
@If ( @Length ( day ) < 2; day := "0" + day; "" );

"dojoType=\"dijit.form.DateTextBox\" value=\"" + year + "-" + month + "-" + day + "\""

The Dojomino dojomino.dijit.form.DateTextBox widget solves this problem, but the load time for Dojomino far from optimal.

Is there a way I can solve this problem using dojo 1.1.1?  Or this problem been resolved with a later version of dojo?  Or is there a way I can just load the one Dojomino widget I need?

(0)

Credits
NuTechs Powered by Domino
Search
Calendar
September 2010
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Monthly Archive
Get Real, Detroit!
Real Detroit Weekly
SWARM
Service
With
A
Rapid
Motion


-- old Rally's Hamburgers credo
Lotus Domino ND6 RSS News Feed RSS Comments Feed Podcast Feed Geo URL netcraft RSS Validator Lotus Geek Chris. A. Brandlehner Open Notes Picture Database OpenNTF CoComment Integrated BlogSphere
By Category
The BlogRoll
About
Contact Me
Contact me, Michael Sobczak, using this e-mail address:

my first initial my last name at Yahoo dot com
Recent Entries
No Recent Blogs
Powered by
Blogsphere