Search DominoPower's 11,443 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.
Extending the automated signature generator (continued)

Lastly, you need to add a line of code to each of the Render clicks on the SignatureForm; one is the Format the Text action, and the other is the Render HTML button. Add a line into the case statement that looks like this:

Case "STRAPLINE": text = Mid(text,1,i-1) & doc.Strapline(0) & Mid(text,j+2)

You need to change the literal at the start of the statement to the name of the placholder, and the doc.xxx(0) is the name of the data field on SignatureForm.,

You might also want to add fields to the site location documents. If you do, you will need to add them to the Location form, and then add fields to match to SignatureForm. Then you alter the "Click to get your Site Details" code, which looks like this:

dbs := @Subset(@DbName;1);
dbf := @Subset(@DbName;-1);
sitename := @PickList([Custom]:[Single];@DbName;"LOCS";"Select Site";
"Which set of address details do you want to use?";1);
FIELD http:=@DbLookup("";dbs:dbf;"LOCS"; sitename;"Logo1Link");
FIELD http_image:=@DbLookup("";@DbName;"LOCS"; sitename; "Logo1URL");
FIELD http_image_alt:=@DbLookup("";@DbName;"LOCS"; sitename; "Logo1Alt");
FIELD http_1:=@DbLookup("";@DbName;"LOCS"; sitename; "Logo2Link");
FIELD http_image_1:=@DbLookup("";@DbName;"LOCS"; sitename; "Logo2URL");
FIELD http_image_alt_1:=@DbLookup("";@DbName;"LOCS"; sitename; "Logo2Alt");
FIELD Phone:=@DbLookup("";@DbName;"LOCS"; sitename; "SitePhone");
FIELD Fax:=@DbLookup("";@DbName;"LOCS"; sitename; "SiteFax");
FIELD Address:=@DbLookup("";@DbName;"LOCS"; sitename; "SiteAddress");
FIELD Street:=@DbLookup("";@DbName;"LOCS"; sitename; "SiteStreet");
FIELD Country:=@DbLookup("";@DbName;"LOCS"; sitename; "SiteCountry");
FIELD City:=@DbLookup("";@DbName;"LOCS"; sitename; "SiteCity");
FIELD Zip:=@DbLookup("";@DbName;"LOCS"; sitename; "SitePostCode");
FIELD Company:= @DbLookup("";@DbName;"LOCS"; sitename; "Company");
@True

You add a new FIELD row to copy the data from your template to the SignatureForm document. It's all pretty straightforward.

And there we have it. A simple application that enables your end-users to create their own email signature blocks without a great deal of effort, and which enable you to help them by creating samples in templates, and also to provide site and other details for them.

Product availability and resources
To read "Building an automated signature generator application," visit http://www.dominopower.com/issues/issue200510/00001654001.html.

To read "Adding templates to the automated signature generator," visit http://www.dominopower.com/issues/issue200510/00001655001.html.

To read "Getting inside the code of the automated signature generator," visit http://www.dominopower.com/issues/issue200510/00001656001.html.

To download the signature generator application, visit http://zipserver.zatz.com/dp20051005-html-signatures.zip.


« Previous  ·  1  ·  2
Other articles you might like
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   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
Syncing Notes with Android phones
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- 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