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


Dustin Stamper 12.Nov.03 11:55 AM a Web browser
General All Releases iSeries (AS/400); Windows 2000


Remote users of a workflow application have local replicas. All users (except for a few Admins) have Author access and are able to create new projets. This works great on the server and for the admins running the app locally.

The problem comes when the Authors try to create a project on their local replica.

After filling out the required information in the form, the user clicks a button "Create Project".
Here is some of the code that is used to create a project:

Set maindoc = session.currentdatabase.CreateDocument

(I then set fields in the new document based on what they filled out)

Call maindoc.save (True, False)
noteid = maindoc.NoteID

'Close the main project document
Call uidoc.Close

Set agent = session.currentdatabase.GetAgent("OSExecuteNotesAction")
Call agent.runonserver(NoteID)

Delete Maindoc ' remove reference to reload from server

Set maindoc = session.currentdatabase.GetDocumentByID(NoteID)

Call ws.currentdocument.fieldsettext("JobNameOS", "")
Call ws.EditDocument(True, maindoc)

A user with Editor access or above runs the code and the resulting document has all of the Workflow 'OS' fields set correctly (expandedparticipantauthorsOS, etc.)and opens in edit mode as designed.

A user with Author access runs the code and the resulting document has the info they entered with no workflow 'OS' fields and the document is in read only mode.

I am assuming that there is something in the Domino Workflow API that requires higher access when running the script locally using the runonserver method. Remote users have local replicas of the process, org, design, audit, and archive databases.

Anyone have any ideas?






Local call to OSExecuteNotesAction (Dustin Stamper 12.Nov.03)
. . RE: Local call to OSExecuteNotesAct... (Luis A Guirigay... 20.Nov.03)
. . RE: Local call to OSExecuteNotesAct... (Luis A Guirigay... 20.Nov.03)
. . . . RE: Local call to OSExecuteNotesAct... (Dustin Stamper 21.Nov.03)





  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