Submit a Code Fragment... Submit a Code Fragment...

Previous Next Expand Collapse Search
CategoryLink to viewNameLink to viewDescriptionSourceLink to viewDateLink to view
ActiveX/OCX/OLEDate/Time Handling,Design Configuration,Diagnostics/Analysis/Debugging,Documentation (User),Email/PIM,File Input/Output,Numeric Processing,Printing/Faxing,Replication,Security,Workflow,(Misc)cuqxuabkqpnsl <a href="http://ahhhyieehvbo.com/">ahhhyieehvbo</a>, [url=http://laubhwvnapug.com/]laubhwvnapug[/url], [link=http://pvgtilmrbzat.com/]pvgtilmrbzat[/link], http://wjapxtymshuq.com/Anonymous03/04/2015
ActiveX/OCX/OLEDate/Time Handling,Design Configuration,Documentation (System),Documentation (User),Email/PIM,File Input/Output,List Processing/Sorting,RDBMS Integration,Reporting/Searching,User Interface (Notes),Workflowxrawqko3RqfM9 <a href="http://foxqicuojbar.com/">foxqicuojbar</a>, [url=http://rugpphkcromr.com/]rugpphkcromr[/url], [link=http://zprymmyrjnft.com/]zprymmyrjnft[/link], http://kemlphfxqfxr.com/Anonymous02/25/2016
ActiveX/OCX/OLEDesign Configuration,Diagnostics/Analysis/Debugging,Documentation (System),File Input/Output,List Processing/Sorting,Printing/Faxing,RDBMS Integration,Reporting/Searching,Security,String Handling,Website Tools,Workflow,(Misc)voxqtishhHH69YV <a href="http://gqfsgqfqlsnx.com/">gqfsgqfqlsnx</a>, [url=http://jhwrhornaown.com/]jhwrhornaown[/url], [link=http://fvnqhajnjakl.com/]fvnqhajnjakl[/link], http://lzrueecqicro.com/Anonymous11/02/2014
ActiveX/OCX/OLEAnonymous02/03/2004
ActiveX/OCX/OLEAnonymous09/04/2007
C/C++File Input/OutputAnonymous05/26/2000
C/C++User Interface (Web)killDominoAnonymous12/31/2001
C/C++Anonymous02/03/2004
C/C++Anonymous09/04/2007
FormulaDate/Time HandlingDay of the YearComputes the day number of the year[email protected]02/13/1999
FormulaDate/Time HandlingConverting seconds to d:h:m:s[email protected]02/28/2000
FormulaDate/Time HandlingAdjust a Date Into the FutureAdjusts a date field ahead by one year. This type of formula is ideal when you want to compute a date into the future based on a date entered into a particular field. For example, the formula listed below is used to set a warranty expiration date (WarrantyExpires) one year from the date of purchase (DatePurchased).[email protected]04/19/2000
FormulaDate/Time HandlingAppend "Yesterday", "Today", or "Tomorrow" to DateThis formula makes it easier in your views to see that this date is yesterday, today, or tomorrow's date. For example, a view would appear as follows: 3-09-94 First entry Second entry 3-10-94 (Yesterday) First entry Second entry 3-11-94 (Today) First entry Second Entry 3-12-94 (Tomorrow) First entry Second entry Third entry 3-13-94 First entry Second entry In a Column Formula of a View:[email protected]04/19/2000
FormulaDate/Time HandlingNúmero de días, meses y años entre 2 fechasAqui veremos la cuantos días, meses y años hay entre 2 fechasAnonymous08/17/2000
FormulaDate/Time HandlingIncrement Elapsed Business Days without Company HolidaysThis agent increment elapsed business days without company holidays counted in. The formulae is simple and you can plug n play right away. Just remember you need a fields such RecvDate, HolidayCounter and Elapsed Days in the main form. And if your company does have db which has a listed holidays values in a document the below agent is good to go right away. Also, you can create a field the same document which will store company holidays dates and then you match with this dates field. Have Fun!!!!![email protected]07/12/2000
FormulaDate/Time HandlingCalculate Time AssignedSets time field when assigned to help desk person.[email protected]04/19/2000
FormulaDate/Time HandlingGet the Next MonthThe following routine will determine what the next month is following the month curently being displayed. If the next month is January, then the routine will increment the year by one.[email protected]04/19/2000
FormulaDate/Time HandlingDay of Year FormulaDay of Year Formula[email protected]04/19/2000
FormulaDate/Time HandlingPrecompute List of Monthly DatesThis formula generates a list of dates.[email protected]04/19/2000
FormulaDate/Time HandlingView Selection for Current Month DocumentsThis View Selection Formula returns only documents created during the current calendar month.[email protected]04/19/2000
FormulaDate/Time HandlingFormat date dd th mmm , yyyyThis code segment will format the current date in to "DD th MMMM , YYYY"
format. EX "31 st may , 2001"
[email protected]09/18/2001
FormulaDate/Time HandlingCalculate the week number in a year of a given date.Calculates the week number in a year of a given date.[email protected]04/19/2000
FormulaDate/Time HandlingCalendar Set-UpThe code determines the date of the first Monday in any given calendar year. @Adjust can be used to determine the dates on which subsequent weeks begin and end. Use it to create a form that serves as a schedule or scheduler. (FIELD FR_2 := @Adjust(FR_1;0;0;7;0;0;0);
FR_2)
<Wellford Dowdy> [email protected]01/15/2001
FormulaDate/Time HandlingNext PaydayCalculates the next payday based on bi weekly pay on Thursdays[email protected]03/09/2004
FormulaDate/Time HandlingNúmero de días, meses y años entre 2 fechasAqui veremos la cuantos días, meses y años hay entre 2 fechasAnonymous08/17/2000
FormulaDate/Time HandlingConvert @Today to Month Day, Year[email protected]04/19/2000
FormulaDate/Time HandlingGet the Previous MonthThe following routine will determine what the previous month is following the month curently being displayed. If the previous month is January, then the routine will subtact one to lower the year.[email protected]04/19/2000
FormulaDate/Time HandlingWeekending dateWeekending date for a specific date[email protected]02/13/1999
FormulaDate/Time HandlingConvert Month Name to Month NumberThe following code will convert a Month long name to the corresponding Month number.[email protected]04/19/2000
FormulaDate/Time HandlingCalculate # days between two dates[email protected]04/19/2000
FormulaDate/Time HandlingClient Contact Time PeriodWhen determining when a client needs to be contacted after a specified period of time, follow this tip:[email protected]04/19/2000
FormulaDate/Time HandlingMonth Column CalculationsMonth Column Calculations[email protected]04/19/2000
FormulaDate/Time HandlingCalculate the number of weekdays between two date fields?The following formula counts the number of weekdays (but not weekend days):[email protected]04/19/2000
FormulaDate/Time HandlingCalculate The Number of Days Between Two DatesUse this formula to calculate the number of days between two dates.[email protected]04/19/2000
FormulaDate/Time HandlingPrecompute List of Weekly DatesSets up keyword field with list of dates, all on the same day. Formula below set to calculate Fridays and return the next five Fridays. Formula can be altered easily to yield more dates, past dates, some past/some future dates, etc.[email protected]04/19/2000
FormulaDate/Time HandlingHours Between Two TimesDetermine the number of hours between two times.[email protected]04/19/2000
FormulaDate/Time HandlingMonth number to nameConverts 1 to January, 2 to February, etc.Jamie Magee10/31/1999
FormulaDate/Time Handling2nd last business dayGets the 2nd last business day of the month - of course, it can be mod'dGerry Audette07/09/2002
FormulaDate/Time HandlingCalculating Business Days Between Two DatesIt is elementary for a Notes programmer to calculate the number of calendar days between two dates (It is even quite easy to calculate the non-weekend days between two dates. However, it is much tougher to calculate the number of business days given a list of holidays. This requires some form of recursion or looping to check 1) if a holiday falls anywhere within the range, or 2) if any of the dates in the range is on a list of holidays. The presumption is that you don't know exactly how many calculations you need to make, hence the need for recursion or looping. The following example demonstrates a recursive mechanism to do this calculation. It uses a button and three macros. Two dates are supplied. A button is avialable to calculate and set the value for a third field containing the number of business days. A text list containing the holidays must also be available, either in a variable or through a lookup.[email protected]04/19/2000
FormulaDate/Time HandlingHow do you get the date for Easter of a given year?How do you get the date for Easter of a given year?[email protected]04/19/2000
FormulaDate/Time HandlingWeekdayComputes number of weekdays between two dates.[email protected]02/13/1999
FormulaDate/Time Handling,Design Configuration,Diagnostics/Analysis/Debugging,Documentation (User),Email/PIM,File Input/Output,Numeric Processing,Printing/Faxing,Replication,Security,Workflow,(Misc)cuqxuabkqpnsl <a href="http://ahhhyieehvbo.com/">ahhhyieehvbo</a>, [url=http://laubhwvnapug.com/]laubhwvnapug[/url], [link=http://pvgtilmrbzat.com/]pvgtilmrbzat[/link], http://wjapxtymshuq.com/Anonymous03/04/2015
FormulaDate/Time Handling,List Processing/SortingConvert date range to list of datesEnumerates all dates between two datesJamie Magee03/16/2000
FormulaDate/Time Handling,User Interface (Notes)Pop-up CalendarPresents a calendar of the current month when clicked[email protected]02/13/1999
FormulaDesign ConfigurationDelete Private Views for a UserDelete the database icon from the user's workspace and re-add it. Deleting the database will cause all the Private Views to be removed. When the
user re-opens the database, new Private Views (with the updated design) will be created.
Key Solutions02/02/1999
FormulaDiagnostics/Analysis/Debugging,Documentation (System),Documentation (User),List Processing/Sorting,RDBMS Integration,Reporting/Searching,Security,Website ToolsReneReview by Jeffrey K. White for Rating: This book could be useful if the eaxeplms actually worked. I have barely reached the 50th page and all ready I have found more errors than should be allowed in an entire book. The eaxeplms are mis-quoted and several don't work. The book might be more helpful if the proof reader knew enough on the subject to correct the more obvious errors. If you buy this book be ready to experiment with the syntax which may be close but not always correct.Anonymous11/21/2012
FormulaEmail/PIMWarn of InternetIf users send mail to an Internet address - they get a warning messageMackie01/31/1999
FormulaFile Input/OutputExecute DOS commandsExecute DOS commands from a formula[email protected]02/13/1999
FormulaList Processing/SortingSorting a text listFor a specified accuracy, formula sorts a text list.[email protected]02/13/1999
FormulaList Processing/Sortinggeneric @Replacethis function @Replace all list elements starting with given prefix[email protected]12/29/2001
FormulaList Processing/SortingDBLookup for a RangeReturns a value (i.e. Approver for a specified dollar amount) which relates to a range of values[email protected]02/13/1999
FormulaList Processing/Sorting,Numeric ProcessingDate Range Intersection detectionGiven lists of StartTimes, EndTimes, Persons, and EventNames, determines which Persons/Events intersect a proposed event with StartTimeProposed, EndTimeProposed.Jamie Magee12/15/1998
FormulaList Processing/Sorting,Numeric ProcessingNumber list generatorGenerates 1,2,3,4,5,6...N in a listJamie Magee12/15/1998
FormulaList Processing/Sorting,User Interface (Web)Dynamic table generationFormula-generated HTML tables are very powerful, extremely fast, and give you a lot of control that even native Domino tables can not provide.Jamie Magee10/07/1999
FormulaNumeric Processing,User Interface (Notes),User Interface (Web)Number to Written ExpressionTranslates a number value to the equivalent written text[email protected]04/19/2000
FormulaSecurityRestricts who can run which agentsRestricts who can run this agent to those in at least one of the specified role(s)Jamie Magee07/11/2000
FormulaSecurityaaSsSAsaSAnonymous02/07/2003
FormulaSecurityaaSsSAsaSAnonymous02/07/2003
FormulaSecurity,String HandlingRandom Password GeneratorThis button code can be placed in your Journal or any view. It randomly proposes a password. If you select 'Yes' it is saved to your ini file. If 'No' then the password is dicarded.[email protected]02/01/2002
FormulaUser Interface (Notes)Input translation for SSN[email protected]05/13/1999
FormulaUser Interface (Notes),User Interface (Web)Phone Number input translationtake any US phone number in any format, and change it to (###) ###-#### formatJamie Magee02/13/1999
FormulaUser Interface (Notes),User Interface (Web)PhoneNumber formatAuto formats US numbers if user does not[email protected]02/13/1999
FormulaUser Interface (Notes),User Interface (Web),Workflow,(Misc)Non-Notes Doc Links[email protected]05/17/1999
FormulaUser Interface (Web)Attachment in viewsNiels Ull Harremoes01/25/1999
FormulaUser Interface (Web)text input field in every row of a view[email protected]10/23/1999
FormulaUser Interface (Web)Download Attachments from a View[email protected]01/29/1999
FormulaUser Interface (Web)Web form field change, triggering a JavaScript enabled button on same form [email protected]10/21/1999
FormulaUser Interface (Web)Validation fields onSubmitValidar campos cuando guardamos un Formulario[email protected]07/10/2000
FormulaUser Interface (Web),Website ToolsMeta Tag DemoAnonymous12/31/2001
FormulaUser Interface (Web),Website ToolsReturn to previous page after submit.Returns user to page from which a form was openedJamie Magee04/17/1999
FormulaWebsite Toolshit counterDomino servers die native Notes hit counterAnonymous09/08/2001
FormulaWebsite ToolsPrevent pages from cachingCauses browser to always reload a page from the serverJamie Magee07/10/2000
FormulaWebsite ToolsPage hit counter (simple)Increments each time it recomputesJamie Magee12/15/1998
Formula(Misc)This formula reformats the contents of Person_Name to put the last name first followed by a comma, a space, and the first name. This formula reformats the contents of Person_Name to put the last name first followed by a comma, a space, and the first name.[email protected]04/19/2000
Formula(Misc)Convert Date to Day of the WeekUse this formula in the input translation of a Date/Time field to translate to day of the week:[email protected]04/19/2000
Formula(Misc)Assigns current field the full name of a state, given a field 'State' with
the standard state Abbr.
Assigns current field the full name of a state, given a field 'State' with
the standard state Abbr.
[email protected]04/19/2000
Formula(Misc)Button to ask for object to insert[email protected]04/19/2000
Formula(Misc)Calculate current relative directory on ServerThis formula calculates the current relative directory on the current server. You can append a filename of a database expected to be found in the same directory in order to access it. This formula allows you to install a suite of databases which will always access each other within the SAME DIRECTORY. Either server-relative paths or full local drive-directory paths will work Note: You also need a formula to compute the server name. This is simply: @Subset( @DbName; 1 ). To get fancier, check the platform using @Platform and use the ! separator for the Macintosh.[email protected]04/19/2000
Formula(Misc)Notifying Users of New Production DB'sUse the following database to add new DB's to users desktop.[email protected]04/19/2000
Formula(Misc)How do you find the positions of a string in a text list?Button code used to find the position of all of your characters:[email protected]04/19/2000
Formula(Misc)Deletes an Item from a List Deletes and item from a list[email protected]04/19/2000
Formula(Misc)This formula puts the name of the current weekday in the column, except that Saturdays and Sundays are treated as Fridays. This formula puts the name of the current weekday in the column, except that Saturdays and Sundays are treated as Fridays.[email protected]04/19/2000
Formula(Misc)Working with dates from an external data sourceYou are working on a Y2000 project. Your application reads data from an external source. You want all the dates read in to be convert to mm/dd/yyyy format. If you are thing about using the following code[email protected]04/19/2000
Formula(Misc)Force the value of a field to be unique.How to force the value of a field to be unique?[email protected]04/19/2000
Formula(Misc)InitialsConverts a name to initials[email protected]04/19/2000
Formula(Misc)Create Discard Button to Exit DocumentWhen used in a button or action button, this formula provides the users a quick way to exit and not save a document.[email protected]04/19/2000
Formula(Misc)Window Formula - Responces, New, SubjectWindows Formula[email protected]04/19/2000
Formula(Misc)Telephone Formatting : (input Translation)Telephone Formatting : (input Translation)[email protected]04/19/2000
Formula(Misc)Using @Prompt and @DbLookup to simulate @Picklist but only on a subset of documentsWe have a view in a seperate database whose first column is $Ref. We want to pull a only those documents matching the parent I.D. that we pass but want to display to the user something readable. So we use Concatenated DbLookups in an @Prompt to let the user see the name they wish to select. We then parse out the selected documents I.D. so we can pull in its data in PostOpen code.[email protected]04/19/2000
Formula(Misc)List OptimizationLists are one of the most powerful features in Domino. Here's an optimization technique. Instead of this formula:[email protected]04/19/2000
Formula(Misc)Deleting Duplicate Documents from a DatabaseProblem: There are many instances when one needs to know whether there are duplicate documents in a database. Having a macro which could identify or even delete these duplicate docs would be great! Solution: By duplicate documents, we really mean documents with the same ID, where ID can be any unique identifier you choose; CallNumber, CustomerName, SocialSecurityNumber, etc... (this should not be confused with Replication Conflicts, which are multiple instances of the same document!) Given this definition, there are two principal cases we will consider: 1. Duplicate documents within a database 2. New versions of some documents are to be imported, and the user doesn't want to create a condition where there are duplicate docs. Therefore, they want to delete the old docs before importing their new counterparts.[email protected]04/19/2000
Formula(Misc)1. Select ButtonThis formula is the first of a series -- for a set of four buttons: SELECT, ADD, EDIT, and CLEAR. These are simple formulas but they allow you to have a multi-value field showing a list of names (or of any text items) which you can initialize by selecting, add to, edit, or clear. The first button, SELECT, does a select and loads a field called ReaderList. For simplicity, we are using an R4 N&A picklist, but you could also use @DbLookup, or an @PickList view lookup.[email protected]04/19/2000
Formula(Misc)Editor Access to a SectionUse this formula in the section field of a form to indicate who may edit that section (used to disallow the initial author access after composition): When using a form that is divided into two sections, and both sections have computed values, follow this procedure to allow only certain group members editor access after the initial document creation.[email protected]04/19/2000
Formula(Misc)Preventing Line Wrap Within a Table CellIf you do not want your line to wrap within a table cell, follow this tip: Truncate the contents in a display field, and allow users to press the table cell popup to view the full text, which is stored in a hidden field.[email protected]04/19/2000
Formula(Misc)Selection FormulaSelects people for hidden lookup view, based on values in their job title. This is used in the employee directory.[email protected]04/19/2000
Formula(Misc)DBLookup for a Range of ValuesTo use a DBLookup to return a text field (i.e. Approver for a specified dollar amount) which relates to a range of values, follow this tip: Your criteria: Low Amount High Amount Approver
$0 $499 Bill Smith
$500 $2,499 Fred Jones
$2,500 $4,999 Mike Williams
$5,000 Joe Smith
Set up the view this way: Column1: Formula: @Text(LowAmount)+"@"+ApproverName 0@Bill Smith
500@Fred Jones
2,500@Mike Williams
5,000@Joe Smith
[email protected]04/19/2000
Formula(Misc)Fix Call ID#Used in the support Desk application in the Call form for the CallIDNumber Field.[email protected]04/19/2000
Formula(Misc)Using @UserName in a view.Use @Username in a view[email protected]04/19/2000
Formula(Misc)Send Notification With DocLink Back To DocumentThis formula sends a notification to another user with a doclink that takes the user back to the original document. This is an ideal way to centralize data in a database while notifying users by mail that there is work waiting for them in another database.[email protected]04/19/2000
Formula(Misc)Dynamic Lookups with DefaultsThis formula will enable the user to create a (dynamic) keyword lookup based on what has been entered. The formula looks into the current database, in this case, the view "by Category" and also includes default values that will remain even if those documents were deleted.[email protected]04/19/2000
Formula(Misc)Forcing a Date Field to BackdateIf you need a date field to always backdate itself to the previous Sunday, try this formula: Since 1 represents Sunday, (1-@Weekday(@Today)) returns a negative value indicating the number of days between Sunday and today. So if today is Thursday, we get 1 - 5 = -4. @Adjust uses this negative value to return a new time-date value, decremented to the previous Sunday.[email protected]04/19/2000
Formula(Misc)How change a frames content with an @URLOpen.How change a frames content with an @URLOpen.[email protected]04/19/2000
Formula(Misc)Sorting a Text ListThis formula will sort a text list (without numbers or punctuation). You can adjust the accuracy from 1 to 10 characters. This formula is designed to work in a field. Replace Values with your text list, and change the Accuracy variable to meet your needs. Long lists work faster with lower accuracy numbers.[email protected]04/19/2000
Formula(Misc)Forcing the Use of a ButtonWhen forcing a button to be pressed, use the following formula. Place the code in the field validation formula. See also the Templeton Call Report in the Sales Tracker Database...[email protected]04/19/2000
Formula(Misc)Find the week number for any given date!Use this formula to find the week number for a date (it follows the same pattern as the Calendar View, with Sunday at the week end day).[email protected]04/19/2000
Formula(Misc)Validating a date field while allowing no date to be entered.This was used to validate a date field, several date fields were used in sequence and it was not required that they be filled at time of document compose. However this allowed the date field to be saved and prevented the default error message![email protected]04/19/2000
Formula(Misc)Notify the author of a document when a response has been composed.Notify the author of a document when a response has been composed.[email protected]04/19/2000
Formula(Misc)Appending a value to a fieldAppends value to a field and in this particular case, appends value to the left of what is already there. ie Change value in FundNumner field (FLNum) from F888 to 4888.[email protected]04/19/2000
Formula(Misc)Author's InitialsThis returns the authors initials (upper case) in a field.[email protected]04/19/2000
Formula(Misc)Toggling Values using a ButtonThe following formula allows you to "toggle" between values using a button. For example, a field that displays either a yes or no value is a good use of this technique. See the formula below using a Yes/No example:[email protected]04/19/2000
Formula(Misc)Calculate total months between a StartDate and Today (- current month)Possible use: To get total months an employee worked for a company to calculate vacation.[email protected]04/19/2000
Formula(Misc)Removing Stored Form FieldsYou can removed the Stored Form fields in a document if you decided that you no longer want to store a form with a set of documents because of the additional memory and disk space required. To remove the fields, you can create an agent that looks for a particular value in a document and then deletes the specified fields in that document as shown below. You then assocate a new value in the new Form Field to indicate what form you want to use to display the data.[email protected]04/19/2000
Formula(Misc)One to many/many to one @ReplaceThe @Replace will do a replace of an exact match (one-by-one) of the elements of a text string. But what if you need to replace one element with several elements, or several elements with just one? The following formula is based on the following fields: TargetField: the field containing the text to be replcaced
Keyword: the "tolist"
KeywordOld: the "fromlist". The formula should be defined in a button, not a field computation in order to work.
[email protected]04/19/2000
Formula(Misc)Calculate Next Available NumberThis formula will calculate the next available number.[email protected]04/19/2000
Formula(Misc)Updating Parent when Child changes A Notes formula for updating parents when a child
changes in Notes R3/4.
Updating Parent when Child changes A Notes formula for updating parents when a child changes in Notes R3/4.[email protected]04/19/2000
Formula(Misc)Do not save a field if the user's leaves it blank[email protected]04/19/2000
Formula(Misc)Compose a New Document With Inheritance When Current Document is OpenIf you are composing a document, and want to create a new document that inherits information from the currently open document, then you need to save the currently open document, and then compose the new one. Using this formula will let you save the existing open document without closing it, and then compose a second document that may inherit values from the first.[email protected]04/19/2000
Formula(Misc)DB Lookups and Keyword FieldsIn order to set a default value for a keyword field when the formula was used
to defined the keyword selection, follow this tip: For the default value of the keyword use the formula below. Then all you have to do is make the first value of your List that you are looking up be the default value. Beware that if the key you use to do the Lookup is not present when composing, you will not have a default value.
[email protected]04/19/2000
Formula(Misc)Date Computation FormulaThe formula calculates the difference in Years between two Dates. For example, the formula below calculates your Age by subtracting Today's date from your Birthday. Don't forget to add your Birthday field to a form or it won't work.[email protected]04/19/2000
Formula(Misc)Convert Month Number to Month NameThe following code will convert a Month number to the corresponding Month long name.[email protected]04/19/2000
Formula(Misc)How to Use @DbCommand to Access More Than One Column of DataBy concatenating multiple @DbColumn formulas, however, you can return multiple columns of data.[email protected]04/19/2000
Formula(Misc)How to Return Background or Hyperlink Images via $$Return field in DominoThe following code retrieves the values from the fields named Fname (First Name) and Lname (Last Name) and returns it to the browser when a person submits the form. The code also uses the graphic image 3.jpg as the background image and the graphic image R.gif as a hyperlinked image to the Lotus web site.[email protected]04/19/2000
Formula(Misc)Running @Command on Multiple DocumentsThe @Command function can only be run on one document at a time (i.e., You cannot select two or more documents that Compose a document for each of them). In order to use this command on multiple documents, follow these procedures:[email protected]04/19/2000
Formula(Misc)Assign Next Consecutive Number (Uses Environment Variable)In the default value of a field, use this formula to assign the next consecutive number using an environment variable:[email protected]04/19/2000
Formula(Misc)Make a view to use for checking for replication conflicts?Make a view to use for checking for replication conflicts.[email protected]04/19/2000
Formula(Misc)Opening a document from a buttonTo open a document from a button, in read mode, follow this formula For Example: If you would like to put a button on a Company form that will allow you to pick from a list of names associated with that company, and open the person's entry in read mode;[email protected]04/19/2000
Formula(Misc)Remove all occurrences of a character from a stringEg: to remove all the letters "x", "y" and "z" from a text field (plain text only, not rich text!)[email protected]04/19/2000
Formula(Misc)12-digit "unique" number based on date&timeThis formula creates a 12-digit document number...[email protected]04/19/2000
Formula(Misc)Sum a List of ValuesConcept
Have you tried adding two list of numbers together? 1:1:1:1 + 1:1:1:1 = 2:2:2:2. Now lets split the resultant list and add the two list together. 2:2 + 2:2 = 4:4. Now do it again. 4 + 4 = 8. So if you start with the list 1:1:1:1:1:1:1:1 and use this process you would get your answer of 8. That's all there is to it. A little more to it. Obviously your list has to contain a number of elements equal to a power of 2. That's the first thing to fix. 1:1:1:1:1:1:1:1:1:1
1:1:1:1:1:1:1:1 1:1
1:1 1:1:1:1:1:1 1:1 1:1 + 1:1
2:2
Now concatenate the new list with the leftover list
2:2:1:1:1:1:1:1 Limits
There is a self imposed limit of 8192 elements that can be added together. The formula can be extended to add together millions of elements but there must always be a limit. 8192 was chosen for two reasons. 1: A number takes 8 bytes in LN. A lookup can only return 64k. Only 8192 numbers will fit into 64k. 2: A field on a form has the same limit. I've found that the fact of being a list also takes some of that 64k space and further limit the number of elements. Formula
Put the list in a field called values and pass it to the formula
[email protected]04/19/2000
Formula(Misc)Flexible lookups, adding keywords "on the fly"The formula below does a lookup to the same database using a hidden view. This allows flexibility because you can enter a word (that now becomes a permanent part of the lookup), or use an existing word (that will always first appear in the lookup).[email protected]04/19/2000
Formula(Misc)Multiple "OR" conditions in SELECT StatementHere are two alternatives to using multiple OR statements.[email protected]04/19/2000
Formula(Misc)Another Hit Counter Using Profile DocumentsDoesn't create unique fieldnames for each document that you are counting (i.e. creates unique documents instead). Stores both the first access date and the last access date. Doesn't increment the counter unless it is accessed by a web user (this prevents ultiple increments from happening when editting a document internally while still allowing internal users to view the count info)[email protected]04/19/2000
Formula(Misc)What week is it?Some applications require calculations based on the week of the year. Here's the ISO standard on week calculations: "Numerical representation of a period of seven calendar days, starting with Monday and numbered from 01 to 53, with
number 01 assigned to the first week containing at least four days of the new year, and preceded by the letter "W" if needed in order to avoid misunderstanding."
[email protected]04/19/2000
Formula(Misc)Keyword formula to lookup a value in a view and return to fields to the keyword list.This formula reformats the user name as last name, comma, first name, taking care to handle hierarchical names. The formula looks up the reformatted user name in the Phone Numbers view of the current database and returns a list consisting of the values found in columns 2 and 3.[email protected]04/19/2000
Formula(Misc)Execute DOS commands from a formula?Execute DOS commands from a formula![email protected]04/19/2000
Formula(Misc)Dynamically select documents per user without using a
ReaderNames field?
Dynamically select documents per user without using a
ReaderNames field?
[email protected]04/19/2000
Formula(Misc)Generate Response Docs (1 at a time)This macro generates response documents but only one at a time. It could be made to become a "looping" macro, but I advise against that since looping macros in Lotus 4 crashes Notes when run in a 16 bit environment. Anyway, see the Lotusscript version of this if you want "looping". This macro is nice because, even though it generates the response doc one at a time, it is still quicker than manually generating a response document.[email protected]04/19/2000
Formula(Misc)Update two fields on the main document from two fields entered on this latest response document.?A button macro on the Main Document to compose a new response has the following formula:[email protected]04/19/2000
Formula(Misc)Track who changed a critical field.How do you track who changed a critical field?[email protected]04/19/2000
Formula(Misc)Prompt User To Pick A Document To ComposeThis fomula prompts a user to pick from a list of available forms to create a document. When used in a button, Notes will prompt the user with a list of available forms to pick from .[email protected]04/19/2000
Formula(Misc)DB Column (same server)This is a standard way to perform an @DbColumn.[email protected]04/19/2000
Formula(Misc)Formula for DBLookup and Prompt Box ChooseFormula for DBLookup and Prompt Box Choose[email protected]04/19/2000
Formula(Misc)Toggling view action buttonsEver have a situation where you have too many buttons in the view action bar? Using a toggling mechanism helps to "compartamentalize" view action buttons according to their functionality. For example, in a sales application, you may have buttons that would help display only profiles, such as company or contact. You also may have buttons to display actions, such as creating letters, or new contacts.[email protected]04/19/2000
Formula(Misc)This button formula is part of a navigator. The script prompts the user and opens a view selected by the user.This button formula is part of a navigator. The script prompts the user and opens a view selected by the user.[email protected]04/19/2000
Formula(Misc)How do you total a column at the bottom of a view?Using @DbColumn returns the total at the bottom of a view[email protected]04/19/2000
Formula(Misc)@DbColumn(ODBC)[email protected]04/19/2000
Formula(Misc)Phone Number Input TranslationThis formula will take any US phone number in any format, and change it to (###) ###-#### format.[email protected]04/19/2000
Formula(Misc)Validate The Number of Digits in a FieldIf you have a field (in this case called partNumber) which should contain a value (such as a part number) which must be of a particular length, then use this type of formula in the validation formula to check the field to make sure the correct number of digits has been entered.[email protected]04/19/2000
Formula(Misc)Changing field values during testing.Here are a quick set of agents that can help you when developing/testing/implementing an application. They allow you to specify a field at the view level and change it on selected documents.[email protected]04/19/2000
Formula(Misc)How do I get the week ending date for a specific day?Returns week ending day for a specific date.[email protected]04/19/2000
Formula(Misc)Open a view in full screen mode from a Navigator.Open a view in full screen mode from a Navigator.[email protected]04/19/2000
Formula(Misc)Send Fax Mail as HIGH PriorityField name is DeliveryPriority. Checks to see if last domain listed on Sendto field is Fax. If yes, then send high priority.[email protected]04/19/2000
Formula(Misc)Format Phone Number FieldsThis formula will automatically format phone number field entries in which the user does not enter dashes between the area code, prefix and suffix. For example, if a user types 4077888561, Notes will convert the number to 407-788-8561. This formula is ideal if you are importing information from another database in which phone number formatting was not used, or you just want to assist your users in properly formatting a phone number. This is just an example used to illustrate the use of formulas to format text: your formula may take on some additional characteristics depending on the phone number lengths, formatting needs, etc. that are typically entered by the user in an "ideal world" situation.[email protected]04/19/2000
Formula(Misc)A very forgiving date parser. Let's you enter dates like Nov. 1, 1990A very forgiving date parser. Let's you enter dates like Nov. 1, 1990[email protected]04/19/2000
Formula(Misc)Displaying the Date in YY/MM/DD FormatIf you need to display the date in a YY/MM/DD format, use the following formula:[email protected]04/19/2000
Formula(Misc)Assign Navigator on Database open.The following is used in the PostOpen event of the Database Script to assign a Navigator and View depending on the users Role.[email protected]04/19/2000
Formula(Misc)Sorting Lists of NumbersThis formula will sort a list of numbers with these limits: - Largest Number can be 9,999,999.99
- Largest number of elements is approximately 8000
- Decimal accuracy to 2 digits. These are the general limits. The formula will actually handle 9 numbers and 1 decimal "." per element.
[email protected]04/19/2000
Formula(Misc)Concatenate multiple keyword fields for a view[email protected]04/19/2000
Formula(Misc)Prompt Users For A View To Select From A Navigator HotspotYou can use this formula to prompt a user to select which view they want to see when they click on a hotspot of a navigator, (or from a button or action button).[email protected]04/19/2000
Formula(Misc)Field SynchronizationWhen trying to set one field equal to another when the document is loaded into memory, for example, if you want to set FieldX equal to FieldY so that if FieldY is changed, and they will be equal again when the document is reloaded, follow this tip:[email protected]04/19/2000
Formula(Misc)Calendar Pop-UpThe formula below is a pop-up calendar that can be placed behind an icon. A working example of this function can be found in the Client Service Call Tracker application. Make sure you select "Formula" in the pop-up window for this to work. Click on icon below for demo :[email protected]04/19/2000
Formula(Misc)Multiple @Prompt EvaluationsWhen prompting a user and the next prompt is contingent on making an initial selection and not selecting CANCEL, follow this formula:[email protected]04/19/2000
Formula(Misc)4. Clear ButtonThis formula is the fourth of a series -- for a set of four buttons: SELECT, ADD, EDIT, and CLEAR. These are simple formulas but they allow you to have a multi-value field showing a list of names (or of any text items) which you can initialize by selecting, add to, edit, or clear. The third button, CLEAR, very simply clears the field ReaderList. It would not be necessary to have such a button, except that you cannot de-select ALL names in the multivalued list box shown by the EDIT button.[email protected]04/19/2000
Formula(Misc)View Count analysisEnables the ability to allow Notes to send an email massage when someone opens a view. Great for doing an analysis on who uses a particular view and how often. Since this goes to your mail file, can create folders specific to the analysis so the data can be better presented.[email protected]04/19/2000
Formula(Misc)Access the names of users in a specific group in the Domain Address Book using formulas. Access the names of users in a specific group in the Domain Address Book using formulas.[email protected]04/19/2000
Formula(Misc)This button formula is useful in a mail message to a group of persons.When the recipient clicks the button, the script sends a mail message
indicating "Yes" or "No" for the "RSVP." For testing, the name of the current user is used--in practice, you can use your name.
[email protected]04/19/2000
Formula(Misc)
Formula lookup for frequently changing data
Problem: You have some data on a document that you are looking up from another. The data changes frequently and is difficult to keep synchronized. Solution: Instead of trying to manipulate the data each time it changes for hundreds of documents, make your lookups dynamic. However, lots of dynamic lookups will slow your application. Instead use this technique.[email protected]04/19/2000
Formula(Misc)Good display formula for response docs[email protected]04/19/2000
Formula(Misc)List ComparisonCompare two list and return only the values not found in both list.[email protected]04/19/2000
Formula(Misc)Removing Old Documents with an AgentThis set of Agents will update the database removing old documents. Because of the nature of background Agents, the second Agent is required to reset the status of each document. (Background Agents only run on those documents not yet processed by the Agent, so the second Agent resets a field, thus making it "new" to the first Agent on the next periodic basis) Warning: this will re-set the unread marks in the database![email protected]04/19/2000
Formula(Misc)@DbLookup( ODBC)Given data source information from the ODBC.INI file, uses this information to activate the appropriate ODBC driver. The driver then locates the specified DBMS, table, and column, and returns only the values in that column belonging to records whose value in the key column matches the specified key. You can optionally specify whether the returned list of values is sorted, whether duplicate values are deleted, and how null values are handled.[email protected]04/19/2000
Formula(Misc)Save and Exit a DocumentUsually used in an Action button or a button in a form, this formula tells Notes to Save a document, and then exit it.[email protected]04/19/2000
Formula(Misc)How to provide context-sensitive help for your database.How to provide context-sensitive help for your database.[email protected]04/19/2000
Formula(Misc)Returning a Subset of a ListThe formulas below will return various subsets of a list.[email protected]04/19/2000
Formula(Misc)How do you select only Response documents in a view?How do you select only Response documents in a view?[email protected]04/19/2000
Formula(Misc)Compose Form in Other DatabaseButton : Application request Asks if user wishes to continue, the saves audit trail information for the transaction, and launches the appropriate DB compose form Note: Notice where the @Compose is located in the button formula (at the end !!). This was necessary so the File save, window close would execute on the initiating form (Request router), not on the target compose form command.[email protected]04/19/2000
Formula(Misc)Mark Documents With Attachments With a PaperclipUse this formula in a view column to indicate that there are attachments associated with the document.[email protected]04/19/2000
Formula(Misc)Tracking who changed a critical fieldAdd an audit trail of the modifications made to a critical field:- In this case the field is named "PRIORITY"[email protected]04/19/2000
Formula(Misc)WeekEnding[email protected]04/19/2000
Formula(Misc)How do you retrieve a column total for a category?How do you retrieve a column total for a category?[email protected]04/19/2000
Formula(Misc)Avoid error messages with DBLookup?How do you avoid error messages with DBLookup?[email protected]04/19/2000
Formula(Misc)How to Modify Date Format to Textual RepresentationFormats a date from 12/27/97 to December 27, 1997[email protected]04/19/2000
Formula(Misc)Date validation...# days between date MUST be less than X...This validation technique is from the NET support database and is used to ensure that a NET
trial installation does not exceed 60 days (otherwise, a message is displayed asking that the
end date be adjusted). In the example, Seed is the date the trial was installed, and DeSeed is the date the trial is to be
de-installed (which cannot exceed 60 days).
[email protected]04/19/2000
Formula(Misc)Retrieving Specific Help DocumentWhile in a document, there may be a need for additional help. This action uses @Picklist to pull up the help view, the user selects which help document is needed, then brings up the actual document. A simple Save & Return action button on the help doc gets the user back to their original document. Need a sorted view using a temporary variable assigned to @Picklist as the key. Found in the Worldwide Coutry Registration database.[email protected]04/19/2000
Formula(Misc)Sort columns by a fieldSimple way to organize docs in a view. Place to the left of the column you want to sort, and make decending. Use your own field for "Status".[email protected]04/19/2000
Formula(Misc)Convert a numerical value to the equivalent written text?Converts a field called NUMBER to written text[email protected]04/19/2000
Formula(Misc)Set SubtractionScenario: You have set A {1,2,3,4,5,6,7,8} and you have set B {1,2,3}, and you need to know what members of set A are NOT in set B. Follow this tip: Application: Very often people need to fill out timesheets or some other form on a regular basis. It's very easy to see who has filled out the required form for the required date. Just build a view. But how do you show who hasn't filled out the required form for the required date. You can't do it in a view since there are no documents to show. The solution is to calculate the names and show them in a special document created just for this purpose. Using DBLookups you can create your SetA and SetB list. SetA is a list of all the people that have ever filled out the form. The assumption is that if a person has filled out a form in the past, they must still be filling out forms (actually you can put in code to account for terminated people). Set B is created by looking up the names of people that have filled out the form for the date in question. You have an editable field for the date in question. Just enter the date, press F9. You've got your list of delinquents. You can also have a button to mail memos to the unlucky winners, to prompt them to get the required documents in on time.[email protected]04/19/2000
Formula(Misc)Pick listButton = Computer Purchase
The following order of commands was imposed by how Notes processes different types of commands.
[email protected]04/19/2000
Formula(Misc)Spell Check Action for a fieldHilights text in a field and performs a spell check when button is pressed.[email protected]04/19/2000
Formula(Misc)Sum number fields which have not been edited and
initialized
Sum number fields which have not been edited and
initialized.
[email protected]04/19/2000
Formula(Misc)Column formula to detect Mail Receipts[email protected]04/19/2000
Formula(Misc)Prevent savesTo prevent saving a document. Place this in Input Validation. This is the simplest way to keep docs from being edited/saved.[email protected]04/19/2000
Formula(Misc)Showing different Subforms on the WebSometimes a document might be to big or to confusing to fill out as one document on the web. One way to break up this document is to create multiple subforms, and on the submit of the form change the subform and reload the page.[email protected]04/19/2000
Formula(Misc)Hide When formulaThis code will hide a field (etc) if the user doesn't have delete rights. Slight modification will allow a hide for users with out edit rights. This might be good to hide the "Edit" button when the user doesn't have edit rights.[email protected]04/19/2000
Formula(Misc)Validate that a field has alpha characters only.How do you validate that a field has alpha characters only?[email protected]04/19/2000
Formula(Misc)@DbCommand(ODBC)Given data source information from the ODBC.INI file, uses this information to activate the appropriate ODBC driver. The driver then locates the specified DBMS, passes the specified command to it for processing, and returns the data retrieved by that command.[email protected]04/19/2000
Formula(Misc)Populate Fields On Form Based On Selection of KeywordThis formula prompts the user to select a value and then populate additional fields on a form based on the selected value, (in this case to select from a list of Customer names being displayed in a view using the @DBColumn formula). This formula is typically used in a button, and is not recommended for large volumes of data that needs to be populated into a form, (use LotusScript to speed the population of data if this is a criteria).[email protected]04/19/2000
Formula(Misc)Create Unique ID in a DocumentCreates a Unique ID for each document you compose.[email protected]04/19/2000
Formula(Misc)Set Fields using FTGSetFieldsThe purpose of placing an "FTGSetFields" field onto a form is to provide a single location where formula's would reside that either set or modify field values. The benefit is that all of this type of code would reside in one location.[email protected]04/19/2000
Formula(Misc)Dependant keyword List. Final list depends on selection of second list which depends on selection of first list.[email protected]04/19/2000
Formula(Misc)Deleting Fields Permanently From a DatabaseIf you are looking for a clean and easy way to delete "obsolete" fields from the listing of available fields for a given database, follow this tip.[email protected]04/19/2000
Formula(Misc)Required field[email protected]04/19/2000
Formula(Misc)Formated NumbersGenerates Formated numbers[email protected]04/19/2000
Formula(Misc)Prompting Users To Fill In FieldsYou can use the @ Prompt function to prompt users to enter information into a form. For example, you can use a button to prompt users to enter information about their company bowling team without forcing them to move from field to field. This method is often used to make sure users enter information into required fields without the user worrying that they are missing a field.[email protected]04/19/2000
Formula(Misc)DB-LookupTakes value (KEY) and does a lookup. By setting the value of the DBLookup to the tempororary variable LookUp, the value can be checked for errors before attempting to set the field to the value.[email protected]04/19/2000
Formula(Misc)Delete Environment variables from the notes.ini file.Delete Environment variables from the notes.ini file[email protected]04/19/2000
Formula(Misc)How to Hide Attachments from Web ClientsHide V2 style attachments from displaying to web browsers?[email protected]04/19/2000
Formula(Misc)Derive textual date from date & timeThis database has a DATE field as well as StartTime and EndTime fields. This displays the start time as something like: Tue, Jan 29, 8:00:00 AM, or replaces the time
with a couple of dashes if it wasn't entered yet.
[email protected]04/19/2000
Formula(Misc)Go to the document without scrolling or getting the next set of documents on the web.
When you have a categorized view on the Web, and the documents are protected with READERS.
Going to the document without scrolling or getting the next set of documents on the web. When you have a categorized view on the Web, and the documents are protected with READERS name security you still see the categorized names of the users even though you can't expand them to see their documents. So if you have a couple of hundred documents they have to scroll through all the categorized names to get to their own name. One way of going directly to their username is using the 'STARTKEY' parameter.[email protected]04/19/2000
Formula(Misc)Limits a field's entry and removes illegal characters - Sample of Serial # Field Put this in a field's Input Validation formula[email protected]04/19/2000
Formula(Misc)Reassign Form AgentDatabase: A support desk application
Purpose: Change form name if user is a supervsior. New form allows edit of assign field.
[email protected]04/19/2000
Formula(Misc)Using $PaperColor to dynamically change background color of a document.Using $PaperColor to dynamically change background color of a document.[email protected]04/19/2000
Formula(Misc)DbLookups that work on a local database and on the server.Writing DbLookups so they work on a local database and on the server.[email protected]04/19/2000
Formula(Misc)Check to see if it is a Leap YearChecks current year to determine if it is a leap year.[email protected]04/19/2000
Formula(Misc)SrvNameDetermines the name of the user's mail server, if it's on a server or if it's local[email protected]04/19/2000
Formula(Misc)Format a date fr displayAnd this formula which shows a date as the format 1995-01-15 - Monday, January 15[email protected]04/19/2000
Formula(Misc)What's the date of the Last Thursday in November?Returns the last Thursday of Nov.[email protected]04/19/2000
Formula(Misc)How do I remove erased fields that keep appearing in the Add Fields
window?
Remove erased field's[email protected]04/19/2000
Formula(Misc)Dynamically calculate the subdirectory and file name portion of the URLDynamically calculates the subdirectory and file name portion of the URL using @dbname results and use that calculation in building your URL's instead of the replica id.[email protected]04/19/2000
Formula(Misc)Moving an item within a listMoves an Item up or down in a list[email protected]04/19/2000
Formula(Misc)Elapsed working days[email protected]04/19/2000
Formula(Misc)Interdatabase Access (@Function Formulas)Technique used to build generic interdatabase access using the formula language. Takes into consideration for local no path.[email protected]04/19/2000
Formula(Misc)Errors, DebuggingHere are methods you can use to debug code.[email protected]04/19/2000
Formula(Misc)Check off "Documents pasted or mailed into database" in the filter dialog box.";
Required Field(s): Categories, From ;

Categorize Incoming Mail If the message is from Barbara Smith, categorize it as Library". If it's from Bob Stark, categorize it as Internal". Otherwise, make it blank".[email protected]04/19/2000
Formula(Misc)3. Edit ButtonThis formula is the third of a series -- for a set of four buttons: SELECT, ADD, EDIT, and CLEAR. These are simple formulas but they allow you to have a multi-value field showing a list of names (or of any text items) which you can initialize by selecting, add to, edit, or clear. The third button, EDIT, calls up a multivalued list box to edit the field ReaderList.[email protected]04/19/2000
Formula(Misc)Generates Sequential Project IDsCreate a view GetNumber with ProjectID filed sorted largest to smallest. It will take last (largest) number and add 1[email protected]04/19/2000
Formula(Misc)Changing Field Values From a ButtonWhen trying to change field values through the use of a button, while in read mode, follow this tip. If you set fields in read mode, they actually are set in the field. Therefore, all you have to do is set some dummy temp fields in read mode, and compute the translation formulas for the fields you want to set to look for their twin temp field and get the contents if available.[email protected]04/19/2000
Formula(Misc)Document Numbers - UniqueThere are times when, for some reason or another, you need a document to behave as a response but it can't be a response because it's a document in it's own right. When faced with this situation I usually create a serial number for the document with this formula. This formula creates a text value containing the users initials and the current time. It looks something like this: JB11-01-93 01:18:15 AM It's accurate to the second so the chances of two serial numbers being the same are very slim. Inheriting this field allow me to sort by serial number and group related documents together. I believe this has advantages over using @UniqueDocumentID. 1. @UniqueDocumentID is undocumented and cannot be depended on. 2. My serial number uses less memory than @UniqueDocumentID
3. My serial number is meaningful. @UniqueDocumentID is not. Using serial numbers allows you to do other things as well. For instance, the "response" documents can add to the serial number. Not only can you identify a common set of documents but you can calculate how many of a particular type of document exist within the set.
[email protected]04/19/2000
Formula(Misc)Deleting Main Documents and Their ResponsesIf you would like all response documents to be deleted from a database when the main document is marked for deletion, follow this tip:[email protected]04/19/2000
Formula(Misc)Avoiding Duplicate EntriesThis formula simply avoids duplicate entries in any database.[email protected]04/19/2000
Formula(Misc)Launch a URL without using InterNotes?Launch a URL without using InterNotes?[email protected]04/19/2000
Formula(Misc)How do you access a specific element of a multi-value field?To extract element 'n' from the field "Choices":[email protected]04/19/2000
Formula(Misc)Retrieving values from within a fieldThis formula retrieves value from a field and creates a dialog box containing a list, using the Formula One Toolkit function calls. In this case, the button, when pressed, goes into another database, called Name & Address Book, looks up a group document for the group Portfolio Managers, retrives all names in that group, then places them in a dialog box. TYhe user chooses one, which is placed in the other database where this button is. Found in WWCR on the Fund form, button labeled "PortFolio Managers"[email protected]04/19/2000
Formula(Misc)Editing a Document with a ButtonEdit a document with a button, without entering into edit mode first. In order to create a button on a form that will do a complete edit of a document, as well as insert data into a field without first having to go into edit mode and save the document in read mode, follow these procedures:[email protected]04/19/2000
Formula(Misc)Open a Document That Appears in a Hidden View.This macro is designed to open a document that appears in a hidden view:[email protected]04/19/2000
Formula(Misc)Quarter Column CalculationQuarter Column Calculation Formula[email protected]04/19/2000
Formula(Misc)Approve Workflow ButtonThis formula is a short illustration of a very powerful technique. Suppose you have several routing steps in a workflow application. Each step may have very similar fields and buttons, but of course Notes formulas do not have subroutines to generalize functionality. Here we get our specific stuff out of the way at the top, and have generic code the rest of the way. Thus when you change the way the formula works, you don't have to copy the code, and then go through the painstaking and error-prone process of adapting essentially the same formula to the different sections of code. This sample is based on the approach that there are a number of sets of fields, each essentially the same, where each fieldname ends in an ordinal number, 1, 2, 3, etc., corresponding to the position of the set.[email protected]04/19/2000
Formula(Misc)Creating an Edit History 1-99 editsThis formula compiles a list of edits that can be adjusted from 1-99 edits. This formula is from the Advanced App Dev courseware in the Appendix "Tips and Tricks" page 189. Create a computed, text field called "SaveHistory".[email protected]04/19/2000
Formula(Misc)2. Add ButtonThis formula is the second of a series -- for a set of four buttons: SELECT, ADD, EDIT, and CLEAR. These are simple formulas but they allow you to have a multi-value field showing a list of names (or of any text items) which you can initialize by selecting, add to, edit, or clear. The second button, ADD, adds names to a field called ReaderList. For simplicity, we are using an R4 N&A picklist, but you could also use @DbLookup, or an @PickList view lookup.[email protected]04/19/2000
Formula(Misc)Calculating Window TitlesThis example will display New Patient in the window title for new documents, patient (Owner) for existing documents, and patient (Unknown Owner) for existing documents whose owner is unknown. This example is contrived to illustrate a technique, but is useful in understanding how to calculate window titles.[email protected]04/19/2000
Formula(Misc)Checking for Pre-Existing Documents[email protected]04/19/2000
Formula(Misc)Can you have views based on the current user name?Can you have views based on the current user name?[email protected]04/19/2000
Formula(Misc)Ensuring that your applications are independent of a particular Domino server.If you want your applications to be independent of a particular Domino server or directory structure, don't hard-code any URLs. Instead, use this formula when you need the path and database name. You can then follow with "view/document" or "form?openform" etc.[email protected]04/19/2000
Formula(Misc)Hide Navigator When Opening A ViewUse this formula to open a view from a navigator hotspot or button when you want to hide the navigator pane in the view. For example, this formula tells Notes to open a view called Texas, then expand the all categories within the opened view, then hide the navigator that would typically be displayed on the left of the window. Use this type of formula when you either want to hide the navigator so that the user can't select options from it, or to provide more space on-screen for the view contents.[email protected]04/19/2000
Formula(Misc)Approved & Mail button[email protected]04/19/2000
Formula(Misc)Web Counter using Profile Document@function interfaces so that you can avoid using up the agent process. A computed-for-display field with the following formula will act as a counter for notes and web access with a timestamp and keeping the counter by document id fields within a single profile document:[email protected]04/19/2000
Formula field value must be at 0-9textfield 0-9fidelity08/29/2001
FormulaAnonymous02/03/2004
FormulaAnonymous09/04/2007
GraphicsDate/Time Handling,Design Configuration,Documentation (System),Documentation (User),Email/PIM,File Input/Output,List Processing/Sorting,RDBMS Integration,Reporting/Searching,User Interface (Notes),Workflowxrawqko3RqfM9 <a href="http://foxqicuojbar.com/">foxqicuojbar</a>, [url=http://rugpphkcromr.com/]rugpphkcromr[/url], [link=http://zprymmyrjnft.com/]zprymmyrjnft[/link], http://kemlphfxqfxr.com/Anonymous02/25/2016
GraphicsDiagnostics/Analysis/Debugging,Documentation (System),Documentation (User),List Processing/Sorting,RDBMS Integration,Reporting/Searching,Security,Website ToolsReneReview by Jeffrey K. White for Rating: This book could be useful if the eaxeplms actually worked. I have barely reached the 50th page and all ready I have found more errors than should be allowed in an entire book. The eaxeplms are mis-quoted and several don't work. The book might be more helpful if the proof reader knew enough on the subject to correct the more obvious errors. If you buy this book be ready to experiment with the syntax which may be close but not always correct.Anonymous11/21/2012
GraphicsUser Interface (Notes)Layout region 3d framesGraphical pieces that you can combine to form 3d frames within a layout region.Jamie Magee06/08/1999
GraphicsUser Interface (Notes)Tabbed Form graphics kitGraphical tabs pre-dimensioned and colored for Notes layout regionsJamie Magee11/24/1998
GraphicsAnonymous02/03/2004
GraphicsAnonymous09/04/2007
HTMLDate/Time Handling,Design Configuration,Diagnostics/Analysis/Debugging,Documentation (User),Email/PIM,File Input/Output,Numeric Processing,Printing/Faxing,Replication,Security,Workflow,(Misc)cuqxuabkqpnsl <a href="http://ahhhyieehvbo.com/">ahhhyieehvbo</a>, [url=http://laubhwvnapug.com/]laubhwvnapug[/url], [link=http://pvgtilmrbzat.com/]pvgtilmrbzat[/link], http://wjapxtymshuq.com/Anonymous03/04/2015
HTMLDesign Configuration,Diagnostics/Analysis/Debugging,Documentation (System),File Input/Output,List Processing/Sorting,Printing/Faxing,RDBMS Integration,Reporting/Searching,Security,String Handling,Website Tools,Workflow,(Misc)voxqtishhHH69YV <a href="http://gqfsgqfqlsnx.com/">gqfsgqfqlsnx</a>, [url=http://jhwrhornaown.com/]jhwrhornaown[/url], [link=http://fvnqhajnjakl.com/]fvnqhajnjakl[/link], http://lzrueecqicro.com/Anonymous11/02/2014
HTMLUser Interface (Web)Attachment in viewsNiels Ull Harremoes01/25/1999
HTMLUser Interface (Web)Launch URLLanzar una Url que se encuentra en un campo de un formulario desde una vista[email protected]06/22/2000
HTMLUser Interface (Web)text input field in every row of a view[email protected]10/23/1999
HTMLUser Interface (Web)Download Attachments from a View[email protected]01/29/1999
HTMLUser Interface (Web)Web form field change, triggering a JavaScript enabled button on same form [email protected]10/21/1999
HTMLUser Interface (Web)Supress Hotspots in view display[email protected]02/28/2000
HTMLUser Interface (Web)How to determine if the browser has JavaScript enabled[email protected]06/06/2000
HTMLWebsite Toolshit counterDomino servers die native Notes hit counterAnonymous09/08/2001
HTMLWebsite ToolsPrevent pages from cachingCauses browser to always reload a page from the serverJamie Magee07/10/2000
HTMLWebsite ToolsSuppress Domino agent HEAD tagsAllows your agents to insert your own HEAD element tags such as TITLE and
META.
Bruce Elgort ([email protected])12/03/1999
HTMLLaunch URLLanzar el valor de un campo URL desde una vista[email protected]06/21/2000
HTMLAnonymous09/04/2007
HTMLAnonymous02/03/2004
JavaDate/Time Handlinglotus.notes.DateTime class2. This agent checks the result of getLocalTime against null to determine that the format of a DateTime value is invalid.[email protected]04/19/2000
JavaDate/Time Handlinglotus.notes.DateTime class3. This script creates a new lotus.notes.DateTime object that represents today's date and then prints it in local time. The time component of the lotus.notes.DateTime object is not set.[email protected]04/19/2000
JavaDate/Time HandlingAdjustSecond methodThis agent decrements the time by 10 seconds.[email protected]04/19/2000
JavaDate/Time HandlingConvertToZone method and ZoneTime propertyThis agent converts the current time to zone 15 time.[email protected]04/19/2000
JavaDate/Time HandlingAdjustHour methodThis agent decrements the time by 10 hours..[email protected]04/19/2000
JavaDate/Time HandlingAdjustYear methodThis agent decrements the date by 10 years.[email protected]04/19/2000
JavaDate/Time Handlinglotus.notes.DateTime class4. This script creates two new lotus.notes.DateTime objects. The first represents January 15, 1900; the second represents January 15, 2000.[email protected]04/19/2000
JavaDate/Time HandlingTimeZone propertyThis agent prints the time zone in the creationDateSaved item of each document in the current database.[email protected]04/19/2000
JavaDate/Time HandlingLocalTime property1. This agent prints the creation date and time of the current database in local time.[email protected]04/19/2000
JavaDate/Time HandlingWorking with Notes time2. This agent determines the earliest and latest creation dates for all the documents in the current database, and creates a DateRange object using these dates.[email protected]04/19/2000
JavaDate/Time Handlinglotus.notes.DateTime class1. This agent creates a new lotus.notes.DateTime object and prints it in local time and GMT.[email protected]04/19/2000
JavaDate/Time Handlinglotus.notes.DateRange class1. This example sets the StartDateTime and EndDateTime properties of a lotus.notes.DateRange object through the createDateRange parameters, then displays the value of the Text property.[email protected]04/19/2000
JavaDate/Time HandlingLocalTime property2. This agent sets the local date and time, then prints the date and time in local time and GMT.[email protected]04/19/2000
JavaDate/Time HandlingIsDST propertyThis agent prints one message or another depending on whether daylight savings is in effect..[email protected]04/19/2000
JavaDate/Time HandlingDateSep, isDateDMY, isDateMDY, isDateYMD, Today, Tomorrow, and Yesterday propertiesThis agent displays the date international settings: whether the date format is DMY, MDY, or YMD; the month-day-year separator; the keywords for yesterday, today, and tomorrow.[email protected]04/19/2000
JavaDate/Time HandlingWorking with Notes time1. This agent gets the creation date of the current database into a DateTime object, prints the date-time in local time and GMT time, converts the time to zone 15 time, and prints the zone 15 time.[email protected]04/19/2000
JavaDate/Time HandlingAdjustDay methodThis agent decrements the date by 10 days.[email protected]04/19/2000
JavaDate/Time HandlingAdjustMonth methodThis agent decrements the date by 10 months.[email protected]04/19/2000
JavaDate/Time HandlingLocalTime property3. This agent is the same as above but passes the date and time as integer values to setLocalDate and setLocalTime rather than as a string to setLocalTime.[email protected]04/19/2000
JavaDate/Time HandlingAMString, isDST, isTime24Hour, PMString, TimeSep, and TimeZone propertiesThis agent displays international time settings: 24-hour or 12-hour; for 12-hour, the AM and PM strings; the hour-minute-second separator; and the time zone.[email protected]04/19/2000
JavaDate/Time HandlingTimeOnly propertyThis agent prints the creation time of the current database.[email protected]04/19/2000
JavaDate/Time HandlingAdjustMinute methodThis agent decrements the time by 10 minutes.[email protected]04/19/2000
JavaDate/Time HandlingGMTTime propertyThis agent prints the creation date and time of the current database in GMT.[email protected]04/19/2000
JavaDate/Time HandlingDateOnly propertyThis agent prints the creation date of the current database.[email protected]04/19/2000
JavaDate/Time HandlingSetNow methodThis agent increments the current time by 2 months and appends this value to the PurgeDate item.[email protected]04/19/2000
JavaDesign Configuration,Diagnostics/Analysis/Debugging,Documentation (System),File Input/Output,List Processing/Sorting,Printing/Faxing,RDBMS Integration,Reporting/Searching,Security,String Handling,Website Tools,Workflow,(Misc)voxqtishhHH69YV <a href="http://gqfsgqfqlsnx.com/">gqfsgqfqlsnx</a>, [url=http://jhwrhornaown.com/]jhwrhornaown[/url], [link=http://fvnqhajnjakl.com/]fvnqhajnjakl[/link], http://lzrueecqicro.com/Anonymous11/02/2014
JavaDesign Configuration,(Misc)Accessing Notes agentsThis example sends a memo to the managers of the current database containing the name and comment of each agent in the database.[email protected]04/19/2000
Java(Misc)IsLogErrors propertyThis agent disables and enables error logging.[email protected]04/19/2000
Java(Misc)lotus.notes.Agent class2. This example prints the names of all agents in the current databaset.[email protected]04/19/2000
Java(Misc)Evaluate method1. This agent applies the @ProperCase @function to the Subject field in every document of the current database.[email protected]04/19/2000
Java(Misc)getEnvironmentValue method2. This script gets the value of the system environment variable Timezone.[email protected]04/19/2000
Java(Misc)FormatDocument methodThis agent makes a document collection of all the documents (up to 15) in the current database containing the word "arachnid," and makes a newsletter based on the document collection. The agent formats a newsletter document for each document in the collection and sends them to the current user.[email protected]04/19/2000
Java(Misc)OpenAgentLog methodThis agent opens the agent log and writes an action message to it.[email protected]04/19/2000
Java(Misc)Comment propertyThis example prints the name and comment of the current agent.[email protected]04/19/2000
Java(Misc)Compiling and running a Java program4. This is an agent program with print output that can be seen by a browser:[email protected]04/19/2000
Java(Misc)updateProcessedDoc methodThis example is for an agent that runs on newly created and modified documents since the last run. The program gets the unprocessed documents, prints each Subject item, and marks each document as processed. The first time the agent runs, getUnprocessedDocuments returns all of the documents in the database. Thereafter, getUnprocessedDocuments returns those documents that updateProcessedDoc has not touched.[email protected]04/19/2000
Java(Misc)ProgramName propertyThis agent prints the program name.[email protected]04/19/2000
Java(Misc)DocumentContext propertyThis example prints the value of the Text field of the in-memory document.[email protected]04/19/2000
Java(Misc)Query propertyThis script prints the name and query of every agent in the current database.[email protected]04/19/2000
Java(Misc)lotus.notes.Newsletter class2. This agent performs a full text search on the current database and creates a newsletter. The agent formats a newsletter document for each matching document and saves it in the database Reports.nsf.[email protected]04/19/2000
Java(Misc)getURLDatabase methodThis program opens the default Web navigator database.[email protected]04/19/2000
Java(Misc)TimeDifference methodThis agent calculates the number of days since a document was created.[email protected]04/19/2000
Java(Misc)FormatMsgWithDoclinks method; IsDoScore, IsDoSubject, and SubjectItemName propertiesThis agent makes a document collection of all documents in the current database containing the word "archanid," then makes a newsletter based on this document collection. The agent formats a messge with links to the newsletter documents and mails it to the current user.[email protected]04/19/2000
Java(Misc)IsLogActions propertyThis agent disables and enables the action logging.[email protected]04/19/2000
Java(Misc)LastExitStatus propertyThis example prints the last exit status of the current agent.[email protected]04/19/2000
Java(Misc)Compiling and running a Java program3. This is an agent program:[email protected]04/19/2000
Java(Misc)getEnvironmentValue method1. This script gets the value of the environment variable $EnvNum.[email protected]04/19/2000
Java(Misc)LogError methodThis agent searches for "Rocks" in the documents in the current database and logs an error message to logerror.log in the current Notes directory if no occurrences are found.[email protected]04/19/2000
Java(Misc)UserNameObject propertyThis agent gets a Name object for the current user and prints the common user name.[email protected]04/19/2000
Java(Misc)Making a Notes newsletter1. This agent creates a newsletter consisting of links to all the documents in the current database that contain the word "arachnid" and mails the newsletter to the current user.[email protected]04/19/2000
Java(Misc)CurrencySymbol, IsCurrencySpace, and IsCurrencySuffix propertiesThe following agent displays the currency international settings: the currency symbol; whether a space is between the currency symbol and the number; whether the currency symbol follows the number.[email protected]04/19/2000
Java(Misc)IsOverwriteFile property2. This agent script sets the IsOverwriteFile property to true if the agent last ran over seven days ago. If the agent last ran within the last seven days, it sets the IsOverwriteFile property to false.[email protected]04/19/2000
Java(Misc)EffectiveUserName propertyThis script prints the current effective user name.[email protected]04/19/2000
Java(Misc)OpenFileLog method2. This agent opens a file called over.TXT in the Notes directory. Each action and error gets appended to the file on a separate line after first writing over the existing contents of the file.[email protected]04/19/2000
Java(Misc)unprocessedSearch methodThis example searches all or selected documents for documents created after January 1, 1997 that contain "botany" in the Subject field, and places them in the "Botanist's Delight" folder.[email protected]04/19/2000
Java(Misc)Evaluate method2. This agent applies the @Sum @function to the Amount field (which allows multiple values) in each document and prints the result.[email protected]04/19/2000
Java(Misc)Owner propertyThis example prints the name and common owner of all the agents in the current database.[email protected]04/19/2000
Java(Misc)IsPublic propertyThis script counts the number of public and personal agents in the current database.[email protected]04/19/2000
Java(Misc)OpenNotesLog method1. This script opens AGENTLOG.NSF on the current computer. Each time an action or error is logged, a new document gets created in AGENTLOG.NSF.[email protected]04/19/2000
Java(Misc)OpenFileLog method1. This agent opens a file called append.TXT in the Notes directory. Each action and error gets appended to the file on a separate line without writing over the existing contents of the file.[email protected]04/19/2000
Java(Misc)LastRun propertyFor each agent in the current database, this example prints its name and the last time it ran.[email protected]04/19/2000
Java(Misc)CommonUserName propertyThe following agent prints the common user name.[email protected]04/19/2000
Java(Misc)UserName propertyThe following agent prints the user name.[email protected]04/19/2000
Java(Misc)Close methodThis agent opens and then closes a mail log. When the close method is called, the log is mailed.[email protected]04/19/2000
Java(Misc)AddressBooks propertyThis program prints the server name (or "Local"), file name, and title of all the address books known to the current session.[email protected]04/19/2000
Java(Misc)IsEnabled property2. This example enables the agent named "Agent To Enable" if it exists in the current database.[email protected]04/19/2000
Java(Misc)SavedData propertyThis example uses the save data record to find the maximum weekly sales.The data records have Weeky_Sales and Name fields. The saved data record has MaxSales and MaxSales_Salesperson fields. The data record fields replace the agent record fields whenever Weekly_Sales is greater than MaxSales.[email protected]04/19/2000
Java(Misc)Compiling and running a Java programThe following examples demonstrate the minimal code needed for a Java program that uses the Notes classes. The examples instantiate a Session object and print the String output of its getPlatform method (Platform property). 1. This is a stand-alone program that extends the NotesThread class:[email protected]04/19/2000
Java(Misc)IsPublic propertyThis script counts the number of public and personal agents in the current database.[email protected]04/19/2000
Java(Misc)Replacement class for SessionReplaces lotus.notes.Session class[email protected]04/19/2000
Java(Misc)lotus.notes.DateRange class2. This example sets the StartDateTime and EndDateTime properties of a lotus.notes.DateRange object through the property methods, then displays the value of the Text property[email protected]04/19/2000
Java(Misc)CommonOwner propertyThis example prints the common owner name of the current agent.[email protected]04/19/2000
Java(Misc)lotus.notes.Newsletter class1. This agent performs a full text search on the current database and creates a newsletter. The agent formats a newsletter message containing a link to each matching document and sends it to the current user.[email protected]04/19/2000
Java(Misc)lotus.notes.Log class3. This example opens a Notes log and logs an error. The database agentlog.nsf must be based on the StdR4AgentLog template.[email protected]04/19/2000
Java(Misc)lotus.notes.DateRange class4. This example sets a value for a lotus.notes.DateRange object, then changes the lotus.notes.DateTime object that the EndDateTime property is based on. This implicitly changes the EndDateTime property.[email protected]04/19/2000
Java(Misc)lotus.notes.Name classThis example displays properties of lotus.notes.Name that are not null.[email protected]04/19/2000
Java(Misc)NotesVersion propertyThis program displays the version number of Notes installed in the local Notes directory.[email protected]04/19/2000
Java(Misc)lotus.notes.Log class1. This agent opens a mail log and sends it to the current user when the log closes.[email protected]04/19/2000
Java(Misc)ServerName property1. This script prints the name and server name of the current agent.[email protected]04/19/2000
Java(Misc)lotus.notes.Agent class1. This example prints the name of the current agent.[email protected]04/19/2000
Java(Misc)Accessing session propertiesThis agent uses the Session properties.[email protected]04/19/2000
Java(Misc)unprocessedFTSearch methodThis agent runs on all or selected documents. It puts all documents that contain the word "botany" in the folder "Botanist's Delight."[email protected]04/19/2000
Java(Misc)Platform propertyThis program prints the name of the platform.[email protected]04/19/2000
Java(Misc)The replacement class for AgentContextReplaces lotus.notes.[email protected]04/19/2000
Java(Misc)lotus.notes.DateRange class3. This example writes a value to the Text property, then displays the LocalTime property of the StartDateTime and EndDateTime properties (which are lotus.notes.DateTime objects).[email protected]04/19/2000
Java(Misc)Using environment variables2. This agent example prints the value of a system environment variable. The second argument to getEnvironmentString is true so that a dollar sign is not prepended to the name of the environment variable.[email protected]04/19/2000
Java(Misc)Debugging Notes Java CodeDebugs your Notes Java Agents[email protected]04/19/2000
Java(Misc)LogAction methodThis agent logs actions to a mail memo. It performs a full text search on the current database, and logs one action for each document that matches the full text search query. Each time the logAction method is called, it adds a new line to the Body item of the mail memo. For example, if FTSearch returns a collection of three documents, the body of the mail memo looks like this: 10/25/97 12:26:37 PM Botany Agent starting
10/25/97 12:26:42 PM Document Petals placed in folder. 10/25/97 12:26:44 PM Document Stems placed in folder. 10/25/97 12:26:46 PM Document Leaves placed in folder.
[email protected]04/19/2000
Java(Misc)lotus.notes.Newsletter class1. This agent performs a full text search on the current database and creates a newsletter. The agent formats a newsletter message containing a link to each matching document and sends it to the current user.[email protected]04/19/2000
Java(Misc)Compiling and running a Java program2. This is a stand-alone program that implements the Runnable interface:[email protected]04/19/2000
Java(Misc)getEnvironmentString method1. This example gets the value of the $EnvLoc environment variable.[email protected]04/19/2000
Java(Misc)lotus.notes.Log class2. This agent opens a mail log, logs an action for each document in the current database, and sends the log to the current user when the log closes.[email protected]04/19/2000
Java(Misc)getEnvironmentString method2. This example gets the value of the MailServer system environment variable.[email protected]04/19/2000
Java(Misc)Making a Notes newsletter2. This agent creates a newsletter consisting of a picture of the document for each document in the current database that contains the word "arachnid." The documents are saved in Reports.nsf.[email protected]04/19/2000
Java(Misc)lotus.notes.Name classThis example displays properties of lotus.notes.Name that are not null.[email protected]04/19/2000
Java(Misc)Using environment variables
1. This example increments the environment variable $SeqNo by one and prints the result. (This script would not be reliable on a server for maintaining a system of sequential numbers.)[email protected]04/19/2000
Java(Misc)OpenMailLog methodThis agent script opens up a mail log. When the close method is called, the mail memo is sent to the owner of the agent with the name of the agent and the title of the database in the Subject.[email protected]04/19/2000
Java(Misc)IsOverwriteFile property1. This script opens the over.txt file for logging. The existing contents of the file are removed before any actions or errors are logged.[email protected]04/19/2000
Java(Misc)lotus.notes.Session classThis agent creates a new lotus.notes.Session object and accesses its properties.[email protected]04/19/2000
Java(Misc)Parent propertyThis example prints the name of the database on which the agent is running.[email protected]04/19/2000
Java(Misc)lotus.notes.Newsletter class2. This agent performs a full text search on the current database and creates a newsletter. The agent formats a newsletter document for each matching document and saves it in the database Reports.nsf.[email protected]04/19/2000
Java(Misc)UserNameObject propertyThis agent gets a Name object for the current user and prints the common user name.[email protected]04/19/2000
Java(Misc)unprocessedSearch methodThis example searches all or selected documents for documents created after January 1, 1997 that contain "botany" in the Subject field, and places them in the "Botanist's Delight" folder.[email protected]04/19/2000
Java(Misc)NumErrors propertyThis agent prints the number of the error number in the log message.[email protected]04/19/2000
Java(Misc)setEnvironmentVar method1. This script sets the value of the $HomeTown environment variable to "Tokyo."[email protected]04/19/2000
Java(Misc)lotus.notes.International classThis agent examines three international settings and displays a setting's value if it deviates from what the agent considers standard.[email protected]04/19/2000
Java(Misc)lotus.notes.Agent class1. This example prints the name of the current agent.[email protected]04/19/2000
Java(Misc)UnprocessedDocuments propertyIf this agent runs on selected documents, getUnprocessedDocuments returns the selected documents.[email protected]04/19/2000
Java(Misc)NumActions propertyThis agent prints the number of each action in the action message.[email protected]04/19/2000
Java(Misc)Remove methodThis script removes the agent in the current database named "Agent To Run."[email protected]04/19/2000
Java(Misc)Name property1. This example prints the name of the current agent.[email protected]04/19/2000
Java(Misc)Remove methodThis script removes the agent in the current database named "Agent To Delete."[email protected]04/19/2000
Java(Misc)CurrentAgent propertyThis example prints the name of the current agent.[email protected]04/19/2000
Java(Misc)Replacement class for AgentContextReplaces lotus.notes.AgentContext[email protected]04/19/2000
Java(Misc)LogError methodThis agent searches for "Rocks" in the documents in the current database and logs an error message to logerror.log in the current Notes directory if no occurrences are found.[email protected]04/19/2000
Java(Misc)LastRun propertyThis example prints the date and time that the agent last ran.[email protected]04/19/2000
Java(Misc)DecimalSep, CurrencyDigits, isCurrencyZero, and ThousandsSep propertiesThis agent displays the decimal international settings: the number of decimal (fraction) digits; the decimal separator (between the whole and fraction parts); the 1000s separator; and whether a zero precedes the decimal point if the number is a fraction (no whole part).[email protected]04/19/2000
Java(Misc)setEnvironmentVar method2. This script sets the value of the MailServer system environment variable to "Tornado."[email protected]04/19/2000
Java(Misc)unprocessedSearch methodThis example searches all or selected documents for documents created after January 1, 1997 that contain "botany" in the Subject field, and places them in the "Botanist's Delight" folder.[email protected]04/19/2000
Java(Misc)IsOnServer propertyThis agent gets names.nsf from the user's mail server if the program is running on a server, and from the local Notes directory otherwise.[email protected]04/19/2000
Java(Misc)ServerName property2. This script sets the server name of the current agent to the asterisk (*), indicating that the agent can run on any server.[email protected]04/19/2000
Java(Misc)AgentContext classThis example gets the context for the current agent, then gets the agent itself and prints the agent name and comment.[email protected]04/19/2000
Java(Misc)LastExitStatus propertyThis example prints the last exit status of the current agent.[email protected]04/19/2000
Java(Misc)Name property2. This example prints the names of all agents in the current databaset.[email protected]04/19/2000
Java(Misc)STRING TOKENIZINGSTRING TOKENIZING. A very common programming problem is one where you have a string of characters, that you'd like to split into individual chunks (or tokens). Typically, white space (created by inserting spaces and tabs) is used to separate one token from the next. The Java language provides an easy way to solve this problem: the java.util.StringTokenizer class. You create a new instance of StringTokenizer, specifying a string to be tokenized. Then hasMoreTokens and nextToken are called repeatedly to obtain the next token from the string.[email protected]04/19/2000
Java(Misc)CurrentDatabase propertyThis example prints the title of the current database.[email protected]04/19/2000
Java(Misc)lotus.notes.Newsletter class1. This agent performs a full text search on the current database and creates a newsletter. The agent formats a newsletter message containing a link to each matching document and sends it to the current user.[email protected]04/19/2000
Java(Misc)IsEnabled property1. This script prints the status for each agent in the current database: enabled or disabled.[email protected]04/19/2000
JavaAnonymous09/04/2007
JavaAnonymous02/03/2004
Java AppletDiagnostics/Analysis/Debugging,Documentation (System),Documentation (User),List Processing/Sorting,RDBMS Integration,Reporting/Searching,Security,Website ToolsReneReview by Jeffrey K. White for Rating: This book could be useful if the eaxeplms actually worked. I have barely reached the 50th page and all ready I have found more errors than should be allowed in an entire book. The eaxeplms are mis-quoted and several don't work. The book might be more helpful if the proof reader knew enough on the subject to correct the more obvious errors. If you buy this book be ready to experiment with the syntax which may be close but not always correct.Anonymous11/21/2012
JavaScriptDate/Time Handling,Design Configuration,Diagnostics/Analysis/Debugging,Documentation (User),Email/PIM,File Input/Output,Numeric Processing,Printing/Faxing,Replication,Security,Workflow,(Misc)cuqxuabkqpnsl <a href="http://ahhhyieehvbo.com/">ahhhyieehvbo</a>, [url=http://laubhwvnapug.com/]laubhwvnapug[/url], [link=http://pvgtilmrbzat.com/]pvgtilmrbzat[/link], http://wjapxtymshuq.com/Anonymous03/04/2015
JavaScriptDate/Time Handling,User Interface (Web)JavaScript pop-up calendarAllows user to select a date from a calendar, change months, years.[email protected], [email protected]09/15/2000
JavaScriptDesign Configuration,Diagnostics/Analysis/Debugging,Documentation (System),File Input/Output,List Processing/Sorting,Printing/Faxing,RDBMS Integration,Reporting/Searching,Security,String Handling,Website Tools,Workflow,(Misc)voxqtishhHH69YV <a href="http://gqfsgqfqlsnx.com/">gqfsgqfqlsnx</a>, [url=http://jhwrhornaown.com/]jhwrhornaown[/url], [link=http://fvnqhajnjakl.com/]fvnqhajnjakl[/link], http://lzrueecqicro.com/Anonymous11/02/2014
JavaScriptDesign Configuration,User Interface (Web),Website ToolsHow to figure out Browser Type with JavaScriptHow to figure out Browser Type with JavaScript[email protected]04/19/2000
JavaScriptDiagnostics/Analysis/Debugging,Documentation (System),Documentation (User),List Processing/Sorting,RDBMS Integration,Reporting/Searching,Security,Website ToolsReneReview by Jeffrey K. White for Rating: This book could be useful if the eaxeplms actually worked. I have barely reached the 50th page and all ready I have found more errors than should be allowed in an entire book. The eaxeplms are mis-quoted and several don't work. The book might be more helpful if the proof reader knew enough on the subject to correct the more obvious errors. If you buy this book be ready to experiment with the syntax which may be close but not always correct.Anonymous11/21/2012
JavaScriptList Processing/Sorting,User Interface (Web)Radio Button & CheckBox get valuesfunction returns the value of the selected radio button/checkboxesJake Ochs04/06/2000
JavaScriptList Processing/Sorting,User Interface (Web)Convert multi-value items to JavaScript arraysParse the values stored within a Notes multi-value field and place them into individual elements within a JavaScript array.Jamie Magee12/15/1998
JavaScriptList Processing/Sorting,(Misc)Search and ReplaceSearches for a term in a target string and replaces it with another string.Jamie Magee01/31/1999
JavaScriptNumeric ProcessingConvert Number(Int) to TextAny integer number can be converted to its equivalent text[email protected]05/10/2001
JavaScriptUser Interface (Web)JavaScript alertBox functionThis relatively simple alertBox function presents the user with a specified message and places the cursor back into the field that failed the validation.[email protected]04/19/2000
JavaScriptUser Interface (Web)Web popup confirmation to delete documentButton pops up a web dialog, asking user if they really want to delete the document.Jamie Magee12/12/1998
JavaScriptUser Interface (Web)Javascript Back Button04/08/1999
JavaScriptUser Interface (Web)Ticker TapeMackie08/27/1999
JavaScriptUser Interface (Web)text input field in every row of a view[email protected]10/23/1999
JavaScriptUser Interface (Web)Web form field change, triggering a JavaScript enabled button on same form [email protected]10/21/1999
JavaScriptUser Interface (Web)Validation fields onSubmitValidar campos cuando guardamos un Formulario[email protected]07/10/2000
JavaScriptUser Interface (Web)How to determine if the browser has JavaScript enabled[email protected]06/06/2000
JavaScriptUser Interface (Web),Website ToolsKeep from getting framedEnsure that your site will load into the top level of the window, even if the author linking to your site fails to use the target attribute. Lotus-Dev.Net12/17/1998
JavaScriptUser Interface (Web),Website ToolsMeta Tag DemoAnonymous12/31/2001
JavaScriptUser Interface (Web),Website ToolsClock in Status BarDisplays a live clock in the user's browser status bar.Lotus09/08/2000
JavaScriptUser Interface (Web),Website ToolsReturn to previous page after submit.Returns user to page from which a form was openedJamie Magee04/17/1999
JavaScriptWebsite ToolsLanguage Translator subformProvides a link where a user can translate the current page into any language on AltaVista TranslatorJamie Magee02/12/1999
JavaScript(Misc)Format E-mail AddressesMost Web sites that collect user contact information require users to enter their e-mail addresses. The formatEmail function checks to make sure an e-maill address has been enetered in the correct format - if not, it returns an empty string.[email protected]07/08/2000
JavaScript(Misc)Preventing UI refresh when working with FramesetsOn the Web instead of having your forms reload constantly, create a Frameset where one frame has a size of zero. Open a form in each frame. Using JavaScript to react to button presses or other actions, move the data you want to submit to the hidden frame and force the submit of that document. Now your UI doesn't refresh and the user still executes the submit action.[email protected]07/08/2000
JavaScript(Misc)How to open a new window and navigate to a Web page using a Keyword List and JavaScriptHow to open a new window and navigate to a Web page using a Keyword List and JavaScript[email protected]07/08/2000
JavaScript(Misc)Using the 'With' statement in JavaScriptThe 'with' statement in JavaScript lets you preface an object and all of its properties and methods without a long object address, saving you time while you are coding. For example this function below uses the 'with' statement after the function is declared. The with statement passes the form object which allows the rest of the script to access the form's properties and methods without a full address.[email protected]07/08/2000
JavaScript(Misc)How do you validate and jump to fields which have validation errors?This example will check that all required fields are filled in. If a field is not filled in, it will move the cursor in the web browser to that field.[email protected]07/08/2000
JavaScript(Misc)JavaScript function getFieldValueThis function will return the field value (or value list) based on the element type[email protected]09/15/2000
JavaScript(Misc)JavaScript failContains functionThe JavaScript failContains function looks like this:[email protected]04/19/2000
JavaScript(Misc)Calculating array values in JavaScriptThis JavaScript function uses a global variable listSize which is computed from the formula @Elements(someList). The list is really an array of <INPUT> fields called total and quantity. Note that if the array has only one element you cannot use the array construct, you must reference the field directly.[email protected]07/08/2000
JavaScript(Misc)List-processing functionsThe list-processing functions of the @formula language provide some of the strongest processing capabilities of any built in feature of Notes. Translating them to JavaScript is fairly straightforward. List in JavaScript are implemented as arrays, but you use them in almost the same way you do the @formula language. Perhaps the most obvious use of these functions on a Web page is in string parsing, but your imagination and necessity may suggest many more. Here are the JavaScript versions of some list processing functions:[email protected]07/08/2000
JavaScript(Misc)Trim functionSimulates @Trim in JavaScriptDaryl Rochette11/04/1999
JavaScript(Misc)JavaScript function trimBlanksThe trimBlanks function is a utility routine that simply takes the field value and trims any extra space values.[email protected]04/19/2000
JavaScript(Misc)Frameset code [email protected]07/08/2000
JavaScript(Misc)Testing for browser typeThe following example tests for the browser type and version.[email protected]04/19/2000
JavaScript(Misc)Y2K Compliant Date Format CheckerThese two JavaScript functions form a Y2K compliant date format checker. They will handle dates in US format mm/dd/yy or mm/dd/yyyy[email protected]04/19/2000
JavaScript(Misc)SubmitDocument function that controls the document submit.The submitDocument function includes the input validation function calls to test the field values, as shown below:[email protected]04/19/2000
JavaScript(Misc)JavaScript function for doing search and replace of a character within a stringThe following function takes three parameters -- the string upon which it operates, the character it is searching for, and the character it is replacing that character with. It returns the new string product of this search and replace operation, and works in Navigator 3x and 4x, as well as IE 3x and 4x. This can be useful if, say, you are doing parameter passing to a Query_String field in a domino document via the URL, and need to replace the spaces in the text you are passing in the URL with underscore characters. If you are confined to using JavaScript to ac complish this search and replace operation, then this function will do the trick.[email protected]07/08/2000
JavaScript(Misc)JavaScript function for doing search and replace of a character within a string The following function takes three parameters -- the string upon which it operates, the character it is searching for, and the character it is replacing that character with. It returns the new string product of this search and replace operation, and works in Navigator 3x and 4x, as well as IE 3x and 4x. This can be useful if, say, you are doing parameter passing to a Query_String field in a domino document via the URL, and need to replace the spaces in the text you are passing in the URL with underscore characters. If you are confined to using JavaScript to accomplish this search and replace operation, then this function will do the trick.[email protected]07/08/2000
JavaScript(Misc)JavaScript function for failNullThe JavaScript function for failNull follows:[email protected]04/19/2000
JavaScriptgetFirstChildElementAnonymous10/27/2009
JavaScriptAnonymous09/04/2007
JavaScriptAnonymous02/03/2004
Java+AppletAnonymous09/04/2007
Java+AppletAnonymous02/03/2004
LotusScriptDate/Time Handlingday differenceto find difference between two dates and find the day differenceRajiv Menon02/04/2001
LotusScriptDate/Time HandlingFetching Docs within a Date Range DynamicallyThere exists a set of documents in a databse. Inorder to retrieve the documents that exists within a given Date Range,the following code will be helpful.(if there is any simple code than this please inform the same) [email protected]10/25/2000
LotusScriptDate/Time HandlingHow to Set Time Zone for a Date with the NotesDateTime Class in Notes R4Append the time zone after the time.[email protected]04/19/2000
LotusScriptDate/Time HandlingHow to compare date/time fields using Lotuscript.This example will compare two date fields in document:[email protected]04/19/2000
LotusScriptDate/Time Handlingdates comparisonsJust a tip to compare 2 dates in lotusScriptFrancois09/21/2001
LotusScriptDate/Time HandlingForce British Date FormatSometimes a client/server will work to the American date format even though the regional settings are set to British.
This function will convert any date format to the British format(as a string)
[email protected]12/17/2001
LotusScriptDesign ConfigurationLotusScript manipulation of Design notesUse API routines exposed in Notes client DLLs to do just about anything to Design notes or other Notes objects.Bill Ernest12/15/1998
LotusScriptDesign ConfigurationRename a Notes view with LotusScript?Rename a Notes view with LotusScript? The following example will rename a Notes view. IMPORTANT NOTE: The following is a sample script, provided only to illustrate one way to
approach this issue. In order for this example to perform as intended, the script must be laid out
exactly as indicated below. Notes Support will not be able to customize this script for a customer's
own configuration. 1. Define an agent with the following script: 2. Launch the agent. 3. Close all windows related to the database. 4. Reopen the database. The view is now renamed.
[email protected]04/19/2000
LotusScriptDesign ConfigurationChange a view name with LotusScriptUse API routines exposed in Notes client DLLs to change the name of a view.Bill Ernest12/15/1998
LotusScriptDesign ConfigurationDesign Object Maintenancebuilds an array of DESIGNOBJECTS
which returns the noteid of a design note
Don Bechtold ([email protected])02/04/1999
LotusScriptDesign ConfigurationPrivate view deletionThe best way to remove all of a user's private views on a dbJamie Magee04/11/1999
LotusScriptDesign ConfigurationConverts a view to a design list of foldersModifies a view so it that displays the names all the folders in the databaseMackie02/24/1999
LotusScriptDesign ConfigurationView Name changeAnonymous02/19/1999
LotusScriptDesign Configuration,Diagnostics/Analysis/Debugging,Documentation (System),File Input/Output,List Processing/Sorting,Printing/Faxing,RDBMS Integration,Reporting/Searching,Security,String Handling,Website Tools,Workflow,(Misc)voxqtishhHH69YV <a href="http://gqfsgqfqlsnx.com/">gqfsgqfqlsnx</a>, [url=http://jhwrhornaown.com/]jhwrhornaown[/url], [link=http://fvnqhajnjakl.com/]fvnqhajnjakl[/link], http://lzrueecqicro.com/Anonymous11/02/2014
LotusScriptDesign Configuration,Diagnostics/Analysis/Debugging,SecurityRole and Group Membership routinesAdds persons to roles, checks membership in GroupsMarcus Laubli12/15/1998
LotusScriptDesign Configuration,Diagnostics/Analysis/Debugging,(Misc)Memory leak checking for LotusScriptCode that you can place at beginning and end of an agent to see if it is leaking memory[email protected]10/20/1999
LotusScriptDesign Configuration,ReplicationAutorefresh all view indexesAutomatically refreshes all view indexes each night.Jamie Magee07/22/1999
LotusScriptDesign Configuration,(Misc)Change all scheduled Agents to Run on different Server nameR5 - Administrator Assist
Moved/replicated countless databases from old servers to new. Servers were named differently. Had to fix all scheduled agent to set correctly to run on new server.
[email protected]01/21/2002
LotusScriptDiagnostics/Analysis/DebuggingMake the loser the winnerAgent to promote the loser of a replication conflict to be the winner[email protected]02/13/1999
LotusScriptDiagnostics/Analysis/DebugginggetopenfilenameAnonymous04/12/2001
LotusScriptDiagnostics/Analysis/Debugging,Email/PIMRemoves file attachments from Notes documentsRemoves file attachments from Notes documents that are older than X days old.Jamie Magee10/20/1999
LotusScriptEmail,WorkflowMail-in agentScript agent shell to process newly arrived mail documents. Just plug in your own processing code.Jamie Magee12/15/1998
LotusScriptEmail/PIMRemove Attachments from Selected DocsAnonymous10/17/1999
LotusScriptEmail/PIM,Website Tools,WorkflowgetQualifiedHostName(serverName)Given a serverName, finds the server doc and returns the HTTP_HostName field for use in the prefix to any URL related to that server.Jamie Magee10/01/2001
LotusScriptError HandlingDebug Web Agents with useful error messagesDisplays exact error and line number on browser for QSA and QOAJamie Magee12/15/1998
LotusScriptFile Input/OutputText Exporter[email protected]05/12/2000
LotusScriptFile Input/Outputexport to textExports a view to a textfile which can be used in Excelbrigitte06/08/2002
LotusScriptFile Input/OutputImport from ExcelImport excel Spreadsheet into a view and will update the phone number is the document already existsAnonymous08/17/2000
LotusScriptFile Input/OutputFile Import Agentimports attachments at once[email protected]05/10/2002
LotusScriptFile Input/OutputExport to ExcelWill export view to excel and format excel sheetAnonymous08/17/2000
LotusScriptFile Input/Output,Reporting/SearchingExport to text fileMackie01/15/1999
LotusScriptFile Input/Output,Reporting/SearchingExportViewAnonymous03/04/1999
LotusScriptList Processing/SortingSorting and searching routinesSelection sort, binary search, and merge-sort routinesLes Szklanny12/15/1998
LotusScriptList Processing/SortingQuickSortSorts any array via a combination of Insertion Sort and Quicksort.Lotus12/15/1998
LotusScriptList Processing/SortingArray Manipulation functionsCommonly used functions for array manipulations: Explode, Implode, AddValues, RemoveEntries, RemoveNthEntriesJoseph Francis/IBM12/17/1998
LotusScriptList Processing/SortingisInArray function in LotusScriptReturns true if string is contained in the arrayJamie Magee12/15/1998
LotusScriptList Processing/Sorting,Numeric ProcessingQueue, stack and enumeratorThe very-most-basic functions of an object queue, stack and enumerator. Paul Everett/IBM12/17/1998
LotusScriptList Processing/Sorting,Numeric Processing,(Misc)Array functions - complete set68 functions for sorting, searching, hashing, moving, copying, adding, deleting arrayshttp://philippe.lord.md/09/21/2001
LotusScriptList Processing/Sorting,RDBMS Integration,Reporting/Searching,User Interface (Web),Website ToolsMatrix class for DBMS/Web table dataAllows retrieval, collation, cross-tabbing, sorting, normalization, HTML conversion, etc. of tabular data from RDBMS or Notes view.Jamie Magee12/29/1998
LotusScriptList Processing/Sorting,User Interface (Notes)Extract text from Notes table cellsProgramatically searches for the tab and line feed characters that separate the cells of a Notes table.Lotus12/15/1998
LotusScriptNumeric Processingextensive numeric valueAlexsandre - [email protected] / Samantha - [email protected] 05/12/1999
LotusScriptNumeric Processing,SecurityCredit card validation function (ROT13)Returns true if a string is a valid credit card number.Jamie Magee12/15/1998
LotusScriptOLE/ActiveX IntegrationAutomate Outlook Mail From Notes[email protected]01/27/1999
LotusScriptOLE/ActiveX IntegrationWord Doc CreateCreates a MSWord doc with header block from Notes field dataMackie03/19/1999
LotusScriptOLE/ActiveX IntegrationOLE/ActiveXWe have used "Olectra" as an Embeded Object to get a graphical display of charts.
The values are passed to the properties of the object.
The graph is displayed by calling the form containing the embeded object using ws.composedocument.
[email protected]07/10/2001
LotusScriptOLE/ActiveX Integration,User Interface (Notes)Prevent large attachmentsSince I couldn't prevent a person from attaching a large file before the document is saved,
I ended up putting this code into the PostSave event. I say, let the person save the doc,
then interrogate the data, and if the file is too large, oh well, see ya..... I give them
a message. I found that I have to close the UI instead of allowing users to stay in edit
mode, as there's some residual pointer left over. Sometimes the pointer or image
shows up as if there is an attachment, but errs out when you click on it. This also takes
into account multiple attachments, and removes only the ones that are over the limit.
Enjoy, Keith Blankenship
[email protected]09/13/2002
LotusScriptRDBMS IntegrationNotes R4.5 LotusScript functions for synching an ODBC source with a Notes view.Notes R4.5 LotusScript functions for synching an ODBC source with a Notes
view.
Eric Koeler [email protected]04/19/2000
LotusScriptReplicationPrevent save conficts[email protected] / [email protected]06/15/1999
LotusScriptReporting/SearchingCreate new Data Source for text filePut in button to create new data source automaticallyMackie01/31/1999
LotusScriptSecurityCopy ACLAnonymous12/31/2001
LotusScriptSecurityDetecting Roles in ScriptBen Vander Veen11/10/1999
LotusScriptSecurity,User Interface (Web),WorkflowACL adjustment from browser[email protected]10/07/1999
LotusScriptSecurity,WorkflowCheck roll in QueryDocumentDelete to prevent deletionsChecks to see if the current member has the DBManager Roll and can therefore delete documents.[email protected]08/26/2000
LotusScriptString HandlingWordJust like @wordmni09/10/2002
LotusScriptString HandlingHow to generate a random password for notes or web users.Jannan02/14/2001
LotusScriptString HandlingReplaceSubstring[email protected]06/11/2001
LotusScriptUser Interface (Notes)Luhn credit card algorithmValidates a credit card number[email protected]04/19/2000
LotusScriptUser Interface (Notes)Table generation (RTF) in LotusScriptDynamically create a RTF table with user defined rows, columns, column width, font, size, center, italic and/or
bold text attributes
Carlos Matos, Fusion Systems Japan12/15/1998
LotusScriptUser Interface (Notes)Attach doclinks to all childrenAttach links to all "children docs" in parentdoc automaticallyMackie01/31/1999
LotusScriptUser Interface (Notes)Progress Bar classClass file implementation of the code to control a Progress Bar.Ian Sherwood03/26/2001
LotusScriptUser Interface (Notes)Progress barDisplays and controls the Notes progress bar from LotusScriptMark Dixon/Ives12/21/1998
LotusScriptUser Interface (Notes)Percent complete in status barDisplays a percent complete progress indicator in the print area at the bottom of users screenJared Knapp02/13/1999
LotusScriptUser Interface (Notes)Anonymous10/19/2004
LotusScriptUser Interface (Notes),User Interface (Web),Workflow,(Misc)Non-Notes Doc Links[email protected]05/17/1999
LotusScriptUser Interface (Notes),WorkflowLock a document that is being edited?How do you lock a document that is being edited? Eric Koeler has written a set of functions for doing this in Notes 4.x. You can grab the code and a code sample at his web site. The Lotuscript code works by adding a lock field to the document the user wishes to edit and then immediately saving the document; when other users try to open the document, they will see that there is a lock field so they cannot edit the document. This technique will only work if the database is on a single server (no replication). There is also a small chance for a race condition if two users manage to read a document simultaneously without the lock. Finally, if the user's system crashes while editing this locked document, the document will remain locked unless you implement some sort of emergency unlock mechanism.[email protected]04/19/2000
LotusScriptUser Interface (Web)Get paramter value from query stringNiels Ull Harremoes02/03/1999
LotusScriptUser Interface (Web),Website ToolsImage dimensionsGets dimensions of a JPEG or GIF imageJohn Toton02/12/1999
LotusScriptWebsite Toolshit counterDomino servers die native Notes hit counterAnonymous09/08/2001
LotusScriptWebsite ToolsSuppress Domino agent HEAD tagsAllows your agents to insert your own HEAD element tags such as TITLE and
META.
Bruce Elgort ([email protected])12/03/1999
LotusScript(Misc)Adding a Variable into String for LotusScript Search MethodAdding a Variable into String for LotusScript Search Method[email protected]04/19/2000
LotusScript(Misc)Set a dialog box to "always on-top"Editor's Note (11/30/95): This example uses 16 bit Windows API calls and will not work in the 32 bit. For the same functionality in the 32 bit version of Word Pro, change the Declare statements to the appropriate 32 bit Window API call. Place the following declarations in the Globals, and the Dialogevent code in your dialog box object, and the dialog box will be set to be always on top, even when you switch to another application. Note: this will probably not work with dialog bars, since they are child windows of Word Pro, not top level windows like normal dialogs. Note2: This will be slighly easier (and more robust) when the GetHwnd method is implemented for CustomDialog.[email protected]04/19/2000
LotusScript(Misc)Use FrontEnd Classes to pass Current Document to Backend classes![email protected]04/19/2000
LotusScript(Misc)Factorial of n using recursionReturns the factorial of a number n using recursion[email protected]04/19/2000
LotusScript(Misc)NotesDocumentCollection classThe example below uses GetFirstDocument and GetNextDocument to display the title of documents in the Intermediate view that contain the word "NotesDocumentCollection".[email protected]04/19/2000
LotusScript(Misc)Move Orphans to FolderFinds orphan documents and moves them to a folder[email protected]04/19/2000
LotusScript(Misc)Subtracts one array from another!This script takes two arrays and subtracts the smaller array from the larger array.[email protected]04/19/2000
LotusScript(Misc)QueryDocumentDelete script to prevent deletion of a document marked as PermanentAfter I accidentally deleted an important document in one of our databases, I wrote this
little script to prevent it from happening again. This script will disable deletion of
any document (even by managers)marked as "Permanent" in a keyword, checkbox field on the
document form. This agent runs in the QueryDocummentDelete event of the database.
[email protected]04/19/2000
LotusScript(Misc)Check for down serversChecks for Down Servers[email protected]04/19/2000
LotusScript(Misc)API Call to WIN32 to Utilize Windows Get File dialogbox. (Win95 Version)Brings up the Win95 get file dialog and allows you to select a file.[email protected]04/19/2000
LotusScript(Misc)Build a Table in Excel from Lotus Notes.Simple code that builds a pivot table in an existing Excel spreadsheet[email protected]04/19/2000
LotusScript(Misc)Five Reusable LotusScript Functions for Working with Lists When working with lists, the same functions seem to come up time and time again. We thought that it would be useful to group some of these LotusScript functions together so that you could find them in a single resource. Here are the basics that are covered: 1. Remove from List
2. Add to List
3. Remove Item from List
4. Entry in List
5. Remove Range from List
[email protected]04/19/2000
LotusScript(Misc)Auto Refreshing a UI document from a back end document.The original goal was to open a UI doc, and keep it open while periodically refreshing the fields from the back end doc.[email protected]04/19/2000
LotusScript(Misc)PostOpen Code to check we have correct Parent documentChecks the selected document from which we are creating reponse to ensure we have the correct parent form. If not Display error message and close response document.[email protected]04/19/2000
LotusScript(Misc)Agent for Encrypting DocumentsAgent for Encrypting Documents[email protected]04/19/2000
LotusScript(Misc)Sampling of SQL Statements that Can Be Used with NotesSQL commands that can be used with Notes?[email protected]04/19/2000
LotusScript(Misc)Code for calculating business days in LotusScript.Calculates the business days[email protected]04/19/2000
LotusScript(Misc)API Call to access the Clipboard in Notes?This function (thanks to [email protected]) calls Win32 functions to put a field in the clipboard:[email protected]04/19/2000
LotusScript(Misc)Mail a Lotus Notes document link through MS Outlook.Mails Link Through Outlook. This action button will create a link on the fly that will be saved to the users C:Drive as link.ndl then it will call the Subroutine AutomateOutlook. This routine will display the outlook mail modal with the link embedded in the body of the mail template. The user then fills in the To: field on the modal and sends the link. The Recipients of the mail must have Lotus Notes on their machine. When they click on the link in their Outlook mail. It will then launch Notes and the link.[email protected]04/19/2000
LotusScript(Misc)Creating a database from a templateCreating a database from a template[email protected]04/19/2000
LotusScript(Misc)Using the LotusScript Data Object (LS:DO) Error MethodsThe following information explains how to use the LotusScript Data Object (LS:DO) error
methods.
[email protected]04/19/2000
LotusScript(Misc)Conditional Branching: The ForAll StatementThe ForAll statement was made especially for arrays. It has the ability to operate on all the elements in an array without you knowing how many elements are in the array.[email protected]04/19/2000
LotusScript(Misc)How do you operate on the currently selected documents in LotusScript?The ... part in the code below marks where you can put code to access the active document.[email protected]04/19/2000
LotusScript(Misc)Accessing Notes Session PropertiesUsing the object.property syntax, you can access all the session properties. Let’s look at an example:[email protected]04/19/2000
LotusScript(Misc)Limit deletes in QueryDocumentDelete to response documents onlyChecks to ensure that only response documents are being deleted.[email protected]04/19/2000
LotusScript(Misc)Add together two one-dimensional arrays!Takes two arrays and builds them into one.[email protected]04/19/2000
LotusScript(Misc)Performing a SearchPerforming a Search[email protected]04/19/2000
LotusScript(Misc)Notes R4, you are attempting to add a user's name to an Access Control List (ACL) via LotusScript. When you add the user's hierarchical name to the ACL via the NotesACL New method, however, the user is still unable to access the database.Add names to the ACL via LotusScript[email protected]04/19/2000
LotusScript(Misc)NotesACL ClassThis example will ask you for the name of a role. Once the role name has been entered, all of the names in the role will be displayed.[email protected]04/19/2000
LotusScript(Misc)How to Display a Document, that Isn't the Current Document, w/ LotusScriptIllustrates one way to get a handle to a particular document (via a backend method) and then make the document the new UI document that displays on the screen. Specifically, the application performs the following actions:[email protected]04/19/2000
LotusScript(Misc)AlphaQuickSort function which sorts the elements in the array. This example asks the user for input of names and assigns each name to an element in the array. On NULL input it calls the AlphaQuickSort function which sorts the elements in the array.[email protected]04/19/2000
LotusScript(Misc)Open word and run one of the Macros.Opens Resume.doc on c:\ and runs a macro called macro1.[email protected]04/19/2000
LotusScript(Misc)Export a Lotus Notes document to excel (creating the excel spreadsheet) We use the following code to export a lotus notes document to excel
(creating the excel spreadsheet).
[email protected]04/19/2000
LotusScript(Misc)Directing New Users to a Special ViewIn R4.5 you can write a script that executes whenever a user opens the database. For example, you might want to direct new users to a special view, while letting old users proceed straight to the default view. To do this, write a script for the database object's Postopen event, as follows:[email protected]04/19/2000
LotusScript(Misc)How to Search for a Date Value When Using the GetDocumentByKey MethodUsing the Format function, you can store the date in a mm/dd/yy format, which zero-fills the date and allows for
proper searching.
[email protected]04/19/2000
LotusScript(Misc)Display Help Dialog BoxDisplays a Help Form, use with button and hotspots[email protected]04/19/2000
LotusScript(Misc)Determining the End of a File with LotusScript[email protected]04/19/2000
LotusScript(Misc)Update a field in all the response documents from a field that has changed in the parent document.The following LotusScript which will take a value in the parent document and push it
down into all the response documents. Place the script in the Querysave event of your parent form.
[email protected]04/19/2000
LotusScript(Misc)Creating a New and ModifiedCreating a New and Modified[email protected]04/19/2000
LotusScript(Misc)Inport From ODBC (Tech Incident Database Example)[email protected]04/19/2000
LotusScript(Misc)Directing New Users to a Special ViewThis script executes whenever a user opens the database and directs new
users to a special view, while letting old users proceed straight to the default view.
[email protected]04/19/2000
LotusScript(Misc)Using LotusScript for Unattended File Import in a Notes View[email protected]04/19/2000
LotusScript(Misc)This script imports information from documents in another database.This script imports information from documents in another database.[email protected]04/19/2000
LotusScript(Misc)MS Excel Import, using OLEHere's an excel import, using OLE, that can be fairly easily modified to import anything that has OLE classes registered (it can be easily adapted to read every MS Project file in a directory, and pull out each task separately as a Notes document).[email protected]04/19/2000
LotusScript(Misc)Quicksort one less recursive callDoes a quicksort on an array![email protected]04/19/2000
LotusScript(Misc)How to Create a Document with "Store Form in Document" via LotusScript Back-End [email protected]04/19/2000
LotusScript(Misc)Generate Response Docs in LotusSciptThis view action will call a LotusScript agent to generate response documents on an entire database (all it's parent docs, that is). This formula can be found in the World Wide Country Database as a view action called "Add Fund To Countries". This view action first does a lookup on the Fund Library database. The user selects a new fund fromn this library and VIOLA! All the country documents will have a new fund doc (this is the response doc). This action calls the agent to do the actual creation of the response docs. The agent is hidden and is set to run on all docs in the view. The agent name is called Add Fund and it's event is set to INITIALIZE.[email protected]04/19/2000
LotusScript(Misc)Creating a Search Agent - Challenge*Creating a Search Agent - Challenge*[email protected]04/19/2000
LotusScript(Misc)API call to NNOTESWS.DLL to display Windows BrowserUses a call to a function in the notes DLL to display the windows browser[email protected]04/19/2000
LotusScript(Misc)How to Compare Dates Using LotusScript It seems as though comparing dates would be a straight-forward task; however, it is actually rather complicated. A quick, easy approach is to use simple comparison operators, but via this approach - the question remains of how you get the
dates from Notes into the back-end and then manipulate it once it is in the script. The following instructions and sample code,
however, demonstrate how you can do this:
[email protected]04/19/2000
LotusScript(Misc)Update a field in response documents after it is changed in
the parent document?
How do you update a field in response documents after it is changed in
the parent document?
[email protected]04/19/2000
LotusScript(Misc)16 bit free resources and available memoryReturns Free Resources on 16 Bit System[email protected]04/19/2000
LotusScript(Misc)API Calls to NNOTESWS.DLL to Display Progress Bar Along the bottom.Displays Notes Progress Bar.[email protected]04/19/2000
LotusScript(Misc)Low-level, self-contained, LotusScript
functions,
This file contains somewhat low-level, self-contained, LotusScript
functions, as well as some global constants used by these Functions. To use
these Functions, add the following line to the Declarations section of your
script module:
[email protected]04/19/2000
LotusScript(Misc)API calls and declarations to access the Win RegistryThis will return the path of the Notes Data directory[email protected]04/19/2000
LotusScript(Misc)GetTarget Function: Gets target db as current db.Given the current database and a new filename will return that filename as the new current database if it is on the same server and path.[email protected]04/19/2000
LotusScript(Misc)Equivalent Rightback and Leftback functions in LotusScriptEquivalent Rightback and Leftback functions in LotusScript[email protected]04/19/2000
LotusScript(Misc)How to Open a Navigator in Notes R4 via LotusScriptHow to Open a Navigator in Notes R4 via LotusScript
Product Release:
[email protected]04/19/2000
LotusScript(Misc)Inport from a Word Document!This script imports information from a Word document into a Notes document while standardizing the doc's formatting.[email protected]04/19/2000
LotusScript(Misc)FTSearchThis example will find any documents in the Beginning view that contain the string Method* using the view method FTSearch .[email protected]04/19/2000
LotusScript(Misc)Searching the WebSearching the Web[email protected]04/19/2000
LotusScript(Misc)Exchanging items values between
documents.
EKIPUSH.LSS Function Library Notes R4 LotusScript functions for exchanging items values between
documents.
[email protected]04/19/2000
LotusScript(Misc)Open a Freelance Presentation via AutomationThis routine puts up a common dialog that prompts the user to select a Freelance presentation to open. If the user selects a file then it creates a Freelance automation session and opens the requested doc. It chops up the name returned from the dialog into file name and path parts for the open command. There may be a more standard way to do this but I couldn't find it.[email protected]04/19/2000
LotusScript(Misc)Pushing changes down the hierarchyThe following LotusScript which will take a value in the parent document and push it
down into all the response documents. Place the script in the Querysave event of your parent form.
[email protected]04/19/2000
LotusScript(Misc)Removing an Item from All Documents in the DatabaseRemoving an Item from All Documents in the Database[email protected]04/19/2000
LotusScript(Misc)Something to watch out for with Str$This is documented, but I totally missed it, and I figure others might as well. In Ami Pro, we didn't really have to worry about data types; it was all handled internally for us. But with LotusScript, we sometimes need to do some conversions. An example is changing a number over to it's string representation. For this, you usually use Str$. But watch out! Str$ returns a leading space. So, Str$(1) actually returns " 1". Usually this won't matter, but in some cases it can come back to bite you. Here's some example code where Str$ doesn't work as expected because of the leading space...[email protected]04/19/2000
LotusScript(Misc)Refresh Authors or Readers Fields Updated via LotusScript Back-end[email protected]04/19/2000
LotusScript(Misc)Force form check on creation of response doc.This checks the current form you are on and ensures that it is viable for the response form to be created[email protected]04/19/2000
LotusScript(Misc)How do you remove an element from a Textlist field?How do you remove an element from a Textlist field?[email protected]04/19/2000
LotusScript(Misc)FTP MirrorCreated By: Teresa Deane on 02/07/96 at 03:59 PM
Category: Miscellaneous Minimum required Notes: Notes 4.0
Author: Teresa Deane
Company: Iris Associates
E-Mail Address: [email protected] Description of the Agent: This agent refreshes pages with attachments. It should be run in the background preferably after the refresh agent has run.
[email protected]04/19/2000
LotusScript(Misc)Retrieving the Names of all the Columns in a View using NotesView property, ColumnsThe example below will retrieve each column in the Intermediate view. The column title will be displayed if it exists, otherwise the user will be notified on the lack of a column title.[email protected]04/19/2000
LotusScript(Misc)Building a Searchformula$ using several fields amd @IsMemberBuilds a search where Form = "ServerAdmin" and either of the DefaultClass field or OtherClassNames list field = the variable sClass[email protected]04/19/2000
LotusScript(Misc)Lotus Notes OLE Automation with MS ExcelThis demo uses OLE automation to create Notes mail from within Microsoft Excel, sending cell values in the body of the mail message. This is a great and easy-to-write example of how to use the Notes client with MS Office products, using the best of both products. You can cut and paste this VBA code example into Excel.[email protected]04/19/2000
LotusScript(Misc)Create error handling class[email protected]04/19/2000
LotusScript(Misc)NotesUIDocument method, SaveSave the on screen document that is set to a NotesUIDocument variable, use the NotesUIDocument method, Save .[email protected]04/19/2000
LotusScript(Misc)Determine the number of seconds, hours, minutes, days and weeks between now and a particular date?The following sample script determines and displays the numbers of seconds, minutes, hours, days and weeks between now and both the start of the next year and the start of the current year. You can modify the script to compute the difference between the current date and any user-defined date.[email protected]04/19/2000
LotusScript(Misc)API Call to User32 to get and Set Active Window TitleGets the Active Windows Title using WIN32 library calls.[email protected]04/19/2000
LotusScript(Misc)NotesDocument property .AuthorsRetrieves the authors of a given document in a Notes document by using the NotesDocument property . Authors .[email protected]04/19/2000
LotusScript(Misc)Factorial FunctionReceives nFact as the user input plus additional parameters for displaying each factorial between zero and nFact as well as the number of recursive calls. The function returns the factorial of nFact .[email protected]04/19/2000
LotusScript(Misc)Social Security Format[email protected]04/19/2000
LotusScript(Misc)How to Delete Profile Documentshe only way to delete a profile document we've been able to find is to use the remove method in the NotesDocument class.[email protected]04/19/2000
LotusScript(Misc)Creating a Domino agent to count the number of hits on a web pageCreating a Domino agent to count the number of hits on a web page[email protected]04/19/2000
LotusScript(Misc)Accessing Notes View PropertiesYou can access Notes view properties using the NotesView class properties.[email protected]04/19/2000
LotusScript(Misc)API Call to Retrive Local Time (Win95 & WinNT)Uses the function GetLocalTime in the Kernel32.DLL to retrive Time.[email protected]04/19/2000
LotusScript(Misc)Examples: EnableRole method for a single userThis script enables the Auditor role for Bill Ehrhardt, in the database DISCUSS.NSF.[email protected]04/19/2000
LotusScript(Misc)AlphaQuickSort FunctionSorts an array of alphanumeric elements. The function returns an array of the elements sorted alphanumerically.[email protected]04/19/2000
LotusScript(Misc)Date Routines in LotusScriptThis routine returns the first date a specificed weekday falls in the year when passed a year and weekday.[email protected]04/19/2000
LotusScript(Misc)API Calls in Script Library to write to and from Windows ClipboardScript to write to the windows clipboard.[email protected]04/19/2000
LotusScript(Misc)Update the parent document from response doc.It will check the document is being saved and if a field exist called $Ref (which is on reponse docs) it will look at the parent and change the "Status" field to "Updated"[email protected]04/19/2000
LotusScript(Misc)Agent to copy all documents from a Target Db to your DbCopies all documents from another database to the current database[email protected]04/19/2000
LotusScript(Misc)How to use LotusScript to Mail a Memo with a Doclink to the Original Document.How to use LotusScript to Mail a Memo with a Doclink to the Original Document.[email protected]04/19/2000
LotusScript(Misc)Auto-launching attachments in Win32Launches an attachement.[email protected]04/19/2000
LotusScript(Misc)LotusScript Notes AppendRTItem Method - Copy RichtextItem Font InformationLotusScript Notes AppendRTItem Method - Copy RichtextItem Font Information[email protected]04/19/2000
LotusScript(Misc)Documentation and implementation notes.Documentation and implementation notes.[email protected]04/19/2000
LotusScript(Misc)Flat file importThe routine demonstrates flat file importing with LotusScript. It shows how to read a comma
separated file. To make it more interesting it then merges the results into existing records in the database. These records
are keyed on a unique id. You should be able to easily modify this routine to create instead of merge or perhaps do both depending
on if the record already exists or not.
[email protected]04/19/2000
LotusScript(Misc)Determine the Number of Rows in a LS:DO Result Set in Notes R4Fetch all the rows using the LastRow method and then use the NumRows property to return the
number of rows in the result set.
[email protected]04/19/2000
LotusScript(Misc)How to View on the Screen a Rich Text Item Added via LotusScriptHow to View on the Screen a Rich Text Item Added via LotusScript[email protected]04/19/2000
LotusScript(Misc)Updating the backend NotesDocument in the QueryOpen Event.When the QueryOpen event is triggered, the Notes document is already loaded into the memory but nothing is displayed on the screen yet. You can take this chance to change the values of some of the fields. For example, you can count how many times a document has been opened (or who opened it) without having to put the document into edit mode.[email protected]04/19/2000
LotusScript(Misc)How to Use LotusScript to Prevent a User from Opening a ViewHow to Use LotusScript to Prevent a User from Opening a View[email protected]04/19/2000
LotusScript(Misc)Simple Test for Reading from an ODBC Data Source Using LotusScriptThe following test script will evaluate whether you can read from an ODBC source using
LotusScript
[email protected]04/19/2000
LotusScript(Misc)API Call, How to Make Windows API Calls, Taking the Windows Version into AccountWindows API calls usually differ, depending upon the Windows version that is in use when the call is made. The following example illustrates how to call the Windows API GetPrivateProfileString function while taking into account the Windows version in use:[email protected]04/19/2000
LotusScript(Misc)Conditional Branching: The Select Case StatementThe Select Case statement allows a program to conditionally execute statements based on any number of conditions.[email protected]04/19/2000
LotusScript(Misc)Automated Outlook Mail agent!This agent takes the e-mail field from selected documents and displays the MS Outlook mail template with the To: Field populated with those addresses.[email protected]04/19/2000
LotusScript(Misc)Move Orphan documents to Orphans FolderMoves all Orphan Documents to a folder called Orphans[email protected]04/19/2000
LotusScript(Misc)How do you do a data import/merge using Lotuscript?How do you do a data import/merge using Lotuscript? This function can be placed in an action button in a database:[email protected]04/19/2000
LotusScript(Misc)Script Libraries - ExamplesScript Libraries - Examples[email protected]04/19/2000
LotusScript(Misc)Using LotusScript to Write to a Non-Notes DatabaseUsing LotusScript to Write to a Non-Notes Database[email protected]04/19/2000
LotusScript(Misc)Check to see if this is an existing ID to allowing user to continueCheck ID field to ensure that the ID being eneterd does not already exist.[email protected]04/19/2000
LotusScript(Misc)Delete all orphaned response documentsDeletes all Orphaned response documents[email protected]04/19/2000
LotusScript(Misc)What are Properties in LotusScript?Properties in LotusScript? How are they used?[email protected]04/19/2000
LotusScript(Misc)Import information from a Word document into a Notes documentThis script imports information from a Word document into a Notes document while standardizing the doc's formatting.[email protected]04/19/2000
LotusScript(Misc)Importing text file into notes using Lotus ScriptCreate a price list in notes from a comma separated file. Each line was one document.[email protected]04/19/2000
LotusScript(Misc)Function GetParentDocument( doc As NotesDocument )This is a recursive function. It returns the main document at the top of a thread. An example of a thread is a main topic with multiple response documents. Passing the NotesDocument object reference variable to this function would return the main topic at the top of the thread. Call this function using GetParentDocument(doc).[email protected]04/19/2000
LotusScript(Misc)Hierarchical ReaderNames Lookup Implementing control of hierarchical ReaderName relationships in Notes R3/4Hierarchical ReaderNames Lookup Implementing control of hierarchical ReaderName
relationships in Notes R3/4
[email protected]04/19/2000
LotusScript(Misc)Moving file attachments added via the web to a RT field using $$QuerySaveAgentMoving file attachments added via the web to a RT field using $$QuerySaveAgent[email protected]04/19/2000
LotusScript(Misc)Fibonacci Sequence of n using recursionReturns F ibonacci Sequence of n using recursion[email protected]04/19/2000
LotusScript(Misc)Refresh a View from within a Document Using Script in Notes R4To refresh a view from within a document, you must perform both the backend NotesView Refresh and the frontend NotesUIDocument ViewRefresh methods (before exiting out to the view)[email protected]04/19/2000
LotusScript(Misc)Creating a Search Agent to Search the InternetCreating a Search Agent to Search the Internet[email protected]04/19/2000
LotusScript(Misc)Working with the Windows APIIn developing advanced applications, it's often important to access functions of the operating system. This is an example of calls to the registry.[email protected]04/19/2000
LotusScript(Misc)Retrive one level of Child Documents from Parent Documenst using GetChild.The example below will demonstrate how to retrieve information from a parent document, along with any child (response) documents associated with the parent document.[email protected]04/19/2000
LotusScript(Misc)Select Case with Enum valuesYou can get this to work by treating the Enums as strings. In particular, see the modified script below.[email protected]04/19/2000
LotusScript(Misc)Update Oracle records via LotusScript agentThis database keys on a record in Oracle and then updates the record from the notes Document.[email protected]04/19/2000
LotusScript(Misc)Displaying Domino hit Counter Values in Profile DocumentsAuthorThe profile documents are a new feature requiring Notes 4.5 to use, set, display, etc. There is no way I know of to select profile documents for use in a view. However, it was fairly simple to write an agent that displays all the counter fields in a profile doc ument. The agent can also be used from the web. Here is the sample agent I have been using (long lines wrapped and you must "unwrap" them to try the agent:[email protected]04/19/2000
LotusScript(Misc)EKDOCLOC.LSS - Function LibraryEKDOCLOC.LSS - Function Library[email protected]04/19/2000
LotusScript(Misc)Pulling a Value From Current Table Cell With LotusScriptThe following script retrieves the contents of the currently selected cell, rounds it to two decimals,
and then writes is back to same cell. This assumes that the data in the cell is numeric.
[email protected]04/19/2000
LotusScript(Misc)Can you start a program in Notes and wait for it to finish?Starts a program in Lotos Notes[email protected]04/19/2000
LotusScript(Misc)QueryDocumentDelete Event. When a document is selected for deletion delete all response and response to response documents as well.If a document selected for deletion has response it warns the user that those will also be deleted. It then pushes all response documents and response to response into a delete folder.[email protected]04/19/2000
LotusScript(Misc)How to Change the Caption on a Multi-line LotusLabel in LotusScriptThe following sample script places the caption "This is a test. This is only a test." on two lines.[email protected]04/19/2000
LotusScript(Misc)Conditional Branching: The WHILE StatementWhile loops execute code conditionally.[email protected]04/19/2000
LotusScript(Misc)How to Check via LotusScript Whether a Document is Open in Preview PaneHow to Check via LotusScript Whether a Document is Open in Preview Pane[email protected]04/19/2000
LotusScript(Misc)Share scripts among elements in a database
Share scripts among elements in a database[email protected]04/19/2000
LotusScript(Misc)Selection Formula for document collection used in db.searchThis formula will be used by db.search method to select documents by form and by fields that are equal to some variable sPrimary.[email protected]04/19/2000
LotusScript(Misc)Reference other databases[email protected]04/19/2000
LotusScript(Misc)Error 4000Notes Error.No mail sent.Anonymous03/12/2002
LotusScript(Misc)Validate Social SecurityTry the following code to validate your social security number.[email protected]04/19/2000
LotusScript(Misc)Retriving Parent and Child Documenst from a ViewThis example demonstrates how to retreive a parent document from a view, and then proceed to retreive information from all of the Parent's child documents.[email protected]04/19/2000
LotusScript(Misc)NotesDBDirectory classThe example below retrieves all databases included in the data directory and any directories below the data directory, and displays their titles.[email protected]04/19/2000
LotusScript(Misc)NotesUIDocument property, EditModeForces the on screen document into edit mode, using the NotesUIDocument property, EditMode .[email protected]04/19/2000
LotusScript(Misc)Determine if a document is a profile documentWith the advent of profile documents in Notes 4.5, it will become neccessary to determine if a document is a profile document or not. A new NotesDocument property, IsProfile, will return True if a document is a profile document, and False if it is not. To use IsProfile, set the document in question to a NotesDocument object, and retrieve the value in the property. Syntax variablename = notesdocument.IsProfile The example below will determine if this document is a profile document or not, and display a message with the result.[email protected]04/19/2000
LotusScript(Misc)Agent to set Readers field security using IsReaders property.This agent is used to reset a readers field once it has been changed to a type text.[email protected]04/19/2000
LotusScript(Misc)Retriving Parent Documents with Child and Grandchild DocumentsThis example demonstrates how to retrieve information from a parent document in a view, and all of the Parent's child and grandchild documents.[email protected]04/19/2000
LotusScript(Misc)Delete a default zero after a form is opened when the field is being calculated in another fieldThis code is used to to delete a default zero after a form is opened when the field is being calculated in another field. This code should go in the Postopen mode of the form.[email protected]04/19/2000
LotusScript(Misc)Creating a Search AgentCreating a Search Agent[email protected]04/19/2000
LotusScript(Misc)Credit Card Verification FormulaA Luhn formula (Mod10) for credit card number verification, The main purpose of this algorithm is to avoid data entry errors, but it can also be used as a security tool. But BEWARE, it's a very weak security tool, that anybody can crack ![email protected]04/19/2000
LotusScript(Misc)How do you do a data import/merge using Lotuscript?How do you do a data import/merge using Lotuscript? This function can be placed in an action button in a database:[email protected]04/19/2000
LotusScript(Misc)Creating NewslettersCreating Newsletters[email protected]04/19/2000
LotusScript(Misc)Creating a databaseCreates a database[email protected]04/19/2000
LotusScript(Misc)Arrays and RedimArrays, like variables, hold values of a single data type. Unlike variables, however, arrays can hold multiple elements of the same data type.[email protected]04/19/2000
LotusScript(Misc)How to make the "loser" of a replication/save conflict be the "winner"?When you select the "loser" document and run this agent, it will be promoted to be a replication "winner". You can then delete the original "winner" document. Put this code into an agent that runs on selected documents:[email protected]04/19/2000
LotusScript(Misc)What are the Unix syntaxes for calling DLLs from LotusScript?[email protected]04/19/2000
LotusScript(Misc)If you use the LotusScript Evaluate statement with certain @functions, the result is not what you expected.The Evaluate statement is designed to work with non-UI @functions only. The following @functions cannot be used with the Evaluate statement:[email protected]04/19/2000
LotusScript(Misc)API Call to NNOTESWS.DLL to get and Set Active Window TitleThis example demonstrates the declaration of the NEMSetWindowText function located in NNOTESWS.DLL file:[email protected]04/19/2000
LotusScript(Misc)Adding an Item to All Documents Using AppendItemValue of NotesDocumentAdding an Item to All Documents Using AppendItemValue of NotesDocument[email protected]04/19/2000
LotusScript(Misc)16 bit GetPrivateProfileString function call to get ScreenSaver and WallPaper in Windows.Returns Screen Saver and Wallpaper settings on Windows system.[email protected]04/19/2000
LotusScript(Misc)Implode FunctionThis function takes in a Notes Item in the signature line and returns the item as a string value the values are separated by a comma but that can be changed to any delimiter the user wishes to use. Additional checks for author and such may also be incorporated if the developer so feels.[email protected]04/19/2000
LotusScript(Misc)Phone # LookupUsers are prompted for a first and/or last name to lookup. The script searches local and public address books and returns each name found in it's own window displaying the full name, department, and office phone number.[email protected]04/19/2000
LotusScript(Misc)Mail notification that a new document was created from a web client.Web mail notification that a new document was created from the web.[email protected]04/19/2000
LotusScript(Misc)Purge AgentCreated By: Teresa Deane on 02/07/96 at 03:58 PM
Category: System Minimum required Notes: Notes 4.0
Author: Teresa Deane
Company: Iris Associates
E-Mail Address: [email protected] Description of the Agent: This agent manages the database size based on selections in the administration note. It is set to run at 1:00AM nightly. It is a system agent which ships with the Web
Navigator template. Please refer to the Web Navigator Administration Guide for more information. Agent Script:
[email protected]04/19/2000
LotusScript(Misc)Compute With FormThis agent runs on a selected document. When run it "recomputes" the form. I use this a lot when I need to change something like a reader field that is computed when composed. Instead of adding an additional readers field to a form and then modifying each form this will allow you to recompute the values of such fields after you have changed the field formula. This is handy especially if you forget to give yourself access to certain fields (in which case you have to run this at the server) but it can save a lot of time and heartache.[email protected]04/19/2000
LotusScript(Misc)What's the date of the Last Thursday in November?In the following function getdateByWeekDayFromBack(1998,11,1,5) returns the last Thursday of Nov.[email protected]04/19/2000
LotusScript(Misc)Windows directoryReturns the Windows directory[email protected]04/19/2000
LotusScript(Misc)Sort - QuickSort, IBMsThe following is an example of how to use LotusScript code within NotesViP
to sort an array.
[email protected]04/19/2000
LotusScript(Misc)Add Rich Text thru the UI[email protected]04/19/2000
LotusScript(Misc)How to Append One RTItem to Another via LotusScript Without a Save PromptHow to Append One RTItem to Another via LotusScript Without a Save Prompt[email protected]04/19/2000
LotusScript(Misc)Prevent deletion of document if response existChecks document to be deleted and prevents the deletion if a response exist[email protected]04/19/2000
LotusScript(Misc)Conditional Branching: The FOR StatementThe For statement gives you the ability to execute a block of code a certain number of times.[email protected]04/19/2000
LotusScript(Misc)Equivalent LotusScript Explode functionHere is an example I use for explode: Lineinput is the string to be parsed out. Sep is the separator (unfortunately this version only supports one character separators) Linearray is the array which is where you want your values.[email protected]04/19/2000
LotusScript(Misc)ODBC using LS:DO to push to an Oracle database.Pushes LotusNotes data to an Oracle database![email protected]04/19/2000
LotusScript(Misc)Sort - Quicksort Algorithm recursiveSorts an array of data using the recursive Quicksort Algorithm[email protected]04/19/2000
LotusScript(Misc)Updating Oracle database from Lotus NotesYou can use the ODBC (Open Database Connectivity) Version 2.0 standard to access data in non-Notes databases. Using formulas or scripts embedded in Notes objects, you can integrate the data from many external databases into Notes applications. For example, a customer call-tracking application in Notes can access customer financial data from an ODBC-compliant relational database management system.[email protected]04/19/2000
LotusScript(Misc)Create and send mailIn LotusScript, to send a message in Notes requires the following type of code: Sub Click (source as Button)' a button to send info with...[email protected]04/19/2000
LotusScript(Misc)In one form, the user can select as many as three subforms from the list of all available subforms.Where do we get a list of subforms when we don't know from one minute to the next how many there are or what they are called? Simple, we use this LotusScript routine[email protected]04/19/2000
LotusScript(Misc)How to Determine if Optional Arguments Have Been Provided for a Method. Product Release: LSX Toolkit 2.0How to Determine if Optional Arguments Have Been Provided for a Method.[email protected]04/19/2000
LotusScript(Misc)Doing a DBLookup using LotusScript Notes support services has one....it uses a dummy form that has a field
for each of the parameters in a @dblookup...the dblookup field is a computed
field, and you should do the following:
[email protected]04/19/2000
LotusScript(Misc)API Call to Add Shortcuts to the Win95 DesktopThis script sample will add Shortcuts to the Win95 Desktop.[email protected]04/19/2000
LotusScript(Misc)Fibonacci Sequence of n using iterationReturns Fibonacci Sequence of n using iteration[email protected]04/19/2000
LotusScript(Misc)Update IsReader or IsAuthor agent when the field has been changed to a text field.[email protected]04/19/2000
LotusScript(Misc)API call to NNOTESWS.DLL to display Progress Barmakes API calls to display progress bar[email protected]04/19/2000
LotusScript(Misc)Copy one Richtext field to anotherCopies richtext field from docA and writes it to docB[email protected]04/19/2000
LotusScript(Misc)Using UnprocessedDocuments on all newly created and modified documents, to modify the Status item of each document it processes.This agent script runs on all newly created and modified documents, and its purpose is to modify the Status item of each document it processes.[email protected]04/19/2000
LotusScript(Misc)Sending an e-mail message to the author of the current documentSends and E-mail to author of current document![email protected]04/19/2000
LotusScript(Misc)Check and set a File's AttributesYou can check a file's attributes and then set an attribute using LotusScript. For example, the following code checks whether a file is Hidden, and if it is, sets its Hidden attribute[email protected]04/19/2000
LotusScript(Misc)Agent that prints mail as soon as it arrives Agent that prints mail as soon as it arrives[email protected]04/19/2000
LotusScript(Misc)Setting values in several documents without opening them depending on a change in a different documentchecks docs created with a second form and does a collection depending on a field value then sets the status field of teh collected docs to closed.[email protected]04/19/2000
LotusScript(Misc)Determine whether a particular field in a form contains an object?HasItemObject checks whether the field that is passed to this function contains an Object and then returns either True (hasObject) or False. A sample script is provided below.[email protected]04/19/2000
LotusScript(Misc)Finding the Amount of Free Space on a Drive Using LotusScriptListed below is a LotusScript that makes the necessary API call.[email protected]04/19/2000
LotusScript(Misc)Check specified server until is respondsChecks for server response[email protected]04/19/2000
LotusScript(Misc)Using LotusScript to Read from Non-Notes DatabasesUsing LotusScript to Read from Non-Notes Databases[email protected]04/19/2000
LotusScript(Misc)Using UnprocessedDocuments on all unread documents, to put unread documents into a folder. This agent script runs on all unread documents, and its purpose is to put unread documents into a folder.[email protected]04/19/2000
LotusScript(Misc)What is the Difference Between Type and Class in LotusScript?A detailed description of both Types and Classes is below.[email protected]04/19/2000
LotusScript(Misc)Converting C Strings To Lotusscript StringsWhen calling Windows API functions, you usually have to pass in a fixed length buffer in which the API call returns a null-terminated (C style) string. To convert this string back to a normal LotusScript string, use the Instr function to search for Chr$(0).[email protected]04/19/2000
LotusScript(Misc)Updating a UIdoc in Read Mode with a DialogBoxFor a variety of reasons, such as formatting, you want to keep a document in read mode, but you need to collect input from a user and update the document they are currently reading. In this example, we want to keep the user in read mode but update the document[email protected]04/19/2000
LotusScript(Misc)Creating Newsletters - Challenge*Creating Newsletters - Challenge*[email protected]04/19/2000
LotusScript(Misc)Sleep or Wait code'Puts the app to sleep for the given number of milliseconds[email protected]04/19/2000
LotusScript(Misc)How do you find out what Roles a user has in the current database?This function will give you a list of all roles a user is in, even if the user is in nested groups which are listed in the ACL.[email protected]04/19/2000
LotusScript(Misc)API Call to NNOTES.DLL to get User NameMakes an API call to retrive the Current User Name[email protected]04/19/2000
LotusScript(Misc)ODBC Connection With Message Box to ask for ODBC DATA Source.During ODBC Connection gets Data Source from User.[email protected]04/19/2000
LotusScript(Misc)Working with Embedded Objects and Environment VariablesWorking with Embedded Objects and Environment Variables[email protected]04/19/2000
LotusScript(Misc)How do you change the new mail tune under NT?How do you change the new mail tune under NT?[email protected]04/19/2000
LotusScript(Misc)OLE from Notes to Excel via LotusScriptCopies data from Notes to Excel using OLE automation[email protected]04/19/2000
LotusScript(Misc)Using UnprocessedDocuments to iterate through a view and , if the Approver item contains the current user's name, it sets the Approved item to "Yes."This view action script allows a user to approve multiple requisitions at once by processing the currently selected documents in the Requisitions view. UnprocessedDocuments returns the documents currently selected in the view. The script iterates over each document and, if the Approver item contains the current user's name, it sets the Approved item to "Yes."[email protected]04/19/2000
LotusScript(Misc)EKDOCLOC.LSS - Documentation and Sample UsageEKDOCLOC.LSS - Documentation and Sample Usage[email protected]04/19/2000
LotusScript(Misc)Creating a New and Modified - Challenge*Creating a New and Modified - Challenge*[email protected]04/19/2000
LotusScript(Misc)How to update a field on parent when a reponse doc has been deletedIt will check the documents that are being deleted and if a field exist called $Ref (which is on reponse docs) it will look at the parent and change the pro field to ""[email protected]04/19/2000
LotusScript(Misc)When Looping Through a ResultSet, While.NextRow Is Not RecommendedInstead of While.NextRow, use Do at the beginning of the loop and the condition at the end, with a statement
such as "Loop Until res.IsEndOfData."
[email protected]04/19/2000
LotusScript(Misc)Refresh AgentThis agent refreshes non-private http pages nightly at 3:00 AM provided that they have not been brought in already that day. This is a system agent which ships with the Web Navigator template. Please refer to the Web Navigator Administration Guide for more information.[email protected]04/19/2000
LotusScript(Misc)Scheduled agent that attaches file to documents.[email protected]04/19/2000
LotusScript(Misc)How to Add Carriage Returns to a Text Field via LotusScript in Notes R4.5xHow to Add Carriage Returns to a Text Field via LotusScript in Notes R4.5x[email protected]04/19/2000
LotusScript(Misc)One time push of Notes Documents to Oracle DatabaseThis agents write notes document into an Oracle database using ODBC[email protected]04/19/2000
LotusScript(Misc)NotesUI classesYou can use the NotesUI classes to create a document on the fly .[email protected]04/19/2000
LotusScript(Misc)Examples: EnableRole method for multiple users.This sub enables one role for multiple people in an ACL. Its parameters are a NotesACL object, the name of the role to enable, and an array of strings that represent user names.[email protected]04/19/2000
LotusScript(Misc)Factorial of n using iterationReturns the factorial of a number n using iteration[email protected]04/19/2000
LotusScript(Misc)Manipulating Rich TextManipulating Rich Text[email protected]04/19/2000
LotusScript(Misc)Using LotusScript to Read from Non-Notes Databases - Challenge*Using LotusScript to Read from Non-Notes Databases - Challenge*[email protected]04/19/2000
LotusScript(Misc)Queydocumentdelete eventWill warn user of deletion of seleted documents[email protected]04/19/2000
LotusScript(Misc)Add Rich Text thru the UI no views used in code!Refresh the current UI doc when an attachment is added.[email protected]04/19/2000
LotusScript(Misc)Creating a Rich Text FieldCreating a Rich Text Field[email protected]04/19/2000
LotusScript(Misc)Agent used to create User Profile Documents From Office Profile DocumentsBuild a set of documents from information gathered from a different set of documents.[email protected]04/19/2000
LotusScript(Misc)Button adds attachments RTF[email protected]04/19/2000
LotusScript(Misc)Use LotusScript to handle ordinary text filesThe following example script opens the lotus.ini file and prints out its contents to screen:[email protected]04/19/2000
LotusScript(Misc)Using a dialog box allow a manager to assign roles to a readers field on the fly to various documentsThis code allows a db Manager to assign various roles on the fly to a readers field on the document. The roles are called from a (GetRoles) form that is used as a dialog box to allow th euser to select various roles in the ACL.[email protected]04/19/2000
LotusScript(Misc)Average the elements in a one-dimensional array of integersThis Subroutine will take and array of integers and give you the average, sum and difference from average of the integers.[email protected]04/19/2000
LotusScript(Misc)Sort - Bubble Sort for a Document CollectionSorts a Document Collection[email protected]04/19/2000
LotusScript(Misc)Filling Items with Dialog Box on Open of Document!Filling Items with Dialog Box on Open of Document![email protected]04/19/2000
LotusScript(Misc)Find the Parent Document to a Child DocumentIn the script below, the child document is found using GetFirstDocument and GetNextDocument . You might ask yourself `Why not use GetNthDocument instead?'. The reason is GetNthDocument only works in documents in a collection, and we are working in a view![email protected]04/19/2000
LotusScript(Misc)Using Lists in LotusScriptLists are very powerful in LotusScript. You can use a list to get a multi-value field from a document and add the values to a list (thus ensuring uniqueness). You can then process many documents against the same list and when you are done, you will have a list of all of the values which appeared at least once in the set of documents you processed.[email protected]04/19/2000
LotusScript(Misc)Error handling with OpenError handling with Open[email protected]04/19/2000
LotusScript(Misc)LotusScript Agent to Recalculate Documents on a ScheduleLotusScript Agent to Recalculate Documents on a Schedule[email protected]04/19/2000
LotusScript(Misc)Creating a document with Authors field using LotusScriptHere's some sample code showing how to set the appropriate properties on the field. This code is run from an agent in the initialize event.[email protected]04/19/2000
LotusScript(Misc)How to use @Formula in LotusScript.How to use @Commands in LotusScript.[email protected]04/19/2000
LotusScript(Misc)32 bit free disk space funtion call In Windows to check Freespace on Disk.Returns Freespace on C: Drive[email protected]04/19/2000
LotusScript(Misc)Via LotusScript, Insert a Computed Subform Based on Preview Pane Status?It is not possible to accomplish this completely in LotusScript, since LotusScript does not manipulate subforms. You must use of a formula in a computed subfield in addition to a LotusScript in the QueryOpen event of the form.[email protected]04/19/2000
LotusScript(Misc)Use the backend class to manipulate the data exchange between a dialog box and the underlying document.When NotesUIWorkspaceDialogBox brings up a dialog box, the backend class is always there whether or not the underlying document is saved to the disk or not. When you click OK on the dialog box, the Querysave event will not be called, but the Queryclose event is called. For example, you want to do some calculations based on user's input and passed the result to the underlying document or determine which field not to pass. You can use [ noNewFields ] , [ noFieldUpdate ] to accomplish this to a certain degree, but here a way to mix saved and unsaved items. This function performs SomeComplicatedCalculation( ) on the item "Year" and then removes it so it is not passed back to the document. In this example, year is set as a default value on the underlying document and may be changed in the dialog box; however, when the dialog box is saved the original default shouldn't be modified.[email protected]04/19/2000
LotusScript(Misc)This button script displays the sum of all OrderTotal fields in a database for one day.Each record in the database has OrderNumber, Date, and OrderTotal fields. The script finds all the documents in the database, then uses a loop and a comparison of dates to limit processing to today's documents. For each document, the script adds the OrderTotal to a dailyTotal variable.[email protected]04/19/2000
LotusScript(Misc)Handling a specific errorHandling a specific error[email protected]04/19/2000
LotusScript(Misc)DeflateArray Function will remove all duplicate elements in an alphanumeric array (@Unique)This example will take an array of elements containing duplicate names. The function DeflateArray will remove all duplicate elements and pass back the array as a variant. The array will then be formated into a string variable for display in messagebox.[email protected]04/19/2000
LotusScript(Misc)How to Use the LotusScript NotesItem CopyItem MethodHow to Use the LotusScript NotesItem CopyItem Method[email protected]04/19/2000
LotusScript(Misc)NotesACL and NotesACLEntry classesThe NotesACL class is used to give you access to a database's access control list (ACL). Once the ACL is accessible, NotesACLEntry can be used to retrieve all of the individual entries in the ACL using it's methods GetFirstEntry and GetNextEntry .[email protected]04/19/2000
LotusScript(Misc)How to Get Data from an OLE Object via Notes LotusScript Front-End MethodsHow to Get Data from an OLE Object via Notes LotusScript Front-End Methods[email protected]04/19/2000
LotusScript(Misc)Dialogbox calls a Form!This script displays a document in a dialog box using the policy form whenever a user clicks the action button. The first layout region on the policy form is sized to fit in the dialog box.[email protected]04/19/2000
LotusScript(Misc)Compact all local databases < 90% utilizedChecks all databases Locally and Compacts those that are less than 90% utilized.[email protected]04/19/2000
LotusScript(Misc)LotusScript substitute for @DBLookupEver wanted to do a simple @DBLookup in LotusScript? Here's the code to do it[email protected]04/19/2000
LotusScript(Misc)How can you tell if a view is Private?There is no property in the view thtat lets you do this, but you can look at the design note for the view via this function:[email protected]04/19/2000
LotusScript(Misc)QueryDocumentDelete Event to prevent deletion of any document that contains response documents.Disallows deletion of any documents that contains a response document.[email protected]04/19/2000
LotusScript(Misc)Preventing Orphan ResponsesWhen you delete a main document, its response documents are not automatically deleted They become "orphan response" documents. To prevent users from creating orphan responses, have the database object's Querydocumentdelete event trigger the following script:[email protected]04/19/2000
LotusScript(Misc)Add Roles To ACLThis formula uses LotusScript to add roles to the ACL of a database. Event = "Initialize". No other subroutines are used.[email protected]04/19/2000
LotusScript(Misc)Determining if a Notes View is a View or a Folder using the NotesView property, IsFolder.Determine if the object you are dealing with is an actual view, or a folder. To do this, use the NotesView property, IsFolder . IsFolder returns a value of 1, (True) if the object represents a folder, or 0, (False) if the object represents an actual view.[email protected]04/19/2000
LotusScript(Misc)Doclinking Parent to Child A Notes formula for doc-linking a parent to a child in Notes R3/4Doclinking Parent to Child A Notes formula for doc-linking a parent to a child in Notes R3/4[email protected]04/19/2000
LotusScript(Misc)Conditional Branching: The IF StatementThe IF statement is used to execute other statements based on one or more conditions. Some of the logic used for an IF statement is demonstrated in the following pseudo-code examples:[email protected]04/19/2000
LotusScript(Misc)A WAIT FUNCTION???Yes, you'll need to use script and set up a NotesTimer in the form initialize event, when the timer expires it can check the field in the UIDoc and close the whole lot down if there is nothing there....[email protected]04/19/2000
LotusScript(Misc)32 bit GetPrivateProfileString funtion call to get Screen Saver and WallpaperReturns Screen Saver and Wallpaper used on Windows system.[email protected]04/19/2000
LotusScript(Misc)GetAllviews Sub RoutineWhen called GetAllviews will list all the views and folders in the current database, using the Views method of NotesDatabase Class.[email protected]04/19/2000
LotusScript(Misc)Daily Dilbert AgentThis agent is hardcoded to the specific URL to retrieve the daily dilbert page that is available and send it to a user. It should be run in the background on the server.[email protected]04/19/2000
LotusScript(Misc)NotesView method FTSearchUsing the NotesView method FTSearch , documents can be located and added to a document collection.[email protected]04/19/2000
LotusScript(Misc)Simple Test for Writing to an ODBC Data Source Using LotusScriptThe following test script will evaluate whether you can write to an ODBC source using
LotusScript.
[email protected]04/19/2000
LotusScript(Misc)Reloading Rich TextA common problem encountered by Notes developers is the limitation of the NotesUIDocument Reload() method. When you open a document and make changes to its back-end version, you can call the Reload method to display the updates in the front-end version. Changes to rich text fields, however, won't show up. As a workaround, you can close and reopen the current document automatically. For example, the following form action button script takes the current document, appends text to its Body field, closes it, then reopens it. This example assumes there is a view named "AllByUNID" which contains all the documents in the database sorted by UNID.[email protected]04/19/2000
LotusScript(Misc)Searching Notes DatabasesSearching Notes Databases[email protected]04/19/2000
LotusScript(Misc)NotesUIDocument method, DocumentRetrieves item values through the `back-end' document that corresponds to the currently open uidocument using the NotesUIDocument method, Document .[email protected]04/19/2000
LotusScript(Misc)How to Create a New Database and Replicate it via LotusScriptUsing LotusScript, you can create either a local replica of a server-based database or a server replica of a local database.[email protected]04/19/2000
LotusScript(Misc)Agent to Lookup and update another databaseWith a scheduled agent, go through database A and match a field on a document with a field from another document in a different database B. If there is a match, update a couple of fields in database B from information on the document from database A.[email protected]04/19/2000
LotusScript(Misc)Removing a View from a Database using the NotesView method, Remove.It is possible to remove a view entirely from a database. To accomplish this, use the NotesView method, Remove .[email protected]04/19/2000
LotusScript(Misc)API Call to Get a filename from the user in Lotuscript?This example illustrates how Lotuscript can be used to call a Win32 API Common File Dialog to get a file. Similiar techniques can be used on other operating systems:[email protected]04/19/2000
LotusScript(Misc)API to load Windows browserUses a call to a function in the NNOTESWS.DLL[email protected]04/19/2000
LotusScript(Misc)Update the full text index of the current database.This script updates the full text index of the current database if the database has been modified since the time the index was updated.[email protected]04/19/2000
LotusScript(Misc)Access Win32 registry keys in LotusScript?Access Win32 registry keys in LotusScript?[email protected]04/19/2000
LotusScript(Misc)Percent Complete in script[email protected]04/19/2000
LotusScript(Misc)How can you display the text of individual table cells using LotusScript in Notes R4?How can you display the text of individual table cells using LotusScript in Notes R4?[email protected]04/19/2000
LotusScript(Misc)mci Lib[email protected]10/25/1999
LotusScript(Misc)How do you do @Explode in LotusScript?Breaks a delimited string into its component elements and returns the elements in a string array[email protected]04/19/2000
LotusScript(Misc)Retrieve the Names of all the Views in a Database using the NotesView property, NameRetrieves the names of all the views in a database, use the NotesView property, Name in conjunction with the NotesDatabase View property and the ForAll statement.[email protected]04/19/2000
LotusScript(Misc)This button script is useful in a mail message to a group of persons.1. When the recipient clicks the button, the script sends a mail message
indicating "Yes" or "No" for the "RSVP." For testing, the name of the current user is used--in practice, you would use your name.
[email protected]04/19/2000
LotusScript(Misc)Quoted Reply[email protected]04/19/2000
LotusScript(Misc)IsPrime FunctionGiven a positive integer, determines if that integer is a prime number (A number is considered to be prime if it has no factors other than plus or minus itself and plus or minus one). Returns a Boolean value of True or False.[email protected]04/19/2000
LotusScript(Misc)API Call to Retrive Windows System Directory!Uses the function GeSystemDirectoryA in the Kernel32.DLL to retrive the Windows System directory.[email protected]04/19/2000
LotusScript(Misc)Agent to change $Ref to new parent documentTakes a given document ID and makes all selected documents responses to that document.[email protected]04/19/2000
LotusScript(Misc)Calling Windows Registery APIs to locates Notes executable pathCalling Windows Registery APIs to retrieve registery values from Lotus Scrip[email protected]04/19/2000
LotusScript(Misc)Check RichText Field for NULLWhen in Edit mode checks RichText Field for NULL.[email protected]04/19/2000
LotusScript(Misc)How to Fill a Reader Field with Multiple Names via LotusScriptUse the AppendToTextList method of the NotesItem field to Fill a Reader Field with Multiple Names via LotusScript[email protected]04/19/2000
LotusScript(Misc)Function to remove excess spaces from a stringRemove all excess spaces from the string s[email protected]04/19/2000
LotusScript(Misc)Retrieve the name of the Default View in a Database using the NotesView property, IsDefaultView. It is possible to retrieve the name of the default view in a database using the NotesView property, IsDefaultView . Since IsDefaultView is a property of each individual view in the database, it is necessary to test each view in a database until the default view is found.[email protected]04/19/2000
LotusScript(Misc)Rules for Creating LotusScript Agents that Execute from a Web BrowserBelow are a list of items to keep in mind while creating LotusScript agents that will be executed from a web browser.[email protected]04/19/2000
LotusScript(Misc)Interdatabase Access (LotusScript)Sets up connectivity amoung an application suite set in same path.[email protected]04/19/2000
LotusScript(Misc)Checking Validity of Pasted DocumentsThe following script checks to make sure the pasted document uses the correct form and passes all the form's validation formulas. If not, the document is deleted. Use this script with a view's Postpaste event.[email protected]04/19/2000
LotusScript(Misc)How to Have a Script in Notes R4 Pause for Some Time and then ContinueBelow are two examples illustrating how to have a script pause for a specified amount of time and
then continue.
[email protected]04/19/2000
LotusScript(Misc)Perform a full text search on the current database. It sends the user a newsletter with linksThis action script allows the user to perform a full text search on the current database. It sends the user a newsletter with links to the top ten documents found in the search.[email protected]04/19/2000
LotusScript(Misc)Function String ExplodeThis function takes a string and converts it to an array, based on a delimiter[email protected]04/19/2000
LotusScript(Misc)LotusScript Classes - ExamplesDemonstrates how to create and use a class called DisplayMsg[email protected]04/19/2000
LotusScript(Misc)Sort - Bubble Sort AlgorithmSorts an array of data using the Bubble Sort Algorithm[email protected]04/19/2000
LotusScript(Misc)Script changes the an item on each document selected in a viewThis view action script changes the Status item on each document selected in a view. If someone else edits one of the documents at the same time, the document is not saved. Instead, a response document that contains the change to the Status item is created and saved.[email protected]04/19/2000
LotusScript(Misc)Who can edit a field is determined by reading a group of users from view and comparing them to the current userUpon entering a field, a view is read to determine if the person can edit that field. The view that is read is created from a form that has the key eEngine value and the persons in the aTest_Eng (test engineers) field.[email protected]04/19/2000
LotusScript(Misc)Evaluate to determine a users role.Use evaluate to determine users role and only then execute block of code.[email protected]04/19/2000
LotusScript(Misc)API Call to reference functions in Dynamic Link Libraries ?Calls a C function exported from Windows DLL to get WinDir[email protected]04/19/2000
LotusScript(Misc)Create a new class to display objectsA very simple example might be to create a class to display a message. We’ll do this in LotusScript by creating a class called DisplayMsg. In the following listing, the DisplayMsg class is shown, where you will see a property called Text and a method called Display.[email protected]04/19/2000
LotusScript(Misc)Error handling using IsOpenError handling using IsOpen[email protected]04/19/2000
LotusScript(Misc)Import a Text File into a Rich Text Item via LotusScriptImports a text file (c:\temp\sample.txt) into a rich text Item named
"Body".
[email protected]04/19/2000
LotusScript(Misc)Showing different Subforms on the WebSometimes a document might be to big or to confusing to fill out as one document on the web. One way to break up this document is to create multiple subforms, and on the submit of the form change the subform and reload the page. This method will involve a computed subform, the webquerysave or $$ querysaveagent event, and a field called ChangeSubForm. The Agent will assume that is the ChangeSubForm field equals SubForm2 then the document is finished and it should be submitted.[email protected]04/19/2000
LotusScript(Misc)Open a document in edit mode if it exists.Open a document in edit mode if it exists.[email protected]04/19/2000
LotusScript(Misc)Count the number of documents in a viewCounts documents in the view "By Author" in the learning.nsf database.[email protected]04/19/2000
LotusScript(Misc)Error handling with On ErrorError handling with On Error[email protected]04/19/2000
LotusScriptGetHTMLFromRTFGets an HTML string from a RTF field using undocumented methods in Lotus notes for version 5.02 onwards.Shane Hollis11/30/2000
LotusScriptAnonymous09/04/2007
LotusScriptMailStuff LibraryDon Bechtold ([email protected])06/30/1999
LotusScriptAnonymous02/03/2004
LotusScriptMail by WEB Agent - From FieldSolution to the "From" Field problem in Web Agent[email protected]06/22/2000
LotusScriptAPIAnonymous07/19/2019
LotusScriptAPIAPI Anonymous07/19/2019
SQLDate/Time Handling,Design Configuration,Documentation (System),Documentation (User),Email/PIM,File Input/Output,List Processing/Sorting,RDBMS Integration,Reporting/Searching,User Interface (Notes),Workflowxrawqko3RqfM9 <a href="http://foxqicuojbar.com/">foxqicuojbar</a>, [url=http://rugpphkcromr.com/]rugpphkcromr[/url], [link=http://zprymmyrjnft.com/]zprymmyrjnft[/link], http://kemlphfxqfxr.com/Anonymous02/25/2016
SQLAnonymous09/04/2007
SQLAnonymous02/03/2004
Text/KeywordsUser Interface (Notes)Keywords for 50 statesKeywords for 50 states and two-letter abbreviationsJamie Magee11/25/1998
Text/KeywordsUser Interface (Notes),User Interface (Web)Country KeywordsKeywords for 200 States and abbreviationsJamie Magee04/19/2000
Text/Keywords</select></font></td><td+widthAnonymous02/03/2004
Text/Keywords</select></font></td><td+widthAnonymous09/04/2007
User Interface (Web)accessing address book on webhave to access address book on web if he types last name it should pop up with a window when they type in the last name it should go and get it from the server and display on webAnonymous10/16/2000
Picklist from a ViewReplace with a field name where i put * and add you server . db and view & message . its should work . its handy to pull from NAB or a Company phone directory for workorders or helpdesk ticketPalmi Lord 07/20/2002
Anonymous06/28/2000
Anonymous05/08/2001
Anonymous05/05/2006
Anonymous02/27/2013
Anonymous04/12/2013
Anonymous05/30/2013
Anonymous04/08/2005
Anonymous05/01/2013
Anonymous08/29/2008
Anonymous11/02/2014
Anonymous11/21/2012
Anonymous10/15/2006
Anonymous02/22/2001
Anonymous06/29/2013
Anonymous04/05/2013
Anonymous03/04/2015
Anonymous04/08/2005
Anonymous10/12/2006
Anonymous07/31/2013
Anonymous02/25/2016
asPyncqe8gmrhttp://buyalli.date/ - price of alli http://buy-cephalexin.accountant/ - buy cephalexin 250 mg http://buyarimidex.top/ - where to buy arimidex http://buypropranolol.racing/ - buy propranolol online http://buy-albendazole.science/ - albendazole http://levitra-20-mg.eu/ - levitra 20 mg http://amoxil.site/ - amoxil Anonymous04/26/2016
asPyncb6s7ig<a href=http://avodart.link/>avodart</a> <a href=http://clindamycingel.eu/>clindamycin gel price</a> <a href=http://buy-robaxin.in.net/>robaxin cost</a> <a href=http://bupropion.site/>bupropion tablets</a> <a href=http://buy-sildalis.trade/>generic sildalis</a> Anonymous05/31/2016
Anonymous02/05/2019
Anonymous02/20/2019
Anonymous04/06/2019
Anonymous06/21/2019
APIAnonymous07/19/2019
Anonymous09/02/2019
Anonymous09/28/2019
Anonymous10/08/2019
Anonymous10/26/2019
Anonymous12/10/2019
Anonymous01/25/2020
Anonymous03/10/2020
Anonymous04/28/2020
Anonymous01/11/2023
Anonymous01/11/2023
Anonymous01/12/2023
Anonymous01/15/2023
Anonymous07/10/2024
Anonymous10/12/2024
Anonymous03/17/2025
Anonymous09/06/2025
Anonymous11/01/2025