Search DominoPower's 11,443 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Creating context sensitive field help with dialog boxes (continued)

Second, make the table "Show only one row at a time" and "Switch rows programmatically," as shown in Figure C.

FIGURE C


Set the help table properties to show one row at a time Roll over picture for a larger image.

Next, add the "Table cell control." First, give your table a name. Here I used "HelpRowNO," as shown in Figure D.

FIGURE D


Give the table a name. Roll over picture for a larger image.

Then add the control field to your help dialog form. The field must have the same name as the table and be prefixed with a "$." In this example, it would be "$HelpRowNO," as shown in Figure E.

FIGURE E

Here's the table control field on the help dialog form.

Hide this field from Notes and the Web. Strictly speaking, this field isn't required because nobody ever sees it. Your code will create the required field on the form back end, even if there's no front-end presentation. But it does make life easier for the next programmer.

Usually you reduce clutter by hiding the Help hotspots in read mode. But the above approach won't work, since your code can't set a value on the form in read mode. If you want help to show, you can use a profile document to pass the value to the dialog form. Use the format @GetProfileField ( "ProfileFormName"; "ProfileFieldName"; @username). If you leave out the @username part, you could potentially get some strange results when a lot of people use your help!

Since nobody will ever see this field on the profile document, you don't need a form for it. Just give your profile document form a fake name. Your code can cheerfully update the field, and the help dialog can read it without ever using a profile form. For example:

@GetProfileField ( "FakeProfileName"; "FieldName"; @username)

The code
I used LotusScript to call the help form in a dialog box because it's more flexible than using @formulas. The script behind the Help action hotspot is very simple.

The calling code is:

Call HelpDialog ( 1, "_Help Form MainDoc", "")

The called sub is:

Sub HelpDialog( intRow As Integer, strForm As String, strTitle As String)
%REM
=========================================================
PURPOSE
Launch the custom help form, and display the appropriate cell.

PASSED
intRow The row on the help table that will display.
strForm The particular help from to display
strTitle The title of the dialog box. If nothing, this field shows the word "Help"

RETURNS
Help document in the UI

LIBRARIES USED
None

SPECIAL NOTES


HISTORY
08 Mar 01 Chris Doig Initial version
=========================================================
%END REM

Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument

Set uidoc = ws.CurrentDocument
Set doc = uidoc.document

'Set the row to open on the Help form
doc.~$HelpRowNO = intRow

'Set (help) dialog box title
If strTitle = "" Then
strTitle = "Help " & intRow
End If

'Display the help
Call ws.dialogbox ( strForm, True, True, False, False, False, False, strTitle, , True )

End Sub


« Previous  ·  1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Syncing Notes with Android phones
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login