About This Code
Brief Description:
Dojo - Easy As 123 - updated again: 21-June-09
Contributor:
Stan L Uptagrafft
Document Release:
dojo 1.3
Notes Version:
R6.x, R8.x, R7.x
Last Modified:
21 Jun 2009
OpenNTF Disclaimer
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
I learn by seeing how things are done by others... I struggled with dojo because I could not find examples! This database has several dojo elements exampled. You will also see what is needed to incorporate dojo into your code, what needs to be installed locally/server and some different ways to use dojo (pass thru html or within field properties)
credits:
This database is a variation of a database used at a lotusphere 2008 session: SpeedGeeking. I have changed the name to prevent users from confusing this with the original... and not to take any credit for the work done by Scott Good or Henry Newberry.
I saw dojo illustrated at Lotusphere, and read all about it on various Lotus/IBM sites.. however, reading the documentation at the dojo web sites didn't help since I wanted to implement this on domino. After several days of experimentation I found Henry's database and I could finally see dojo working. I needed more field types and after additional experimentation learned many things.
This database will show you the things I learned, and hopefully, save you some time in your exploration. Feedback is welcomed, and my thanks are returned to Scott Good and Henry Newberry.
This is not an application. This is a simple database with one view and one form with dojo type fields exampled on a form.
Usage / Example
You can use/develop with dojo locally! You don't need to install it on your server to see how it works.
Download this database and launch it via Notes (or your browser) for further instructions.
ACL: -Default- is Manager and Anonymous is Manager.
I've included some comments on the form and would welcome any questions you have too.
Updated 21-June-2009 removed obsolete styles and style sheet reference
Updated 11-June-2009 now includes PowerPoint Presentation and better comments
Updated 18-May-2009 to add field validation (account number) field and update instructions.
Updated 12-May-2009 to increase the Editor Menu for Dojo 1.3
Updates 29-March-2008
1) Confirmed works with dojo version 1.1 (also works with 1.02)
2) Added many more design elements (i.e. date/time/tooltips and more)
3) Added developer's table to help explain what to include based upon what elements are used
Updates 21-May-2008
1) Added even more design elements to the form
2) The view now includes a dojo radio button field in one column
3) This update has many improvements to previous examples
If you want to test this locally, simply open the view in Designer with Preview in Internet Explorer.
Code Attachments
Comments
Posted by Patrick Kwintensson on 03/17/2008 03:28:56 AMError message
From Notes 7:
attempted encryption operation is not supported by this version of Notes
Posted by Stan L Uptagrafft on 03/17/2008 06:02:59 AMencryption off
sorry... local encryption was on, this has been fixed. try again.
:)
Posted by Smita Lohkare on 11/10/2009 05:24:51 AMError message
I am using Dojo for the first time. I have downloaded the Dojo Toolkit 1.3.2 from its site. As mentioned by you, have created "Dojo" folder on server under the path Lotus\Domino\Data\domino\html. This folder has three folders (dijit, dojo, dojox) under it. Pls note: It does not have "util" folder as mentioned by you in your presentation as this is not coming with the toolkit.
I have created the dojo_123 database on server. On opening the existing document or new document I get error "bundle not found: gregorian in dojo.cldr". Please let me know if I have done anything wrong or am missing something.
Posted by Stan L Uptagrafft on 11/13/2009 07:36:01 PMre: Error message
The examples in this database illustrate Dojo and Dijit. When you download dojo from dojotoolkit.org, but sure you scroll down and pick the 'Dojo Toolkit: Dojo + Dijit + DojoX'
With each upgrade of dojo, I've expanded their RAR file into my existing directories... overwriting with the upgrade. I have assumed each successive upgrade included all that was included before. If this is not true, I will upload herein any missing directories. Please let me know your success.