359 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
Latest 7 Posts
Overloading functions in Lotusscript
Fri, Apr 20th 2012 176
Microsoft Outlook Collection of Constants
Tue, Feb 21st 2012 136
A sample Calendar file
Tue, Feb 21st 2012 152
Bugs: "Element or Navigator is invalid" error when using NotesRichTextNavigator
Tue, Jan 3rd 2012 166
A way to handle "Element or Navigator is invalid" error when using NotesRichTextNavigator
Tue, Jan 3rd 2012 186
Connecting Oracle through Eclipse
Sat, Nov 12th 2011 117
JDBC Driver URL Format for connection with Oracle
Sat, Nov 12th 2011 97
Top 10
Lotusscript code to add attachment to a richtext field
Wed, Dec 1st 2010 212
Lotusscript code to append hotspot to a richtext field
Tue, Nov 23rd 2010 198
A way to handle "Element or Navigator is invalid" error when using NotesRichTextNavigator
Tue, Jan 3rd 2012 186
Overloading functions in Lotusscript
Fri, Apr 20th 2012 176
Open Xpage from a Notes Form or View on Notes Client 8.5.1
Tue, Nov 2nd 2010 168
Bugs: "Element or Navigator is invalid" error when using NotesRichTextNavigator
Tue, Jan 3rd 2012 166
Export view contents to excel using LotusScript on web
Tue, Jan 4th 2011 165
A sample Calendar file
Tue, Feb 21st 2012 152
How to get the current node/leaf selected in a NestedList - Sencha Touch Framework
Fri, Feb 4th 2011 149
Get Current URL in XPage
Wed, Jan 5th 2011 147

Karthikeyan A
Blog Title ozinisle
Blog Description Techno Details Furnished - Whatever that means!!!
Blog URL http://ozinisle.blogspot.com/
RSS Feed http://ozinisle.blogspot.com/feeds/posts/default?alt=rss
PlanetLotus Feed http://planetlotus.org/profiles/rss/a-karthikeyan
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Oct 31, 2014 11:15:46 AM EST. Realtime Update:
Landed Here Sep 17, 2010
Location Chennai, Tamil Nadu, India
Posts: # / 1st / Latest - -
Total Hits 7,773. myPL RSS Selections: 33

Recent Blog Posts

Overloading functions in Lotusscript
Fri, Apr 20th 2012 6:10a   Karthikeyan A
At times I find it difficult with out the ability to over load functions in lotusscript. The following way just helped me do it. Since I dont do this often its like new to me every time I do this :) Sub new(key As Variant)      Select Case Typename(key)      Case "STRING":            your code for this type      Case "INTEGER"           your code for this type      Case "NOTESDOCUMENT" [read] Keywords: lotusscript notes

Microsoft Outlook Collection of Constants
Tue, Feb 21st 2012 7:10a   Karthikeyan A
Ever seen a vb code which says something like "Set MyItem = MyOlApp.CreateItem(olAppointmentItem)" or "MyRequiredAttendee.Type = olRequired" and had a tough time figuring out what those constants stating with ol stand for when implementing them in your technology. I had my share of head ache to find the nice simple solution for it http://msdn.microsoft.com/en-us/library/aa210886(v=office.11). [read] Keywords: microsoft office outlook

A sample Calendar file
Tue, Feb 21st 2012 7:10a   Karthikeyan A
Following is a content of a fully functional calendar file BEGIN:VCALENDAR METHOD:PUBLISH VERSION:2.0 PRODID:-//ORG//LN//LS BEGIN:VEVENT SUMMARY:My Subject! DESCRIPTION:My Description content UID:D70C88D5-E5A1-48EC-84A4-D05DBD5CD8F6-99 DTSTART:20120218T160000 DTEND:20120218T163000 LOCATION:My Location END:VEVENT END:VCALENDAR This is a really nice concept that I liked very much. If you search [read] Keywords: microsoft outlook

Bugs: "Element or Navigator is invalid" error when using NotesRichTextNavigator
Tue, Jan 3rd 2012 5:09a   Karthikeyan A
[read] Keywords:

A way to handle "Element or Navigator is invalid" error when using NotesRichTextNavigator
Tue, Jan 3rd 2012 5:09a   Karthikeyan A
[read] Keywords:

Connecting Oracle through Eclipse
Sat, Nov 12th 2011 9:11a   Karthikeyan A
[read] Keywords: eclipse oracle

JDBC Driver URL Format for connection with Oracle
Sat, Nov 12th 2011 9:11a   Karthikeyan A
[read] Keywords: oracle

Interceptors with Struts 2
Wed, Nov 9th 2011 8:11a   Karthikeyan A
[read] Keywords:

Configuring Struts.xml for Interceptors
Thu, Nov 3rd 2011 8:11a   Karthikeyan A
Well learning curve is quite breath taking with java technologies. I got curious about the interceptors feature in Struts 2 and eventually I ended up trying to sample them out for my reference and understanding. I am not yet successful on it, but at least I have had some progress on the same.   The first wall I had to jump over was that whenever I added the interceptors tag in struts.xml, I was [read] Keywords: java xml


Hello world – Struts 2
Mon, Oct 31st 2011 4:53a   Karthikeyan A
@font-face { font-family: Wingdings; } @font-face { font-family: Cambria Math; } @font-face { font-family: Calibri; } @font-face { font-family: Tahoma; } @page Section1 {margin: 1.0in 1.0in 1.0in 1.0in; } P.MsoNormal { LINE-HEIGHT: 115%; MARGIN: 0in 0in 10pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt } LI.MsoNormal { LINE-HEIGHT: 115%; MARGIN: 0in 0in 10pt; FONT-FAMILY: " [read] Keywords:

Installing a IIS Server in Windows 2007
Tue, Oct 18th 2011 10:10a   Karthikeyan A
This helps you work with inbuilt server in windows that helps you work with asp pages etc 1. Open the control panel and click on the “Unistall a program” option. Now choose “Turn Windows Feature on or off” as illustrated by the following image 2. Now from the list of windows services that popup select “Internet Information Services” and don’t bother about the sub services that are selected or [read] Keywords: server

Can a field name exceed 32 characters
Tue, Sep 27th 2011 6:09a   Karthikeyan A
Well It just happened on the go. I know the name of a field cant be bigger that 32 characters in lenght. I got a bit curious to see if I can break it. But the designer did not allow me to do it. So as always 2 over come this I had my step2 - the Lotus Script. I just created a document Item whose name is 52 characters in length. And yes it can exceed. But I havent tested its limits yet. Following [read] Keywords: lotus notes

Force UNID on a new document - UNID Hack
Wed, Aug 3rd 2011 6:14a   Karthikeyan A
Recently I happened to do some thing that required me to force unid on a newly created document. The use cases that I could think about for this kind of scenario are very use ful. Say for example deleting a document by accident may lead to orphan response documents if not taken care of. And if you want to bring them back on association and not screw up things we can use this little tip. The use [read] Keywords: notes

Regular expression to remove all numbers from a string
Wed, Jul 27th 2011 6:10a   Karthikeyan A
This is in continuation to my previous post where I posted the code to remove characters that are not digits. This case is vice versa. var pattern=/d/g; var myString="80AlphaDog55"; alert(myString.replace(pattern,"")); The result is AlphaDog hope this helps :) [read] Keywords:

Regular expression to remove all alphabets in a string
Wed, Jul 27th 2011 6:10a   Karthikeyan A
Regular expressions are very handly when it comes to working with patterns. In my case working with patterns in javascript. It saves me pile of code that needs to be written in javascript to do pattern based validations. Following is a simple line of code that helps me to replace all the non digit characters from a string var pattern=/D/g var myStr="80Alpha5Dog5" alert(myStr.replace(pattern,"" [read] Keywords: javascript

"Automation server can't create object" - Occuring with "ActiveXObject('Word.Application')"
Thu, Jul 14th 2011 7:14a   Karthikeyan A
This specific error occurs when your browser does not support ActiveXObjects or it does support ActiveX but the security features configured does not allow it to proceed. Hence to fix this issue ActiveX controls must be allowed in the browser Go to Tools -> Internet Options -> Security -> Custom Level and make the following changes under the ActiveX Controls and plug-ins section 1. Enable [read] Keywords: application security server

Try catch doesnot catch ActiveXObject errors
Thu, Jul 14th 2011 7:14a   Karthikeyan A
I had been thinking about making a post on this for a very long time. Unfortunately for some reason , I kept forgetting about it from time to time. And at last I have even forgot that I faced such an issue in the past until recently. As per my understanding errors that occur due to automation object creation failures when attempting to create ActiveX Objects can't be handled by try catch block. [read] Keywords:

Regular Expression to filter HTML Tags
Thu, Jul 7th 2011 6:14a   Karthikeyan A
Following is a simple way by which one can filter out the html tags say from ajax responses etc… normalString=htmlString.replace(/]+(> $)/g, ""); inorder to filter out carriage returns one can use String. replace(/n/g, ""); [read] Keywords: ajax javascript

AJAX Post Request in Lotus Notes
Thu, Jul 7th 2011 6:14a   Karthikeyan A
Following is a short abstract of how you can create AJAX POST request. One can always find a way to create an XMLHTTPREQUEST and many cross browser solutions are available across the internet. eg w3schools. So if leave the function call in the very first line for you to code. var mypostrequest=new ajaxRequest() //handle the response mypostrequest.onreadystatechange=function(){ if ( [read] Keywords: lotus notes ajax

Eclipse Plugin for Tomcat Server with Hello World
Thu, Jun 30th 2011 1:17p   Karthikeyan A
The following site seems to be a good source for downloading and installing a Tomcat Server plugin for Eclipse. http://www.eclipsetotale.com/tomcatPlugin.htmlAll you got to do is download this plugin and proceed with the following procedure to install themThis plugin does not contain Tomcat. (Download and install Tomcat before using this [read] Keywords: eclipse server

Illustration of Wiring Concept in Composite Applications – Lotus Notes 8.5.2
Wed, Jun 29th 2011 1:14p   Karthikeyan A
Let the pictures talk [read] Keywords: lotus notes applications

Using Notes Outline for navigation in composite application
Wed, Jun 29th 2011 1:14p   Karthikeyan A
1.    Create a new composite application 2.    Create a new outline with the specifications as illustrated by the image   3.    Now embed the out line into a page and name it as the “Main Page” as illustrated in the following image 4.    Now Open up the Composite Application Editor (CAE). And open up the Page Navigator properties as illustrated in the following image 5.    Now ensure that the [read] Keywords: notes application properties

Understanding the CAI URL
Wed, Jun 29th 2011 1:14p   Karthikeyan A
CAI stands for “Computer Assisted (or-Aided) Instruction”. CAI URLs are special URLs that are used in Composite applications to launch an application or to switch between a pages with in or across composite applications. The CAI URL is broken into several parts, most of which are optional in many cases. SYNTAX  cai://[GUID]/[Page Id]?[pagealias][hint] Where, [GUID] - the optional GUID for the [read] Keywords: notes application applications

GUID of a Composite application
Wed, Jun 29th 2011 1:14p   Karthikeyan A
GUID stands for Global Unique Identifier. Hope the title makes sense now. This section will simply help you understand how you can get the GUID of a composite application. In the following screen shot of a composite application, I have an action button which upon clicking gets me the GUID if the application.   This is possible when you code the button with a formula as follows   So the trick [read] Keywords: notes application

Starting a Tomcat server
Tue, Jun 21st 2011 1:14p   Karthikeyan A
Recently I downloaded apache-tomcat-7.0.14-windows-x86 and had a few issues starting up the server.I attempted to start the server using the “startup.bat” present in the “tomcatbin” folder and was facing issues that kept bombarding errors like,The CATALINA_HOME environment variable is not defined correctlyThis environment variable is needed to run this program This issue was rectified when I [read] Keywords: server

Is 0.1+0.2==0.3
Thu, Jun 16th 2011 1:10p   Karthikeyan A
Recently a friend of mine brought it up. Try the following in Javascript and to my amusement the answer is false. What are our computers doing... funny :). Probably the compilers fault. javascript:var a=0.1;var b=0.2; alert(a+b==0.3). This one is anologous to the other one posted in http://ozinisle.blogspot.com/2010/05/what-is-20-11-any-idea.html Hope you enjoyed :) [read] Keywords: javascript

Working with HTTP POST in Lotus Notes
Fri, Jun 3rd 2011 7:54a   Karthikeyan A
Create a form design element as illustrated in the following image. Note the usage of the action parameter that has been added as an attribute to the form tag. The page gets redirected to the url mentioned  as the action attribute when document submit Is triggered. The trick here is to key in your agent url which will enable execution of that agent from the server Now write an agent with the [read] Keywords: agent lotus notes server

Open about database document on the browser
Fri, Jun 3rd 2011 7:48a   Karthikeyan A
The following url can be used to open the about database page of a Lotus Notes Database http://servername/dbpath/$about?openAbout How ever the following seems to work as well, (tested in chrome) http://servername/dbpath/$about http://servername/dbpath?openAbout hope this helps :) [read] Keywords: lotus notes database

Get Foldernames on the web
Thu, Jun 2nd 2011 1:02a   Karthikeyan A
[read] Keywords: lotus

Examples using @DBCommand – A simple way to navigate between pages in an Embedded View
Thu, Jun 2nd 2011 1:00a   Karthikeyan A
1.       Create a form  and add an embedded view to the same 2.       Now add a couple of buttons namely “” 3.         Now add the following commands to  these functions respectively,a.        @DbCommand( "Domino" ; "ViewPreviousPage" )b.       @DbCommand( "Domino" ; "ViewNextPage" )4.       Now preview the form on the browser and try playing with these buttons. you will be [read] Keywords: domino lotus

Using Data Tables in XPages
Wed, Jun 1st 2011 3:03a   Karthikeyan A
It took me quite some time to understand the way controls inside a datatable get bound to the datasources. It was a kind of trick that we would use with repeat controls that helped me do this. 1.Create a view with a few sample documents as shown below. 2.Now create an XPage that anddrag and drop a control on to it as shown below. Ofcourse add the computed texts and lables as shown in the image [read] Keywords: lotus xpages

The Environment in Win32 Shell Scripting
Mon, May 30th 2011 6:57a   Karthikeyan A
The environment is an area of memory associated with the command processor that provides upto 32KB of space for storing variables, the variables contain information about the operating environment that is used by the operating system and other programs in various ways, typically to inform a program of the location of a certain piece of information it requires. A few examples follow: • ComSpec, [read] Keywords:

Laws of Software - Inspired by Haccked
Mon, May 30th 2011 6:41a   Karthikeyan A
This is regarding a recent study I made regarding the laws of Software. During my R&D I stumbled upon a site which said there are 19 Eponymous laws of Software in the url http://haacked.com/archive/2007/07/17/the-eponymous-laws-of-software-development.aspx.  This is really a good piece of work and the comments on the post also contain a lot of information. Following is a jest of what the author [read] Keywords: archive development

Firebug for IE
Fri, Apr 1st 2011 12:51a   Karthikeyan A
Developing applications to work on IE is such a pain. I always had to do a lot of tricks to debug my code in IE. Firebug in Firefox helped me perform a great deal of debugging, but the ons specific to IE- they where always a problem untill I found a reasonable debugging tool for it. Its none other that the Firebug itself. It seems to be compatible with IE but not as extensive as the one in [read] Keywords: applications firefox

Lotus Script Function to extract all attachements from a Notes Document
Fri, Mar 25th 2011 5:26a   Karthikeyan A
Function ExtractFiles (doc As NotesDocument , filePath As String , extract As Boolean) As String 'handle errors in case of abrupt termination     On Error Goto errorHandler       'declare all the objects and variables necessary for further manipulation     Dim rtitem As NotesRichTextItem         Dim allFileName As String     Dim attname As String     Dim path As String         Dim dirCreated [read] Keywords: lotus notes

Implementing JQuery in XPages
Thu, Mar 24th 2011 7:51a   Karthikeyan A
In an attempt to implement jQuery in xpages, I just wanted to know if XPages work with jQuery. And I understood that it is possible and the following method helped me make it work First, include the following script library to your XPage http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js Then try using some jquery function on it and see it working. The following is an example that I got [read] Keywords: script library xpages ajax

Crash a Domino Server - an other SSJS did it
Wed, Mar 23rd 2011 4:14a   Karthikeyan A
In addtion to what I have found previously - http://ozinisle.blogspot.com/2011/03/crash-domino-server-oops-ssjs-did-it.html, I happened to stumble upon an other code fragment that did it. I mean crashing my domino server. This time its a more serious one to be aware of. Because the following line of code works perfectly until it breaks. So be care full. viewHandle.getColumnValues(colNumber) [read] Keywords: domino lotus server

@DbColumn - An other way in SSJS
Wed, Mar 16th 2011 8:03a   Karthikeyan A
In addition to my recent adventure on crashing a domino server, the following work around helped me fix the issue and it seems to be an elagant way to get the column values from a view column var viewHandle:NotesView=database.getView(viewName) return viewHandle.getColumnValues(colNumber-1) [read] Keywords: domino lotus database server

Crash a Domino Server - oops SSJS did it
Wed, Mar 16th 2011 7:46a   Karthikeyan A
In an attempt to simulate @DbColumn using SSJS, i used a few lines of code which included the following, doc.getColumnValues(); To my astonishment, I found that my domino server had crashed. Yes the server it self had crashed every time it read this code fragment. I have coded a few lines in the past that crashed Lotus notes client/designer, but never had the opportunity to crash a server. [read] Keywords: domino lotus notes notes client server

Execute Client Scripts in the After Page Load event of XPage
Mon, Mar 14th 2011 4:13a   Karthikeyan A
 In order to execute client side scripts in the after page load events of an XPage, one must use dojo to accomplish it. I think I know an other way to do this, but the one posted below seems simple and effective to me. All you got to do is add the following to your XPage and test it for your self      dojo.addOnLoad(yourJavascriptFunction) function myAfterPageLoadFunction() { alert("My [read] Keywords: xpages dojo

Triggering Client script from server side : Xpages
Wed, Mar 9th 2011 4:22a   Karthikeyan A
Triggering client script from server side on XPages saves developers in many scenarios. I missed them so badly until I came to know about the "xp:onComplete" tag. Associate this property to the event handler of any of the controls with partial refresh enabled and voila you are ready to go. The following is a simple example on getting the property to work in xpages. Ensure that the control [read] Keywords: xpages server

Handling "java.lang.OutOfMemoryError" - notes.ini Keyword: JavaMaxHeapSize
Wed, Mar 9th 2011 12:10a   Karthikeyan A
Syntax: JavaMaxHeapSize=number of bytes Example: JavaMaxHeapSize=67108864 Default value: 67108864 (64mb) Description: Specifies the maximum--not initial--size the Java heap can reach. The Java Virtual Machine (JVM) starts out at 16MB of heap space and most of it is uncommitted. If the JVM needs more heap than it currently has, it will expand the heap in increments but will not exceed the [read] Keywords: notes java

Empty Contents of an IFrame - Javascript
Wed, Mar 9th 2011 12:09a   Karthikeyan A
Following is one effective way that can help one to empty the contents of an iFrame. window.frames['iFrameID'].location.href="about:blank"; Following are a few other methods that might work, window.frames[['iFrameID'].location.href=" "; window.frames[['iFrameID'].location.reload(); window.frames[['iFrameID'].document.close(); window.frames[['iFrameID'].document.body.innerHtml=""; hope this [read] Keywords: javascript

Cool Maths with your age :)
Thu, Mar 3rd 2011 9:52p   Karthikeyan A
I got the following in a mail. I like it a lot. simply amazing :) MATHS MAGIC…………..Open your calculator and Calculate:13837 X your age x 73 = ?Just try itYOU will get an Interesting answer [read] Keywords:

Accessing parent from an iFrame
Tue, Mar 1st 2011 2:42a   Karthikeyan A
Accessing a the parent page which contains an iframe from with in the iFrame is as follows, var parentDOMDoc=parent.document again, access restrictions are applicable here i.e if the IFrame's document are not in the same domain as the parent frame, then you may be denied access to it's contents due to security features of most browsers. [read] Keywords: security

Accessing iframe contents using javascript
Tue, Mar 1st 2011 2:26a   Karthikeyan A
The following is a way to access the contents of an IFrame. var ifrm = document.frames["myIFrame"].document.forms[0] This should return the form element associated with the iframe. In most cases where the above code fails try using window.frames instead of document.frames and that would work. On top of this if the IFrame's document is not in the same domain as the parent frame, then you may be [read] Keywords: javascript

how to repeat triggering a javascript function automatically
Mon, Feb 28th 2011 5:09a   Karthikeyan A
The setInterval function in javascript helps the browser to execute a javascript function repeatedly over a time period and its syntax is as follows setInterval( myFunction, noOfSeconds*1000) , where setInterval is the name of the native javascript function myFunction is the name of your custom function that needs to be triggered repeatedly noOfSeconds is the time gap in number of seconds after [read] Keywords: javascript

Issue : dojo.xhrGet fails in Safari
Tue, Feb 22nd 2011 10:27p   Karthikeyan A
It was one trouble some situation when I found that my dojo.xhrGet failed in Safari. I felt like I was hanging in a cliff 500 feet deep. with no way back :( untill I stumbled upon the following forum discussion, http://www.devcomments.com/cross-site-ajax-using-dojo-xhrGet-doesn-t-work-as-expected-but-at200443.htm An amazing one. The first few posts are not visible for some reason but the vital [read] Keywords: notes ajax dojo

An elegant way to get the current time (say a time stamp) in Lotus Script
Wed, Feb 9th 2011 10:13p   Karthikeyan A
The following lotusscript command gives a very good way of obtaining a the current time alone. Format(Now, "Long Time") hope this helps :) [read] Keywords: lotus lotusscript notes

agent.runWithDocumentContext(NotesDocument) not working in XPages
Wed, Feb 9th 2011 6:17a   Karthikeyan A
If you attempt to execute a Lotus Script agent from the server side script in the XPages and get the following error, There are few issues that you may have to look into, 1. Sign the agent, XPage and the associated elements. Better sign the database with the server id. 2. Ensure that you have sufficient access to execute agents 3. Ensure the "Run as Web User" and "Allow Restricted Operation" are [read] Keywords: agent lotus xpages database server

How to capture orientation change event using Sencha Touch
Fri, Feb 4th 2011 7:17a   Karthikeyan A
One of the classy/awesome feature of an iPad, is the way the screen changes resolution/orientation as and when you rotate the iPad physically. The pages that you see on the screen switches between landscape to portrait mode just like that in a nice smooth continuous fashion. Hence it becomes important for a iPad application developer to ensure that the page we develop for the iPads, looks good [read] Keywords: application mobile

iPad Detection Using JavaScript
Fri, Feb 4th 2011 5:17a   Karthikeyan A
Following fragment of code helps in detecting whether an application is being previewed in a iPad or a normal web client. // For use within normal web clients  var isiPad = navigator.userAgent.match(/iPad/i) != null; // For use within iPad developer UIWebView var ua = navigator.userAgent; var isiPad = /iPad/i.test(ua) || /iPhone OS 3_1_2/i.test(ua) || /iPhone OS 3_2_2/i.test(ua) For more info [read] Keywords: application iphone javascript mobile

How to get the current node/leaf selected in a NestedList - Sencha Touch Framework
Fri, Feb 4th 2011 5:17a   Karthikeyan A
The following code fragment will help you alert the text that is present in the leaf/node of  a nested list which is being clicked. The nested list one which is created using sencha framework activeListItem = yourNestedList .getActiveItem(), associatedRecord = activeListItem t.getSelectedRecords()[0]; alert( record.get('text')) Hope this helps :) [read] Keywords: application mobile

OnClick event for list items in NestedList - Sencha Touch Framework
Fri, Feb 4th 2011 5:17a   Karthikeyan A
Following is a fragment of code that builds a plugin to listen to the click events on the leaf/list items in a NestedList created using the Sencha Touch Framework. This is already present in the Kitchen Sink example provided in the Sencha Touch's Site ---------------------------Block A--------------------------- /** * @class Ext.LeafSelectedPlugin * @extends Object * * A simple plugin for a [read] Keywords: xpages application mobile

Xpages - How to dynamically add client side script library? (xp:headTag)
Mon, Jan 31st 2011 5:14a   Karthikeyan A
The following is a way using which u can include client side javascript libraries into xpages in a dynamic fashion. Yes it lets you compute javascript library's URL in the XPage. Note the usage of the scoped variables along with custom text in constructing the url of the script library [read] Keywords: lotus script library xpages javascript

How To Add Style Sheet URL Dynamically To XPages? (xp:headTag)
Mon, Jan 31st 2011 5:14a   Karthikeyan A
The following is a way using which u can include style sheets into xpages in a dynamic fashion. Yes it lets you compute style sheet URL in the XPage. Note the usage of the scoped variables along with custom text in constructing the url of the style sheet             [read] Keywords: lotus xpages

View All Design Elements in a Lotus Notes Database in a Single View ($FormulaClass)
Thu, Jan 27th 2011 5:21a   Karthikeyan A
The design properties of View Consist of a item named "$FormulaClass". It is the value on this item that decides the boundaries on what a view can display. By Default the value on this is "1". And this means a lotus notes view with "$FormulaClass" item set to 1 can display only documents present in a database, which is again governed by the view's selection formula. But when we change this [read] Keywords: lotus notes database properties

Filter HTML/XML tags from a text
Wed, Jan 26th 2011 11:20p   Karthikeyan A
function filterHtmlTags(source) { var result=source.replace(/(]+)>)/ig,""); result=trim(result, "n"); return result; } //function to trim of leading and trailing spaces function trim(str, chars) { return ltrim(rtrim(str, chars), chars); } //function to trim of white spaces on the left function ltrim(str, chars) { chars = chars || "\s"; return str.replace(new RegExp("^[" + chars + "]+" [read] Keywords: xml

Sencha Touch
Thu, Jan 20th 2011 6:13a   Karthikeyan A
The Sencha Touch API is pretty amazing and is awesome. As far as I have seen it helps you with application developement for mobile/IPad and works well in Safari and webkit. Google Chrome too...:) But it did not work with IE/Firefox.... Go through the video and I am sure you will thirst for more.... Sencha Touch - Intro to Layouts from Sencha on Vimeo. The following site contains more such [read] Keywords: application firefox google mobile

Decode Html Using Javascipt - decodeHTML()
Thu, Jan 20th 2011 6:13a   Karthikeyan A
The following function helps you replace most of the html equivalents of the special strings like &,"..etc to their original form. I hope it covers all of them, but i am not sure... And yes there is a more elegant way to do this. But I thought it might be useful for to give an idea to people who are looking out for this. function decodeHTML(str) { /* *   @Param : str - your native html string [read] Keywords: javascript

Triggering lotus script agents and obtaining their response on the XPage using Server side javascript - An XMLHTTPRequest equivalent
Tue, Jan 11th 2011 5:15a   Karthikeyan A
Triggering agents from server side javascript in XPages is easy. How ever obtaining the response from the agents once the lotus script agent completes execution and displaying the same on the xpage was always a challenge to me. The following is a way helped me achieve it, /***************************************************/ importPackage(java.net); importPackage(java.io); //create a url object [read] Keywords: agent lotus xpages java javascript server

Triggering lotus script agents and obtaining their response on the XPage using Client side javascript - An XMLHTTPRequest equivalent in Dojo
Tue, Jan 11th 2011 5:15a   Karthikeyan A
The traditional way through which we perform AJAX calls to lotusscript agents to obtain responses kept failing for me in XPages. I kept wondering why I was not able to get back any response from the agents. The following dojo method though different, helped me accomplish the same, /***************************************************/       dojo.xhrGet( { //          url: "The url of your [read] Keywords: lotus lotusscript xpages ajax dojo javascript

Importing Java Packages in server-side-script in XPages
Tue, Jan 11th 2011 5:15a   Karthikeyan A
In an attempt to use methods in java directly in XPages, I used to try the traditional import methods which would say, import java.io.*;  to import the IO.* package in Java and that will always return an error. I was wondering how to do these stuffs untill I stumbled upon a http://www.stevecastledine.com/sc.nsf/dx/using-standard-java-packages-in-your-xpage-code"> post in Steve Castledine's Blog [read] Keywords: xpages java server

getWebDBName in XPages (@WebDBName in XPages)
Mon, Jan 10th 2011 5:15a   Karthikeyan A
The following is a function that helps u obtain the web db name of a database in xpages (@WebDBName) function getWebDBName() { var arg=@Trim(arguments[0]); var webDBName=""; if (typeof arg!="undefined"){ webDBName=@ReplaceSubstring(arg,"\","/"); return webDBName; } var dbPath=@DbName()[1]; webDBName=@ReplaceSubstring(dbPath,"\","/"); return webDBName; } The following are the [read] Keywords: lotus xpages database

Getting Key Strokes on XPages (eg. Enter Key Press)
Fri, Jan 7th 2011 5:18a   Karthikeyan A
Most javascript resources on the web said some thing similar to the following to capture key strokes. var key;if(window.event) key=window.event.keyCode;else key=thisEvent.which //for firefox explicitly on XPages But the same failed in case of XPages in Firefox and I was puzzled After a long try I found the following fix which worked for client, web-IE/Firefox/Chrome. The trick is bolded in the [read] Keywords: xpages firefox javascript

Get Current URL in XPage
Wed, Jan 5th 2011 1:18p   Karthikeyan A
In traditional Web Application it is kind of simple to get the current url using location.href. In case of XPages the following is the method to get the current url in XPages context.getUrl().toString(); Hope this helps :) [read] Keywords: lotus xpages application

Export view contents to excel using LotusScript on web
Tue, Jan 4th 2011 5:17a   Karthikeyan A
The following stuff was obtained from "http://www.botstation.com/code/view2excelweb.php". This proved to be very useful to me... Saved a lot of time ofcourse. A Nice Tool This LotusScript agent exports all documents from a Domino view to Excel. It can be triggered from web browser so the user can immediately see the results in his Excel application. User can specify what view he wants to [read] Keywords: agent domino lotusscript notes application

Handling "timeout exceeded" error in an XPage with an Ajax partial page refresh
Tue, Jan 4th 2011 5:17a   Karthikeyan A
XSP.submitLatency is a property associated with the XPage which governs the amount of time a pratial refresh can take in XPages. Exceeding which you get the "timeout exceeded" error asking you to refresh the entire page or cancel. One of the most irritating errors that I have encountered in xpages. I even felt helpless against these errors in many cases :( Thank god i found this in the 8.5 [read] Keywords: lotus xpages ajax

TypeAHeadComboBox for XPages
Fri, Dec 31st 2010 4:18a   Karthikeyan A
We have typeahead edit boxes and combo boxes in the XPages. I wanted the functionalities of both of them in the a single edit box control for a long time now. Hence I worked on the same and developed a handy custom control that will help me do the same.Though not reusable as such, requires the users to merely specify a few parameters to function properly. It would look like the following once [read] Keywords: lotus xpages

Grouping Radio Buttons inside Repeat Control in XPages
Wed, Dec 29th 2010 4:18a   Karthikeyan A
When you put a Radio button inside a repeat control in XPages and give it a group name as follows, we explicitly assume that the radio buttons that get created as a result of the repeat control share the same  group name and behave in a the expected way. Ofcourse there is nothing wrong in expecting that. But its just that we miss a few points that are associated with the way XPages render them- [read] Keywords: lotus xpages

Issues with document.getElementById in xpages
Wed, Dec 22nd 2010 4:24a   Karthikeyan A
This is one of the most irritating issues that I encountered in XPages. Again XPages are not the ones to be blamed, it was me- did not understand how the elements got rendered on the browser. The issue in short is that I was not able to retrieve or set value to an Edit box on an XPage using client script Say my field name on the XPage is "XPageEditBox" now, document.getElementById("#{id: [read] Keywords: lotus xpages

Controlling preview of views on the browser - $$ViewTemplateDefault
Fri, Dec 17th 2010 4:16a   Karthikeyan A
Though this has always been known, A few of my colleagues needed info on this. So just thought of sharing the same. Hope this helps some one who is looking for this :) Create a form named "$$ViewTemplateDefault"  and key in a few text info as follows Now when a view from the database is previewed this is how the following is a sample illustration of how they look on the client and the browser On [read] Keywords: database

Array Base Index and Base in Lotusscript (Option Base 0|1)
Thu, Dec 16th 2010 10:15a   Karthikeyan A
I happened to stumble upon the base index of arrays when a colleague of mine came up with a doubt in Base command in lotus script It was interesting to find the following, Create a couple of buttons and put the following fragments of code in each of them option base 0 dim myArray[10] as string msgbox cstr(lbound(myArray)) '-- this would prompt 0 This means now the array can contain 11 string [read] Keywords: lotus lotusscript

Video: Using the XPages Extension Library Dojo Grid and REST Services Controls
Thu, Dec 16th 2010 6:16a   Karthikeyan A
[read] Keywords: xpages dojo

User .jar files must be considered a design element
Wed, Dec 15th 2010 4:14a   Karthikeyan A
inwidth = 500; inheight = 320; id = "01BFBE89997A91E4862577F5005FD80A"; [read] Keywords: notes

Get the handle of the document highlighted in a view
Mon, Dec 6th 2010 4:19a   Karthikeyan A
Inorder to obtain the handle of a document highlighted in a view, use the following property caretNoteID$ = notesUIView.CaretNoteID Though this is present all along, I never got to use it cos I never really put UIClasses to any good use because I was blinded by their limitations rather than their capability... Had a tough time finding this one vhsssss.... oh.... Hope this helps some one :) [read] Keywords: lotus notes

Arthur Benjamin: Lightning calculation and other "Mathemagic"
Thu, Dec 2nd 2010 4:15a   Karthikeyan A
[read] Keywords:

Lotusscript code to get the mime content of an image
Wed, Dec 1st 2010 6:22a   Karthikeyan A
Function  getMimeofImage( imagePath As String,targetFilePath As String) As Boolean '************************************************************************************************************  '@Created      :   2008/09/12  '@Purpose     :   To create mime equivalent of an image file in a text format and export the same to a target file '********************************************************* [read] Keywords: lotusscript notes

Lotusscript code to import dxl to current database
Wed, Dec 1st 2010 6:22a   Karthikeyan A
Function importDxl(dxlFilePath) As Boolean '*********************************************************** '@Purpose : To import dxl into current database  '@Author   : Karthikeyan A '@Created : 30th,Nov'2010    '@Note : The dxl file should contain the dxl that corresponds to a notes document in this case '***********************************************************  'mark the flow [read] Keywords: dxl lotusscript notes database

Lotusscript code to export dxl of a Notes document
Wed, Dec 1st 2010 6:22a   Karthikeyan A
Function exportDocDxl(sourceDoc As NotesDocument,targetFilePath As String) As Boolean '*********************************************************** '@Purpose : To export the dxl of a database to the specified document '@Author   : Karthikeyan A '@Created : 29th,Nov'2010 '***********************************************************  'mark the flow of control getting inside the current [read] Keywords: dxl lotusscript notes database

Lotusscript code to export dxl of a database
Wed, Dec 1st 2010 6:22a   Karthikeyan A
Function exportDBDxl(sourceDB As NotesDatabase,targetFilePath As String) As Boolean  '***********************************************************  '@Purpose : To export the dxl of a database to the specified location  '@Author   : Karthikeyan A  '@Created : 29th,Nov'2010  '***********************************************************  'mark the flow of control getting inside the current [read] Keywords: dxl lotusscript notes database

Get notes temporary directory path in lotusscript
Wed, Dec 1st 2010 6:22a   Karthikeyan A
Declare Function w32_OSGetSystemTempDirectory Lib "nnotes" Alias "OSGetSystemTempDirectory" ( Byval S As String) As Integer  Declare Function mac_OSGetSystemTempDirectory Lib "NotesLib" Alias "OSGetSystemTempDirectory" ( Byval S As String) As Integer  Declare Function linux_OSGetSystemTempDirectory Lib "libnotes.so" Alias "OSGetSystemTempDirectory" ( Byval S As String) As Integer  Const [read] Keywords: lotusscript notes

Lotusscript code to add attachment to a richtext field
Wed, Dec 1st 2010 4:14a   Karthikeyan A
The following is a lotus script code that will help you add an attachment to a rich text field Function addAttachmentToRichTextField(doc As NotesDocument,rtField As String,filePath As String) _ As Boolean '*********************************************************** '@Purpose : add a file denoted by the filepath to a richtext field '@Author   : Karthikeyan A '@Created : 1st,Dec'2010 '@ [read] Keywords: lotus lotusscript notes rich text richtext

Send HTML Content As Mail using Lotus Script
Wed, Nov 24th 2010 4:19a   Karthikeyan A
The following function will help you send html content as a mail **************************************************************************** Function sendHTMLContentAsMail(recipients As Variant,ccTo As Variant,bccTo As Variant, _ Subject As String,bodyHtmlContent As String) 'Declare Variables  Dim s As New NotesSession Dim db As NotesDatabase Dim body As NotesMIMEEntity Dim stream As [read] Keywords: lotus

Lotusscript code to append hotspot to a richtext field
Tue, Nov 23rd 2010 7:13a   Karthikeyan A
My aim is to append a Link hotspot to the rich text field of a notes document as illustrated in the following image on a button click The following code helped me perform the same /***************************************************************************/ Function AppendHotspotLink (rtitem As NotesRichTextItem, url As String) As String '** This function will attempt to append a button to a [read] Keywords: lotusscript notes rich text richtext

get Current Folder Path in Java
Wed, Nov 10th 2010 4:18a   Karthikeyan A
The following function helps you get the current folder path of your project @SuppressWarnings("finally") public String getCurrentFolderPath() { String path = ""; try { path = new java.io.File(".").getCanonicalPath(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { return path; } } Hope this helps :) [read] Keywords: java

CopyDirectory Function in Java
Wed, Nov 10th 2010 4:18a   Karthikeyan A
The following function will help you copy a directory from one location to an other.I got this good function with the help of my friend google :) public void copyDirectory(File sourceLocation , File targetLocation)    throws IOException {                if (sourceLocation.isDirectory()) {            if (!targetLocation.exists()) {                targetLocation.mkdir();            } [read] Keywords: google java

Setting up Offline Password in Domino Quickr
Tue, Nov 9th 2010 4:14a   Karthikeyan A
In order for a user to go offline in Quickr-D, his/her offline password needs to be configured. If in case a user proceeds further with out configuring a offline password he/she might experience the following error message when attempting to create a offline station in quickr-D“error requesting offline configuration from the server” To configure the offline password follow the following steps,1. [read] Keywords: domino quickr password server

Open Xpage from a Notes Form or View on Notes Client 8.5.1
Tue, Nov 2nd 2010 3:31a   Karthikeyan A
In order to open a xpage ( say a document on a xpage) from a Notes Form or View from the notes client, use a button or a hot spot that contains a code fragment similar to the following, @URLOpen("notes://servername/databasepath/XpageName.xsp?openXPagedocumentId=documentUniqueIDaction=editDocument") Note the usage of the word openXPage in the query string. Ensure that it is present there, 'cos [read] Keywords: lotus notes notes client xpages

Setting "Do not locally Encrrypt" by default
Mon, Nov 1st 2010 5:26a   Karthikeyan A
Copying Databases into our local file system with encryption is one of the head ache in most of the times when u really dont want any security to be associated with the database being copies, example POCs etc Setting this property is some thing that I use time and again and forget where I did it. Hope the following piece of info helps people recollect this stuff. --choose File --Security [read] Keywords: lotus notes database security

Single Copy XPages Design - SCXD - Lotus Notes 8.5.2
Fri, Oct 22nd 2010 7:34a   Karthikeyan A
I recently stumbled upon a brand new feature of Lotus Notes 8.5.2. It is about Single Copy XPages Design. Following URL Has exhaustive description about the same and it seems quite interesting too... http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Single_Copy_XPage_Design Hope this helps :) !--Session data-- [read] Keywords: ldd lotus notes xpages

Opening Documents from Views in a different tab on the same XPage
Thu, Oct 21st 2010 11:31a   Karthikeyan A
I happened to perform an RD on how to open up documents on new tabs with in the same XPage when you click on links in XPage views. I searched for ideas over the net and I got the idea of using Dojo tabs as Dojo is shipped with XPages. After an exhaustive search for the resources on web I arrived at the desired results. Following is an abstract of how I got the same to work on XPages. Create [read] Keywords: xpages dojo

Binding Richtext Fields and File Upload Controls in XPages
Tue, Oct 19th 2010 4:29a   Karthikeyan A
The following is a simple POC that describes how file upload controls on XPages work when bounded to Rich text fields in Notes Forms. Create a Simple form with 2 Rich Text fields and bind them to two file upload controls respectively on a Xpage as shown in the following figure and save them. Now Preview the XPage, add a couple of attachments and Save the XPage The code that I used in the [read] Keywords: lotus notes rich text richtext xpages

Running Scheduled Agents from Server Console
Wed, Oct 6th 2010 9:31a   Karthikeyan A
When working with scheduled agents, we often tend to run the agent by right clicking it and clicking on run or calling it on a button click before we schedule it. It may not work always, cos scheduled agents will have a lot of issues that are not associated with a normal agent which may run properly with your security permissions when you run it. For example you may have a role enabled for you [read] Keywords: agent domino notes security server

Expanding and Collapsing Categories in a XPage View
Mon, Oct 4th 2010 8:28a   Karthikeyan A
For expanding and Collapsing category entries in an XPage,    Go the all properties section of the XPage, Navigate to Data - Data - Expand Level as illustrated in the following figure Specifying 0 here will collapse all entries and 1 will expand the same. Also in case of a view containing multiple category columns, 1 will expand the first level categories with the other levels like 2nd or 3rd [read] Keywords: lotus xpages properties

OnUnload event in XPages
Tue, Sep 28th 2010 7:29a   Karthikeyan A
Add the following script block to your xpage. Preview the same and  close it. Once you close your XPage you will get a prompt which depicts the triggering of the onUnload event in xpages.  xp:scriptBlock xp:this.value escape="false" window.onunload=function() { alert('I run on window unload'); } /xp:this.value /xp:scriptBlock  A little bit of client techniques to include server side [read] Keywords: lotus xpages server

Roles in XPages
Mon, Sep 20th 2010 7:27a   Karthikeyan A
I had a hard time working with user roles in XPages.   I used to the following procedure which is a server script equivalent of the lotus script equivalent of the @UserRoles which wont work on server side javascript :) (confusing aaha...) var acl:NotesACL= database.getACL(); var entry:NotesACLEntry = acl.getEntry(@Name("[CN]",@UserName())) if (entry==null)    {     entry = acl.getEntry( [read] Keywords: acl lotus xpages database javascript server

Getting User's Name on the XPage
Mon, Sep 20th 2010 7:27a   Karthikeyan A
The content that I am trying to describe on this particular post is fairly simple. Many of you guys out there would have faced it and solved it. But still I would like to share this cos, really XPages are stupid at times. I had the formula session.getCommonUserName() on a lable which worked for me through out the period I was developing my last application. When I moved the same to a test server [read] Keywords: xpages application server

Recover a corrupted archive of the Excel format
Tue, Sep 14th 2010 4:48a   Karthikeyan A
One of the readers suggested the following tool for recovering corrupted excel files. It feels like a handy tool to help in case of excel file corruptions. Also it covers a wide variety of files like *.xls, *,xlt, *.xlsx, xlsm, *.xltm, *.xltx, *.xlam. I haven't had a chance yet to use it 'cos i dont have a corrupted excel file for the time being (but yes of course have gone through its features [read] Keywords: archive microsoft

Embedding Video in a Web Page
Sat, Aug 14th 2010 2:45p   Karthikeyan A
The following is a sample code that shall help you embed a custom vedio of your choice in a web page. Note: This code works fine in IE/Fire Fox. Holds good when included in a XPage as well. The same fails when previewed on notes client though... i mean XPages in 8.5.1 The code below shall have two fragments one is object tag for IE and  Embed for Firefox, Hence you got to specify your [read] Keywords: notes notes client xpages firefox

Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition