Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...

alt

Daniel Nashed

Useful Notes SmartIcons: Reformat text is my favorite

Daniel Nashed – 29 December 2024 20:59:17

Image:Useful Notes SmartIcons: Reformat text is my favorite

Notes formula are one of the lost arts. I am a big fan and have started to work with Notes at a time where we had no Lotus Script nor Java.
Today formula language is still very powerful. I am using it in many ways including C-API and Lotus script.


There are many @Commands for UI automation available. But there are also Lotus Script UI classes.

The really cool part of formula language is that you can use the commands in SmartIcons.


The following command selects the body text and sets the text to Default Sans Serif with 10pt.
It works for the whole mail including mail replies.


---
@Command([EditGotoField];"Body");

@Command([EditSelectAll]);

@Command([TextSetFontFace];@GetMachineInfo ([EnvVariable];"NAMEDSTYLE1_FACE"));

@Command([TextSetFontSize]; "10");

@Command([EditDeselectAll]);

---


It works for the whole mail including mail replies.


But there are more SmartIcons I use every day...

Remote server console


Notes 5.0 was the first client splitting client, admin and designer.
The old remote console is still available and works also without an admin client installed.
And also works on Mac and Nomad Web by the way.


---
@Command([AdminRemoteConsole])

---


Opening the notes.ini in notepad


This formula combines two commands. @ConfigFile is also useful in any text field with Shift + F9.


---
@Command([Execute];"notepad"; @ConfigFile)

---


Edit a field in a document


Another useful formula allows to update fields. This is one is for text field.


---
FieldName := @Prompt([OkCancelEdit]; "FieldName"; "Type the Field to change"; "") ; FieldValue := @Prompt([OkCancelEdit]; "FieldValue"; "Type the new Value"; "") ; FieldName + " --> " + FieldValue; @SetField (FieldName; FieldValue)

---



Links

    Archives


    • [HCL Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]