Pages

Monday, August 4, 2008

Lotus Notes Development> Lotus Script >LS2J

For using an agent developed in java but needed to be used in the LotusScript to enable benefit in Lotus Notes I've found some useful (may be not complete) factors to configure various settings in the and coding as discussed below:

For using the java class in LotusScript LS2J is the way to use it. For this purpose developer is needed to add a string in the start of the lostus script code of the module.
i.e.
1. Add line : - Uselsx "*javacon"
2. Create a java based script library under the 'Script Library' in the template and click on the button 'Edit Project' and browse the location containing the needed class files and then add files to current script library.
3. Add line Use "your java based script library" in the lotusscript code like (1).
4. Also create a jar file with all the classes to be used and the corresponding other jar files used in those classes and add to the directory "......\Lotus\Notes\jvm\lib\ext", where notes is the directory containing the Lotus Notes Executable. The jar files in 'ext' folder will cause all the needed classes to be loaded when lotus notes started.

Above steps are used to configure the environment to use the java based agent, now to use the java based module in lotus script, first a session to java is needed to be established then objects of type JavaClass and Java Object are needed to be created and all these objects can be for java based agent. the following are the code step examples that can be used to facilitate the call to the java agent:

Dim myJSession As JavaSession
Dim myClass As JavaClass
Dim myObject As JavaObject

Set myJSession = New JavaSession
Set myClass = myJSession.getClass("your class name")

Set myObject = myClass.CreateObject("(Ljava/lang/String;I)V", stringArgument,IntegerArgument)

'Ljava/lang/String' and 'I' are the signature of the data type of the argurment of the called constructor of the class.

returnVal = myObject.fnName(arg1, arg2, arg3)

where returnVal is the result obtained from the java agent that can be used as required.

Lotus Notes Development> Lotus Script >Eclipse Configuration

Update Site for LotusScript editor for Eclipse

This is an update site for LotusScript editor plugin for Eclipse. In order to install this plugin in Eclipse, follow these steps:
  1. Open Eclipse
  2. Open Install/Update dialog from menu Help | Software Updates | Find and Install...
  3. Select "Search for new features to install" and click Next button
  4. Add new remote site and click Ok
  5. Select new remote site for site search and click Finish
  6. Select feature you want to install (LotusScript Editor Feature x.x.x) and click Next
  7. Accept terms of licence agreement and click Next
  8. Select folder to install plugin (default selection is Eclipse's root folder) and click Finish
  9. Accept Feature Verification for unsigned plugin and click Install or Install All
  10. Restart Eclipse
The plugin is tested on Eclipse version 3.2.0, but it should also work on version 3.1.

References:
1. Information taken from: http://lsseditor.sourceforge.net/
2. Plug-in can be downloaded from : http://sourceforge.net/projects/lsseditor

Friday, August 1, 2008

Various Developments Tools and Tutorial Links

1. CodeProject IBM DeveloperWorks. Free source code and programming help

The IBM DeveloperWorks brings together resources and articles from all around The Code Project into a single report.

IBM's premier technical resource for software developers, providing a wide range of tools, code, and education on AIX and UNIX®, IBM Systems®, Information Management, Lotus®, Rational®, Tivoli®, WebSphere®, and Workplace, as well as on open standards technology such as Java™ technologies, Linux®, SOA and Web services, XML, and more.

2. Accessing Open XML Document Parts with the Open XML SDK

About a month ago the Open XML SDK 1.0 (June 08 update) was released. The SDK provides strongly typed document part access to Word 2007, Excel 2007 and PowerPoint 2007 documents. The SDK has been a CTP for a while, but last month version 1.0 was finally released. So I installed this baby last week and started playing around with it and found it really easy to use after briefly looking at the documentation. The How Do I section is a great place to start......

3. Configure Eclipse 3.4 (release candidate) for Notes 8.5 public beta

Eclipse IDE configured by piecing together different pieces of information is a description on how to configure the latest build of Eclipse Ganymede (3.4 RC2) for Notes 8.5 plug-in development and debugging. Only caveat discovered so far is that it requires manually update of the classpath for SWT libraries (e.g. org.eclipse.ui.swt) every time restarting Eclipse........

4. IBM Lotus Expeditor 6.1.x Information Center

BM® Lotus® Expeditor software is a service oriented architecture (SOA)-based, server-managed client platform that helps improve responsiveness and increase productivity by extending composite applications to laptops, desktops, kiosks, and mobile devices..........

5. Regular Expression Cheat Sheet

6. Useful Stuff related to Lotus Notes Client and LotusScript

7. 30 Common String Operations in C# and VB.NET

In this article, I have compiled some common String operations that we encounter while working with the String class. In Part I, I have covered 15 common string operations. In the next article, I will continue this article and cover 15 more. ...

8. How to run only a Single Instance of the Application using Windows Forms

If you are looking out for a quick solution to prevent the user from opening up multiple instances of the application, this article is was for you. We will explore how to use Mutex to check for the running instance of the application and prevent creation of multiple instances..................

9.Introducing the Singleton : "The Single Java Object"

No, this isn't a dating guide for the romantic Java developer, but an introduction to the singleton design pattern.................................

10. Decoding the new Notes/Domino 6 agent features

Notes/Domino 6 makes many changes in agent security, programmability improvements, and other agent functionality. This article covers accessing remote servers, saving agents on the server, and specifying the person on whose behalf the agent is running.................

11. Variable and Method Scope in Microsoft .NET

In this document, you can learn different rules of scope as they apply to variables and procedures. There are many different rules that you need to keep in mind as you develop your applications. A general guideline for scoping variables is that you want to keep the scope of variables as local as possible. Avoid global variables as much as you can, as this will lead to fewer errors in your programs. As far as procedures go, you simply need to decide which scope to use based on your particular needs. . . . . . . . . . . . . . .

12. ADO.NET For Beginners

Introduction

This course aims to introduce ADO.NET to developers who are new to database programming. This course assumes that you have very little or no prior experience with ADO.NET but does assume that you know what a database is and how to work with the tools provided with your database of choice.

During this course we will look at working with both Microsoft Access and Microsoft SQL Server databases. There are a number of reasons for this, first of all . . . . . . . . . . .

13. Band Objects: A beginners tutorial from scratch

Band Objects: A beginners tutorial from scratch

This tutorial explains about what is band objects.How to implement them? This is a modified version of MSJ and MSDN samples. A simple tutorial with examples and sample code attached. . . . . . . . . . . . . . . . . . . .

14. (A)Customizing Internet Explorer : Part I

Customizing Internet Explorer : Part I

This article describes how to customize internet explorer. . . . . . . . . . . . . . . . . . . . . . . .

(B) Adding Toolbar Buttons
This tutorial explains how to add a toolbar button to the Windows Internet Explorer user interface. The toolbar button can either run a Microsoft Win32 application, run a script, or open an Explorer Bar. If you also want to create a menu item for the Win32 application or script, see the Adding Menu Items tutorial. . . . . . . . . . . .