Execution
Where/
When Exec'd? | Function |
Point of Implementation
Where do you design it it Notes?
|
Code Examples & Comments
Useful with (or specific to) Domino deployment
|
Front End
Web Browser
Immediate | Editable field size |
|
|
| Save Doc (Submit) |
|
All code is ignored, but Title and placement apply
|
| Hide Submit button |
|
{<!-- -->] "comments out" the button
|
| Delete Current Doc |
|
|
| Edit Current Doc |
|
|
| Edit Any Doc |
|
**@URLOpen("NotesURLSyntax")
|
| Open Any Doc |
Hotspot, Actn Bttn/RichTxt
|
**@URLOpen("NotesURLSyntax") / DocLink
|
| Run Agent |
|
@URLOpen("NotesURLSyntax")
|
*Subroutine
*Field Assignment |
Form Text, CompForDisp
In any JavaScript
|
{<Script language="JavaScript">
function Calc(form) {
form.Total.value = form.Qty.value*form.Price.value;
}...</Script>] Note: use Shift+Enter for line breaks in code
|
| *Field Event Handling |
|
{<onFocus="Script;" onBlur="Script;" onChange=...>]
|
| *Form Event Handling |
|
[...<Body onLoad="Script;" onUnload="Script;">...]
|
| *Background color change |
|
[...<input type="button" value="Change to Gray" onClick= "document.bgColor='silver'">...]
|
| *Hidden Editable Field |
|
{<type="Hidden">] must NOT be hidden on Notes form
|
| *Pop-up Validation |
|
[...<input type="Button" value="Save" onClick="if(condition) alert('text') else form.submit();">...]
|
| *General Button to call a JS Subroutine |
|
[...<input type="button" value="Recalc" onClick="Calc(form); or any function scripted elsewhere on form">...]
|
| *Editable Dynamic Table Rows (also much faster to load for big tables) |
CompForDisp Field generates dynamic HTML for table, incl. fields
|
JavaScript writes back data from temp table fields thru hidden editable multivalue fields to Notes doc. Dummy fields w/ same name as temp table fields must exist on Notes form.
|
Client<->Server Transaction
Domino DLL
Upon Opening or
submiting a page | Field Assignment |
|
@SetField("AnyFieldName"; value)
|
| Input Validation (mes- sage on new page) |
Field Input Validation Formula
|
@Failure("[URL or HTML]" or "text")
|
| Save Event w/custom message or URL |
Computed Field named $$Return
|
|
| Read-only Dynamic Table Rows |
Computed for Display field
|
Use list @Functions to generate the HTML, pulling data from respective multivalue Notes fields.
|
| Differentiate between Notes and Web clients |
Formulas: Hide When, Form Formulas (in a View), Computed Subforms.
|
@IsMember("$$WebClient"; @UserRoles) Returns True for Web users, False for Notes users. Must have Enable
|
| Input Translation |
Input Translation Formula
|
Any valid input translation formula
|