dominoGuru.com

Your Development & Design Resource

While we're talking about FCKeditor and Domino...

I've found it's ultimately easier to take Domino out of the markup-generation whenever I can, and that means creating your own markup - or at least creating and controlling your own markup-generation. The first step is to often create your own Domino Forms - markup-based forms that are used to create documents in a Domino database.

"Rolling your own" Domino Forms can be pretty easy, once you know how that is. One of the tricks I've learned can help to cut down on calculations, thus providing faster page loads and less impact at the server, and allow a more easily recognizable home-grown solution. I'll elaborate on what I have (and what I've seen other developers) do in the past:

Let's say we have a form called "testform" that we will use to create documents in our database. "Testform" contains 3 fields, testfield1, testfield2, and testfield3. Now, there's two ways that I've seen this done: either the first line on the "testform" form is </form> -or- first setting the Form's Content Type to HTML (or Other, "text/html"), putting all of the fields at the top of the form (with hide-when formulas) and using hand-written markup with <Computed Text>. This second approach gives you the added benefit of being able to manipulate ANYTHING on the given form, since it's all hand-written by the developer.

Since I think we're all familiar with the first option, I'll go on a little more about the second:

From the above example, you can see what I'm getting at - I calculate the the value of the field from it's correlating Domino-based field value. But instead of using <Computed Text> for 50 fields, you can simply use the Domino field in the <Computed Text>'s place...

This works great non-Radio or non-Checkbox Input elements and Textarea elements. For those and other types of elements, check back here soon!

Some quick reads for related content:
Creating Documents via the URL-Command Method


About the author: Chris Toohey

Thought Leadership, Web & Mobile Application Development, Solutions Integration, Technical Writing & Mentoring

A published developer and webmaster of dominoGuru.com, Chris Toohey specializes in platform application development, solutions integration, and evangelism of platform capabilities and best practices.



More from dominoGuru.com


dominoGuru.com is powered by IBM Notes Domino XPages & hosted by Prominic.NET

Contact Us

Use our Contact / Feedback form or one of these email addresses:

Creative Commons License

Except where otherwise noted, dominoGuru.com by Chris Toohey is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.