Skip to main content
FORUM PLAN UPDATE: Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



Sign in to participate PreviousPrevious NextNext

fatsoua fatsoua 23.Nov.16 06:06 AM a Web browser
Domino Designer All Releases All Platforms

I have a Web form with some fields on it and an $$Return field. On the submit button I am validating the fields with formula language and upon success, I would like to run an agent and if that agent runs successfully to save and close the form by opening a new URL/page ($$Return value). I have tried this:
@If(newPetition_address1 = Null; @SetField("Error_address1"; "Enter address"); @Success);
@Command([RunAgent]; "(crmd)");
Only the last 2 commands execute. So I also tried this: @PostedCommand([FileSave]);
@If(newPetition_address1 = Null; @SetField("Error_address1"; "Enter address"); @Success) and run the agent from WebQuerySave. Where the result is the agent runs first and then the rest. If I include the @PostedCommand([FileCloseWindow]); as well then again only the FileSave and FileCloseWindow commands execute.

What do I need to do in order for the:
1/ field validations to execute first
2/ run the agent
3/ save
4/ close-open URL

Whats the @commands order of execution? I realise that RunAgent executes immediately, @Postedcommand executed last!

You help will be much appreciated.

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
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


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


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
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
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite