Category Archives: Posts - Page 18

Quick tips: if you are importing data in an LS agent

If you are importing data in Lotusscript and the imported files is in utf-8 so you have specified in the open command charset=utf-8 make sure that were you are getting the files from don’t suddely produce an ordinary ANSI ascii file. Then you will probably get a server crash, because there is not check if the file is utf-8 so it tries to read the ordinary file as a multibyte file. That will corrupt arrays, lists and eventual crash the client/server.
So make sure the file format is what you think it is. One great tool to do so with is NotePad++ 

3 Quick questions about XPages and Domino

Update! Results of the Poll

I’m doing a lite poll to see what the future looks like. You don’t have to be an admin or a developer.

If you don’t know the answer on one of the questions don’t answer that question šŸ˜‰ 

[poll id=”2″]

[poll id=”3″]

[poll id=”4″]

I’m thanking you for your answers, stay tuned for the results!!

Setup a Mercurial or Git Source Control server for Windows

Declan Sciolla-Lynch held a session at LS 12 AD102 about how to setup a RedMine Server for Mercurial.

I needed to see if there where a way to setup a Mercuial repository server that could run on windows it could probably run on other operating systems also but I haven’t tested any other.

If found scm-manager a java server that could handle Mercurial, Subversion and Git the best part of this server is that it has a .war file container to you could deploy it in websphere if you have this setup.

But it can also be used with Tomcat and that setup is what I will show you today.

Follow the Notes in 9 video 041 Source Control on how to setup the designer to use the Mercurial plugin.

1. Download  SCM-Manager it’s the scm-webapp-1.12.war that you want to download

2. Download Tomcat 7  click on the appropriate version for your server.

3. Unzip the tomcat zip file to a folder of your choice

4. Open up the Tomcat-users.xml  in the conf subfolder

here you add your admin user add the following rows

in the tomcat users section

This will add a user called admin with the password admin (select your own password)

Save the file

5. Open a commadn prompt goto the bin folder beneath the tomcat folder

Write service install  This will add tomcat to run as a service.

Start the service

6. Open up a webbrowser http://127.0.0.1:8080

The tomcat main page opens up

7. Click on

 
 
 
 
 
 
Scroll down to War file to deploy

8. Select browse and select scm-webapp-1.12.war and deploy
 

9. Scroll up scm should now be in the list of deployed applications

10. Click on /scm-webapp-1.11 this is now your url to the repository

11. You will now be asked to login to the SCM Manager

Use scmadmin and password scmadmin

12. Click on Repository Types in the Right Navigation beneath Config

13. All the Mercurial fields are blank when you look at them

Click on Start Configuration Wizard to configure them.

in the dialog box select Download and Install

When the configuration is done. Click on Save.

14. You need to restart Tomcat or SCM-Manager to get the Mercurial as an option when creating repositories.

15. Login to SCM-Manager again and create a user

16. Create a repository and select the type a mercurial.

Now You are done, just start to push your code the the repository.
 
Perhaps there is a way to convert the .war file to a OSGI package so we can drop the Tomcat server.

Check out the new store at XPage Developer

XPage Developer Shop

Soon you can thru out Active Directory

Samba 4 will soon released and that that can replace your Active Directory with it.

Check out the great presentation with Guy Kawasaki

This is the opening session from IBM Connect 2012 but the best part is GuyĀ Kawasaki
So if you don’t want to see everything you should fastforward until 37 minutes into the show

Watch live streaming video from ibmsoftware at livestream.com
There is also another interview with him, great stuff.

ibmsoftware on livestream.com. Broadcast Live Free

Standby Custom control what does it do

I have added my first XSnippet today and it’s the Standby custom control.
If you add the code to a custom control and drag in into an XPage all events done in this XPage will be intercepted and if the event taks more than 200 milli seconds the dojo standby widget will show up and prevent the user from clicking.

 

http://openntf.org/XSnippets.nsf/snippet.xsp?id=standby-dialog-custom-control 

 

Some of the code were originally created by two great XPage guys
Tommy Valand and Serdar Başeğmez 

Lotusphere Live Stream

Watch the Lotusphere 2012 live stream here

Watch live streaming video from ibmsoftware at livestream.com


How to prevent databaseName to change datasource

Sven HasselBach blogged (Link) about that you could change the datasource of any XPage using a url parameter called databaseName. Doesn’t ACL apply you might ask. Yes it does so that isn’t a problem.
OK, isn’t there a setting to ignore url parameters, yes there are but If you use this you will get problems with the built in controls. They use url parameters.

Is this a problem then ACL apply shouldn’t that be enought?
No because there might be some databases where the user should be able to create documents in.
and this could create documents of a certain type in a database were they shouldn’t be.  

To prevent the use of the databaseName parameter I have created this code that you can place in the onClientLoad event in a customcontrol or directly in an XPage

if(context.getUrl().hasParameter("databaseName")){
 var url=context.getUrl()
 url.removeParameter("databaseName")
 context.redirectToPage(url.toString(),true)
} 

New version of TinyMce integration for XPages

Version 1.1 of the TinyMce custom control for XPages is released today.

This version contains a fix so the 64K limit is now fixed and also a new option 

TinyMcePath is added to be able to add a url that is server wide. And to simplify upgrade of the editor.

Url to the control at openntf.org