Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

expandallsections not done
Nadeem Shaikh 16.Jun.04 04:45 PM a Web browser
Domino Designer -- LotusScript 5.0.1a Windows NT

Hi,

I have an action button that adds values to fields in a document based on a dialog box appearing...the document goes from read mode, to edit mode and then read mode...but the sections in the document are not expanding when my last statement is
uidoc.expandallsections...i thought this statement overided the fom/section properties..
for some reason the sections are expanded when in edit mode but then it closes the sections once my code has finished.

What am i doing wrong in my code: Code is below

Thanks in advance

Nadeem Shaikh

My Code:

Sub Click(Source As Button)
Dim session As New notessession
Dim user As String
user = session.UserName
Print "Started Add & Remove process on " & Str$(Now())
Print "Implemented by " & user

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

Set uidoc = workspace.CurrentDocument
Set currentdb = session.currentdatabase
Set currentdoc = uidoc.Document
uidoc.EditMode = True

Call session.SetEnvironmentVar( "ERole", "ACO" )
Call session.SetEnvironmentVar( "EAddRemove", "Add" )

'+++++++++Call Dialog Box+++++++++++++++++++++++++++++++++++++++++++

Call DialogList("StaffMovDlg", "Add ACO Staff Member")
If Response1 = False Then
uidoc.EditMode = False
End
End If



'+++++++++Call Dialog Box+++++++++++++++++++++++++++++++++++++++++++


Set item1 = tempdoc.GetFirstItem( "SMAddRemove" )
Set item2 = tempdoc.GetFirstItem( "SMStaffName" )
Set item3 = tempdoc.GetFirstItem( "SMStaffRole" )
Set item4 = tempdoc.GetFirstItem( "SMCurrDivTeam" )


'+++++++++Get Item value+++++++++++++++++++++++++++++++++++++++++++
Dim NormalName As New NotesName(tempdoc.SMStaffName(0))
TName$ = NormalName.Abbreviated

Dim item As NotesItem
Forall vals In item3.Values

Set item = currentdoc.GetFirstItem( "DivACPO" )

End Forall
itemName = item.Name
'+++++++++Get Item value+++++++++++++++++++++++++++++++++++++++++++


'+++++++++Add+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Set item = currentdoc.ReplaceItemValue( "DivACPO", tempdoc.SMStaffName(0) )

'+++++++++Add+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Call currentdoc.Save( True, True )
Call uidoc.Reload
uidoc.save
uidoc.EditMode = False

'++++++++Compose Change Control Doc++++++++++++++++++++++++++++++++++++++++
Call ComposeChangeCDoc
Dim changeview As NotesView
Set changeview = currentdb.GetView( "ChgCtrlV" )
Call changeview.Refresh
Print "Staff to Add: " & tempdoc.SMStaffName(0)
Print "Staff Role: " & tempdoc.SMStaffRole(0)
Print "Staff Division: " & tempdoc.SMCurrDivTeam(0)
Print "No of Change Control Docs Created: " & Cstr(count7)

Call uidoc.ExpandAllSections

End Sub




expandallsections not done (Nadeem Shaikh 16.Jun.04)
. . RE: expandallsections not done (Adam Fakes 17.Jun.04)






  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

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

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
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
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow