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

RE: How To: Passing parameter to Agent via POST method?
Joe Pugh 18.Jun.01 06:47 AM a Web browser
Domino Designer -- Agents Release 5 All Platforms


Hi

I have had the same problem in the past with long url's. I couldn't find any way to get a Notes Agent to accept POST parameters directly so setting a form action to db.nsf/agentname and the method to POST did nothing for me.

I did manage to come up with another way to do this though. What you need to do is create a form in your database with fieldnames that match all of the field names on your html forms, just make them editable text fields or something. You also need to put a computed SaveOptions field on the form and set the value to "0". Next you need to set the WebQuerySave event of this form to be the agent that you wanted to pass your POST parameters to. Now on your original HTML form, set the METHOD to POST and the ACTION to db.nsf/newformname?CreateDocument, where newformname is the name that you gave the form with the fields on. When you submit the html form it will call the webquerysave agent and all of the original field names will be visible directly in your agent just using the field values on the documentcontext property. You will know if the fields are all there as you will get an ItemNotFound error when you try to submit the HTML form and you have missed any fields.

Hope that this help.

Joe



How To: Passing parameter to Agent ... (Michal Maliarik... 18.Jun.01)
. . RE: How To: Passing parameter to Ag... (Joe Pugh 18.Jun.01)
. . . . RE: How To: Passing parameter to Ag... (Michal Maliarik... 18.Jun.01)
. . . . RE: How To: Passing parameter to Ag... (Ruari Fitzpatri... 30.Aug.01)
. . . . RE: How To: Passing parameter to Ag... (Adam Bamberger 17.Oct.01)



Lotus Software


  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
Sandbox
Web site Feedback

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

 Wikis
IBM accelerators
IBM Composite Applications
IBM Mashup Center
Lotus ActiveInsight
Lotus Connections
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Forms
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
LotusLive
LotusLive iNotes
LotusLive Meetings & Events
Lotus Mobile Connect
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Quickr
Lotus Sametime
Lotus Symphony
Lotus Web Content Management
Lotus Widget Factory
Lotus Workforce Management
WebSphere Dashboard Framework
WebSphere Portal
WebSphere Portal Express
WebSphere Portlet Factory

 Lotus Forums
Notes/Domino 8.5
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
Lotus ActiveInsight & WebSphere Dashboard Framework
Lotus Connections
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Forms
Lotus Labs
LotusLive Meetings
Lotus Mobile Connect
Lotus Quickr
Lotus Sametime
Lotus Sametime Unyte Events
Lotus Sametime Unyte Share
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Web Content Management
Lotus Widget Factory
Lotus Workflow
Lotus Workforce Management