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  >  Lotus Workflow Forum

Lotus Workflow Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Yong Kheng Foo 29.Sep.11 12:02 AM a Web browser
Lotus Workflow Architect All Releases Windows XP


Dear all expert,

I have the following code with the postsave:

Sub Postsave(Source As Notesuidocument)
Dim workspace As New NotesUIWorkspace
Set source = workspace.CurrentDocument
Dim session As New notessession
Dim db As notesdatabase
Set db = session.currentdatabase
Set doc = New notesdocument(db)
Dim thisdoc As NotesDocument
Dim item As notesitem

If source.FieldGetText("zEmployeerehire") ="" Then
Msgbox "Please justify whether the employee should be rehire and the system to delete from!"
Call source.GotoField("zEmployeerehire")
Exit Sub
End If

If source.FieldGetText("zUserdeletefromsystem") ="" Then
source.FieldGetText("zUserdeletefromsystem_1")<>""
source.FieldGetText("zUserdeletefromsystem_2")<>""
source.FieldGetText("zUserdeletefromsystem_3")<>""
source.FieldGetText("zUserdeletefromsystem_4")<>""
Else
Msgbox "Please select a system for deletion"
call source.GotoField("zUserdeletefromsystem")
End If
End Sub

but it will prompt an error message: Incorrect argument type: string expected when user try to save the document by leaving the zUserdeletefromsystem = ""

And when user select the zUserdeletefromsystem field, it will promt the msgbox. What I wish to get from this code is, either one of the zUserdeletefromsystem field must be check else will prompt the msgbox.
(all the 5 zUserdeletefromsystem field is a checkbox)

Thank you.






Incorrect argument type: string exp... (Yong Kheng Foo 29.Sep.11)
. . RE: Incorrect argument type: string... (Mike Edgewater 29.Sep.11)
. . . . RE: Incorrect argument type: string... (Yong Kheng Foo 30.Sep.11)
. . . . . . RE: Incorrect argument type: string... (Mike Edgewater 30.Sep.11)





  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

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 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


 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