Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 8 Forum

Notes/Domino 8 Forum

Onchange event

You could put some code in the Onchange event for the Rich Text Lite field. That could would look in the field, detect any attachment and warn teh user (or even delete the attachment) if the extension is incorrect.

What I would do, however, is to use the OpenFileDialog method of the NotesUIWorkspace class. There you can filter so only PDF files are being displayed. It won't stop a user from changing the filter and selecting another type of file, but you can check the return value and ignore any files without the .pdf extension.
This method will also not prevent the user form manually attaching a file in the field. You can make that harder by not displaying the field delimiters on the rich text field.

In teh long run, there is only so much you can do, if users keep attaching the wrong type of files by bypassing the restrictions you have setup, it is a management issue, and their managers need to stop it.

Feedback response number WEBB935LCR created by Karl-Henry Martinsson on 12/19/2012

Attach only .pdf doc LS (Gabrielle R Cou... 19.Dec.12)
. . Onchange event (Karl-Henry Mart... 19.Dec.12)
. . . . DialogBox but.. (Gabrielle R Cou... 19.Dec.12)
. . . . . . Left$ perhaps? (Karl-Henry Mart... 20.Dec.12)
. . . . . . . . Thanks you (Gabrielle R Cou... 20.Dec.12)
. . . . . . . . . . Expanded class (Karl-Henry Mart... 21.Dec.12)


Search this forum

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite