Search DominoPower's 11,323 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
LOTUSSCRIPT AGENTS
LotusScript agents and the Web
By Chris Stoner

LotusScript Agents are powerful tools that can be used in a variety of ways. I often use them to move documents through an Approval Cycle by having the Approver click on a button to either Approve or Deny the document. This works well in Lotus Notes, but how do you get the same functionality over the Web?

There are a number of ways to accomplish this task. We could simply have the Approver set the document to edit mode and select Approve or Deny from a listbox, but that's not intuitive. It would be nice to be able to get the same functionality over the Web as you do in Lotus Notes without changing the user interface or the flow of the document.

Fortunately, there is a way, with LotusScript Agents.

A little background
My example will be simple. I have an Expense Report document that I'd like Approved. I create and submit the Expense Report, and my manager is prompted to Approve or Deny this document. In Lotus Notes, he'd select the Approve button to Approve the Expense Report, and Deny to Deny it. We want the same functionality over the Web. We'll do this by calling a LotusScript Agent over the Web and passing it a few parameters. Figure A is what my manager will see when he opens the document.

FIGURE A


This Expense Report is what my manager will see when he opens my document. Roll over picture for a larger image.

When my manager clicks on the Approve button, the Expense Report will be marked Approved, and my manager's name and the date will be saved into the appropriate fields.

But how do we get my manager's name and a handle to the document? The LotusScript Agent will need to know the document's unique ID in order to find the correct document to mark, and we should mark the document with the Approver's name. To get these two arguments, we'll pass them to our LotusScript agent as parameters. The LotusScript agent will parse the URL that's passed to it for the two parameters that it needs to find the correct Expense Report and mark this document Approved.

How it works
First, let's code the Approve button's URL. In R5, this would look nice as an Action button if you use the Java Applet for the Action bar. However, this button will look cleaner in R4.6x as a graphic. It can, however, be done either way. What I've done is create a graphic in PaintShopPro, as shown in Figure B.

FIGURE B

This is the Approve button graphic I created in PaintShopPro.

[We are not fans of Java applets. We have found that many browsers don't react well to different forms of Java. So if you're able to create a standard .GIF or JPEG graphic, we recommend avoiding the Java applets and application bar. --DG]


1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
Recommended Maintenance - Lotus Notes Traveler
Here are the slides and other materials from our Lotusphere session
Microsoft OCS awareness in Lotus Connections and Websphere Portal?
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login