What is the best way to use graphical buttons with mouseovers that execute @Functions or LotusScript in a Web-based Domino app? I've seen a few articles about it but they all seem to fall short.
Example of the anchor link (usually a computed for display field) that is used when a user actually clicks on the button:
"[<a href="http://www.yourserver.com/your_db.nsf/your_agent?OpenAgent&" + @DocumentUniqueID + ">]" Example Lotus Script segment: 'get the value of the CGI variable "Query_String" LineOfData$ = Doc.Query_String(0) 'The Query_String CGI looks something like: OpenAgent&3e320a07504ce76785256b61006ae53a 'the next line cuts off the 'OpenAgent&' so LineOfData$ then contains only the Document Unique ID LineOfData$=Mid$(LineOfData$,11,Len(LineOfData$)) 'Then get the document Set Doc = db.GetDocumentbyunid(LineOfData$)
You now have the document and can display or modify any field, send mail etc.
If you need to just process some information and want the user to return to a view or form use the line below in the last line of your script:Print |<meta http-equiv="refresh" Content="0;url=https://www.yourserver.com/your_db.nsf/your_view?OpenView&ExpandView">|
As always there are other ways to make this work. I usually rely on the above method because of the flexibility it affords.
Dig Deeper on Lotus Notes Domino Administration Tools
Here is a real timesaver and improved usability for the user - only one server hit and no time lost.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.