« Dojo 1.2 database added to downloads section | Main| Screenshot example of simple form rendering »

Automated conversion/rendering of Notes forms to Web added in Dojomino 1.2

Category   
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

While working on a customer project (converting 26 dbs from Notes client to Web), we have the ability to just add dojoType= to our Notes fields to convert them to Dojo dijits for the web, but decided it would be really nice if the "conversion" occurred in a more automated fashion. To that end, we built a routine that handles it at runtime and added it to the Dojomino 1.2 library (coming soon). It works like this:

  • In Designer, add a single subform to the original form with a custom $$HTMLHead that loads Dojo, Dojomino, and the DojominoFormBuilder script
  • Optionally, add a .js library file for "web way" of processing action buttons and Dijit field validations.
  • At runtime, Domino renders the document in read mode, edit mode, or OpenForm
  • The DojominoFormBuilder script runs, converts the action bar to a Dijit button based Action bar, and links the buttons to new javascript functions that we asked the developer to write for the actions. If the scripts don't exist, it executes the original actions the Notes buttons were coded to perform.
  • The DojominoFormBuilder gets the design of the form from the server as a JSON object, and then goes through the page and converts every field into a Dojo dijit. Again, if the developer has provided new field validations in a script file, we link those in and use them as well

So, all in all, a fairly unobtrusive and gracefully degrading approach. If the browser doesn't support javascript, the document renders as it always has. If the developer hasn't coded new javascript actions for the buttons, no problem, we use what was there before. If the developer hasn't provided new field validations, no problem, we'll still let Domino catch it on the backend and do its thing. As for the form fields, what gets re-rendered?

  • text fields
  • date fields
  • number fields
  • dialog list fields
  • combobox fields
  • names fields
  • RichText fields
  • checkbox fields
  • radiobutton fields

We've got most of it covered with the exception of Rich Text Lite and attachments, and we'll look into those before it's all said and done. I'll write more on this in the coming weeks as we release Dojomino 1.2

Comments

Gravatar Image1 - Great stuff Lance! Do you have any screenshots?

Gravatar Image2 - Looking forward to it Lance! As always great work and thanks for sharing and getting the rest of us a little smarter.Emoticon

Gravatar Image3 - I'm pretty damn excited about this. Been working on a project where I was exploiting the new dojo 1.2 and can't wait to play with some updated dojomino

Gravatar Image4 - @Chris,

I will post an entry tonight or tomorrow morning with some screenshots for you.

@John,

And thank you for following along and thinking its worth taking a look at

@Keith,

Thanks! What kinds of things are YOU doing with dojo 1.2?

Gravatar Image5 -
Thanks! This is exactly what I was looking for

Post A Comment

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

Documentation

Tutorials

Dojo Blogs

TripIt

RSS