: 4582 | 108668 | 12353

@IsRichTextEmpty and LotusScript/Java equivalents 
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 >>


23
Better control over horizontal outlines
18
Implement "Live Scrolling" in Mail Views
21
Develop and open source a high quality framework for new DBs
20
InViewEdit - option to show <Ctrl-click here to add new document> at top of view
7
AJAX Suggest to work off Full Text search
-13
Email Chaser View
24
Integrate Quickr Connectors into the Lotus Notes install, just as is done for Sametime
19
Fix the bug of @BrowserInfo
45
Push out Notes.ini parameters with a Desktop policy
34
Have Ctrl-T open a new browser tab in the Notes Client
15
Connect to more than one Sametime server in Notes client
34
Clear All Breakpoints
13
Include Request_Content in DocumentContext for Web Service Providers
17
Ability to detach and remove file attachments from multiple emails at once
21
Control integrated Sametime status settings
17
Extend options to set preferences for Rich Text
32
Add @DialogBox, @PickList and @Prompt for x-pages
24
HTML validation and accessibility for XPages
15
Add 'Move to My Contacts' button to the form
26
Stationary usable in reply and forward of emails
42
Copy text to the clipboard from the Properties dialog - especially the Replica ID
35
Publish API to work with calendar items, tasks and contacts






IdeaJam developed by

Elguji Software Logo