If you want to search a view for specific field value then you can use SearchView as shown below.
Ex. If you want documents having "Yes" as value for "IsActive" Field then you can use SearchView as given below.
If you want to search a view for specific field value then you can use SearchView as shown below.
Ex. If you want documents having "Yes" as value for "IsActive" Field then you can use SearchView as given below.
The splice() method is used to remove and add new elements to an array.
arrayObject.splice(index,howmany,element1,.....,elementX) |
Parameter | Description |
index | Required. Specify where to add/remove elements. Must be a number |
howmany | Required Specify how many elements should be removed. Must be a number, but can be "0" |
element1 | Optional. Specify a new element to add to the array |
elementX | Optional. Several elements can be added |
In this example we will create an array and add an element to it:
<script type="text/javascript"> var arr = new Array(5); arr[0] = "Jani"; arr[1] = "Hege"; arr[2] = "Stale"; arr[3] = "Kai Jim"; arr[4] = "Borge"; document.write(arr + "<br />"); arr.splice(2,0,"Lene"); document.write(arr + "<br />"); </script> |
The output of the code above will be:
Jani,Hege,Stale,Kai Jim,Borge Jani,Hege,Lene,Stale,Kai Jim,Borge |
In this example we will remove the element at index 2 ("Stale"), and add a new element ("Tove") there instead:
<script type="text/javascript"> var arr = new Array(5); arr[0] = "Jani"; arr[1] = "Hege"; arr[2] = "Stale"; arr[3] = "Kai Jim"; arr[4] = "Borge"; document.write(arr + "<br />"); arr.splice(2,1,"Tove"); document.write(arr); </script> |
The output of the code above will be:
Jani,Hege,Stale,Kai Jim,Borge Jani,Hege,Tove,Kai Jim,Borge |
In this example we will remove three elements starting at index 2 ("Stale"), and add a new element ("Tove") there instead:
<script type="text/javascript"> var arr = new Array(5); arr[0] = "Jani"; arr[1] = "Hege"; arr[2] = "Stale"; arr[3] = "Kai Jim"; arr[4] = "Borge"; document.write(arr + "<br />"); arr.splice(2,3,"Tove"); document.write(arr); </script> |
The output of the code above will be:
Jani,Hege,Stale,Kai Jim,Borge Jani,Hege,Tove |
In case if you have not seen this, have a look at the below link for the large collection of links to videos, demos and community websites around the Notes/Domino marketplace.
Have a look at all the TABS {Welcome, Market Buzz, Resources...}
its really a good resource for education on Notes and Domino.
My IBM Lotus Notes and Domino Buzz Kit <http://www.netvibes.com/tcoustenoble> {http://www2.netvibes.com/tcoustenoble#Developing_extensions <http://www2.netvibes.com/tcoustenoble>}
Also have a look at the
1.) LotusPlanet <http://planetlotus.org/> {<http://planetlotus.org/>}
2.) developerWorks e-kits <http://www-128.ibm.com/developerworks/offers/ekits/?S_TACT=105AGY01&S_CMP=BLOG> : its give you a collection of tutorials, articles, webcasts, podcasts, and demos about a particular product, task, or role.
{ http://www-128.ibm.com/developerworks/offers/ekits/?S_TACT=105AGY01&S_CMP=BLOG#lotus <http://www-128.ibm.com/developerworks/offers/ekits/?S_TACT=105AGY01&S_CMP=BLOG> }
Thanks,
Abhijit.
To view profile document results of latest run-
1. Select the agent and choose Agent - View Profile Results, or select the Web service and choose Design - View Profile Results.
Screen shot for profile document results is shown below:
For more information on the same please have a look at Designer Help Document.
There is one thing you can do. For @DbLookup, for the argument that specifies what column to get the results from, you can code either a column number, or a name. For instance, if column 5 displays the field DateDue, you could write either:
You might have been taught that it's more efficient to use the column number because the value is read directly from the view index, whereas using a fieldname requires accessing the document, which is slower. This is only approximately true. The Designer help actually says, "Lookups based on view columns are more efficient than those based on fields not included in the view." Because DueDate is included in the view -- there's a column that displays that exact value -- the two formulas above are equally efficient. There may be some tiny difference between them, but very small compared to the extra time it takes to "crack open" the document note to read an item value that's not in a column, and I'm not actually even sure which is faster.
So, all right; that's nice. If the above two formulas are equally fast, there are two good reasons to use the second one.
"What!" (you might be saying to yourself) "Columns have names? Does he mean the column title?"
No. I'm referring to the column "programmatic name" which appears on the Advanced tab of the column properties. If the column just refers to a field, it's automatically assigned a programmatic name which is the name of the field. That's why "DueDate" works in the above formula. You're not referring to the field named DueDate in that formula; you're referring to the column by that name. If you write a formula in the column instead of selecting a field, the column is assigned a unique programmatic name of the form $n where n is a number, but you can change it if you like.
Now here's a key point: you can use the column name to specify the data column for your lookup. So if you know a column is called "$4", you can write:
Of course, $4 is not a very descriptive name to appear in your formula. If you want to use the column for lookups, I suggest entering a better name in the column properties.
One other fun thing you can do with column names (if you share my ideas of fun), is use them in the formulas of other columns. This is occasionally useful in avoiding a repetition of some complex calculation.
Below is the article where author has made an attempt to Define notes. Really good one. Plz take some time and read.I have pasted the article as it is authors language.
A confession to start with: I was totally ignorant about the Lotus Notes technology before joining IBM.
But Then Again…
I knew at least something about other technologies like Java, C, RDBMS, SAP, etc. So, why is it that people are ignorant about this powerful collaborative tool called Lotus Notes?
The answer I feel lies in the fact that not very many people actually know what is Lotus Notes. Is it an e-mail system or DBMS or a programming language!!
In the subsequent lines I have made an attempt to express my understanding of Lotus Notes, which is entirely based on my personal rendezvous' with Notes over the last year and a half.
So, what exactly is Lotus Notes?The very popular face of Lotus Notes is that of an e-mail system.
But Then Again…
It's different from Microsoft Exchange as it's (by its native character) a database system with an in built mailing system.
But Then Again…
Its not relational database like Oracle or DB2.But Then Again…It's also got support for several programming languages, and a web server component that enables accessing data from a web browser. It's more like an Exchange, SQL Server, Access and Visual Basic all wrapped together. But it's packaged in a way that we don't see all those separate components individually. That's what makes it such a powerful workflow application.
After the above animated description of Lotus Notes let us make things a bit simpler.
Lotus Notes as an e-mail system:
As I said earlier e-mail is the most recognizable feature of Lotus Notes. Having all traits other popular e-mail products in the market, including calendaring and scheduling, it uses the standards-based mail protocols such as POP3 and SMTP. Because Notes has both a client and a server piece, users can use it to read and respond to e-mail, and administrators can use it as an entire e-mail environment.
The Lotus Notes Client:
The Lotus Notes client is a desktop application displays databases on a user's local workstation allowing the users to organize them as per their need. The database files can be stored either on the user's workstation itself or on a server. The Lotus Notes desktop (often referred as Workspace) consists of tabbed pages with icons for local databases as well as remote databases.
Lotus Notes from a developer's perspective:
I repeat, Lotus Notes is primarily a database system. A generic statement can safely be made "Everything in Notes is a database". Even the e-mail system is realized with individual users having their own e-mail databases.
Besides data, a notes database can also contain modules of programming code that will perform background, scheduled, or on-demand tasks for a user. The data is displayed through the display components like Forms, which are used to create and modify documents while views, navigators and outlines are used to access desired data. And now the most important aspect of a notes database-its security. A Lotus Notes database is highly secured and the security is realized with minimal effort. The security in a Notes database is incorporated using ACL (Access Control List). The ACL of a Notes database defines what level of access a user has. Typical access levels are Depositor, Reader, Author, Editor, Designer and Manager. Besides the ACL (which defines the database level security) there are provisions for document level security too through the Readers and the Authors fields. In a nut shell Lotus Notes can be considered a complete package for a rapid development of applications. With security features second to none, this product of IBM which had its first release in 1989 is leading software for office automation i.e. realizing the concept of paperless office. The article explains Lotus Notes in its different manifestations….
But Then Again….
I assume I know only a third of Lotus Notes.