Thursday, December 15, 2011

Difference between @IsAvailable and @IsUnavailable
@IsAvailable - Checks a document for the existence of a field name.
@IsUnavailable- Indicates whether a field name exists in a document.

How do u get server name through function?
@Subset(@DbName; 1);@servername

@DbColumn and @dblookup
@DbColumn: Returns a column of values from a view or folder in a Domino database.
@dblookup: returns either the field contents of a document from a specified column in the view, or the contents of a specified field for document.

What is the difference between replication conflict and save conflict?
Replication conflicts
A replication conflict occurs when two or more users edit the same document and save the changes in different replicas between replications.

Save conflicts
A save conflict occurs when two or more users open and edit the same document at the same time on the same server, even if they're editing different fields. When this situation occurs, the first document saved becomes the main document. Before the second document is saved, a dialog box indicates that the user is about to save a conflict document and if the user saves the document, it becomes a Replication or Save Conflict document.

What about LS:Do?
Ans:Lotus script Data object
The ODBCConnection, ODBCQuery, and ODBCResultSet classes, collectively called the LotusScript Data Object (LS:DO), provide properties and methods for accessing and updating tables in external databases through the ODBC (Open Database Connectivity).
How do you get handle for a field on web?
Using documentcontext of notes session class. In case if it is for field validation using JavaScript.

What is Query String CGI variable?
The information that follows the question mark (?) in the URL that referenced this script. Note If your Domino server is configured to allow search engines to search your Web site Domino will generate URLs with an exclamation mark (!) instead of a question mark (?). If this is the case the Query String CGI variable includes the information that follows the exclamation mark (!). Domino always recognizes both the question mark (?) and the exclamation mark (!), but only generates URLs with the exclamation mark (!) if your site is accessible to Web search engines. Generating URLs with an exclamation mark (!) makes them more searchable.

When do we get subscript out of range error?
When accessing an array, either the number of subscripts does not match the given array's defined dimensions, or the size of one or more subscripts does not match the given array's bounds.

Difference between @Replace and @Replacesubstring?
@Replace:
Performs a find-and-replace operation on a text list.
@Replacesubstring:
Replaces specific words or phrases in a string with new words or phrases that you specify. Case sensitive. Return value is text list in both cases.

How do you replace a value in a list?
Using @Replacesubstring