: 4582 | 108638 | 12353

@IsRichTextEmpty and LotusScript/Java equivalents 
New idea submissions, commenting and voting are no longer available on this site. Logins have also been disabled.
Use this IdeaSpace to post ideas about Domino Designer.

: 166
: 166
: 0
: Domino Designer
: richtext, @formula, lotusscript, java
: Ben Langhinrichs7009 05 Dec 2007
:
: / Email
Even having a rough way to do this in Midas, I would really like to see a simple @formula (and matching LotusScript) method for determining if there was anything in the rich text.  Even better would be if it took an argument that specified whether whitespace was included, so you could have
 
@If (@IsRichTextEmpty("Body"); ...)
 
or
 
@If (@IsRichTextEmpty("Body"; [IgnoreWhitespace] ); ...)
 
The method should be smart enough to realize that just because a paragraph or color is added, the rich text is still functionally blank, and if the IgnoreWhitespace were added, even newlines and spaces would be ignored.
 
This is requested frequently on the forums for validation formulas as well as other uses.



1) Slawek Rogulski8874 (05 Dec 2007)
Thats would certainly make life easier and make some things possible in the first place. I would also like to have the parameter to check if empty ignoring any non-text content such as
@IsRichTextEmpty ("Body"; [IgnoreBinaryContent] ; ...)
Binary content would be images, attachments, doc links, etc
2) Kerr Rainey3860 (06 Dec 2007)
I'll assume "and LotusScript equivalent" includes a general extension to the API that would also be available in Java.
3) Paul Davies12381 (06 Dec 2007)
agreed - having to calculate/store an abstract just to do this is cumbersome
4) Ben Langhinrichs7009 (06 Dec 2007)
Absolutely, there should be an equivalent in Java. Sorry to overlook it.
5) Peter Herrmann60 (06 Dec 2007)
I voted for this but I do have a crappy workaround that I use for validation in the notes client UI. Snippet below - of course you need an error handler as well.

Call uidoc.GotoField(rtfield)
Call uidoc.SelectAll
'The next line will generate a 4407 error message if the Rich Text Field is null
Call uidoc.DeselectAll
6) Alois Gruber1706 (28 Dec 2007)
what about @RichTextSize("Body";[IgnoreBinaryContent]: other options) instead, that returns 0 when its empty. This way it would additionally allow for size control, e.g. in mails










:
:




Welcome to IdeaJam™


You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>


0
Use more customization features in ND9 NotesMail
13
Two-week Calendar view
3
@Formula library
25
Drafts - unsent count?
2
New Hide-When property
3
Activity Logging for Quickr
5
"follow-up complete" flag
15
Remake Resource Reservation template using XPage
6
Boolean operators on LDAP group based access control
17
Store IP Address / remote host data in Password Lockout documents
18
Checking Out-Of-Office status of others
7
DocumentCollection.search(@formula)
23
Tool to show unreferenced design elements for easy cleaup
5
Bring sametime audio and video into the web browser using WebRTC
17
"Window Title" for views
17
QuickR application/widgets for Android/iPhone
21
Create Computed Text with the same text style as the current paragraph
9
@Function and LotusScript to "View..Customize This View" dialog
8
Extend the 'User detail' info of a database
17
Print of calendar in color
6
Shared Actions belong under Shared Elements
20
Facelift all web enabled templates with xPages
3
Please extend WebDAV to include calDAV & cardDAV support for contacts/calendar syncing
2
Skin-ing Notes Design elemens
14
Add some views into the "Views" section of the Notes 8.5 mailbox






IdeaJam developed by

Elguji Software Logo