R5 Tab Simulation In 4.X

I tried to change all sections to Tabs. The problem I had with tab is that I
could not do field level validation within a field on a tab based on fields
under other Tabs. Sections are irritating when you have to scroll down a no. of
entries and enter field values. So, I tried something different. To combine
Notes given section and simulate button based TABs.
For this to work, use an environmental variable to store the value which will
be used to make sections visible / invisible.
To test this code do the following :

Create 2 Controlled Access Sections Section 1 and Section 2. Create 2 hotspot
buttons Button1 and Button2. Insert the following piece of code in both of them.

Diim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument

Set uidoc = workspace.CurrentDocument

Call session.SetEnvironmentVar( "Section", "Button1" ) and "Button2" in the
second button.
Call uidoc.RefreshHideFormulas

In the Postopen event of the form set the environment variable Section to
Button1 (default Button) with the following piece of code.

Dim session As New NotesSession

Call session.SetEnvironmentVar( "Section", "Button1" )
Call source.RefreshHideFormulas

Also ensure you have set the hide-when properties for both the sections.
@Environment("Section" )!="Button1" (Hide-when for Section1)
@Environment("Section" )!="Button2" (Hide-when for Section2)

Now try testing your form. You could see a TAB simulation in R4.x
This was last published in November 2000

Dig Deeper on Domino Resources - Part 7



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...