Home > Ask the Domino Experts > ARCHIVE: LotusScript and Web Development Questions & Answers > Using @Unique
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Using @Unique

Dave Hatter EXPERT RESPONSE FROM: Dave Hatter

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 14 May 2002
I am fairly new in Domino design and I'm trying to create a routing database. I have read in the help file to use @unique with @mailsend, but cant figure out the details. Do you have an example I could refer to?

>
I'm not sure why you'd need to use the @Unique function with @MailSend. @Unique has two basic uses, with no parameters, it returns an 11 character alpha-numeric value such as DHAR-123456. When supplied a parameter, normally a list of values, it returns a unique list, much like the DISTINCT parameter of the SELECT statement in SQL. The following example illustrates using @Unique.

<CODE>
List:= "John Galt":"Hank Rearden":"Dagny Taggart":"Winston Smith":"Guy Montag":"John Galt";
UniqueList:=@Unique(List);
</CODE>
  The result of this code would be: "John Galt":"Hank Rearden":"Dagny Taggart":"Winston Smith":"Guy Montag"

As you most likely know, the @MailSend function is used to send a mail message. If has two signatures: 

@MailSend
and
@MailSend(sendTo ; copyTo ; blindCopyTo ; subject ; remark ; bodyFields ; [flags])

With no parameters, you must have a field in the current document named SendTo and if should contain the list of recipients that should get the mail. If the document contains a SendTo field with a valid recipient list, the document is mailed to them.

When the second signature is used, you must, as a minimum, supply one of one or more recipients in the SendTo parameter. The other parameters are optional. The current document will be mailed to the recipients named in the SendTo, CopyTo and BlindCopyTo parameters.

The following example would send the current document via e-mail to a list of users:

<CODE>
Recipients:= "John Galt":"Hank Rearden":"Dagny Taggart":"Winston Smith":"Guy Montag";
@MailSend(Recipients;"";"";"Automated Mail Process: A new document has been submittted");
There is no reason why you have to use the two together? Hope that helps


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ARCHIVE: LotusScript and Web Development
"Field or view column exceeds 32 Kb" errors from the @DBLookup formulas
Agent to open an Excel file and pass the URL on for a Web query?
WebQueryOpen/Save agent problem
Using the function @DialogBox in a Web application
Code for validation on a field
Displaying info. in the order it appeared in the view
Display from my Web page an an online link using Excel
Creating a dynamic menu
Code used for the HTML head content section
Using VB script on a Web server and submitting online forms to a Lotus database

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts