Now I remembered from way back in Notes 3.3 that I had created a bit of @function code to allow users to pick a template from a list and copy the selected template into the document the user is working on.
This is how the @function code works:
- Let the user pick a template from a list of templates using @Picklist and and categorised view
- Open the selected template document
- Navigate to he body field
- Select all the content in this field
- Copy the selected content to the clipboard
- Close the selected template document (and view)
- Paste the selected content at the location of the cursor
How about that in the age of xpages, sidebar widgets and composite applications.
For those interested I have made a database available for download. The function is available on the main topic, place the cursor in the body field and click on the "import template" button.
CopyAndPasteTemplate.zip
Note: the download is stored on Dennis' blog, as I cannot find an option in Blogger to provide downloads of type zip.
No comments:
Post a Comment