Tag Archives: Eclipse

Importing a Files and folders into a IBM Domino database

I saw a question today inside a linkedin forum about how to import files and folders into a Domino database and there are several ways on how to do this. Check out these three ways of importing files and folders into your nsf file.

1. Import the files into the webcontent folder using package explorer. using import

Snap17

 

 

 

 

 

 

 

 

Select general -> file system to import files and folders

eclipse file import

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Browse for the from folder, any subfolder will be the top folder when imported into web content in this case bootstrap

eclipse file system import

And then your files and folders look like this after the import

Snap20

 

 

 

 

2. Enable the database for webdav then you can connect to the database using windows and upload the folder/file structure into domino. Super simple and quite easy to maintain. (Link to how to setup this or this old Codestore post)

3. Build an agent that will import the file resource using dxl check out this TLCC article in how to import using DXL.

The new XPageDeveloper Utility is here Snippet Sync

Eclipse Code Snippets in HCL Lotus Domino Designer is a great way to develop faster with ready made code snippets, that you can paste into your software. Easy to add and easy to use but there is a major problem. It’s very hard to share snippets within a development team or from a community. And we all like sharing so this is where Snippet Synd comes into the picture. This software helps syncing Snippets categories and all snippets inside that category. Snippet Sync can sync from a file location or a web location so the updating a snippets just became very SIMPLE.

If you don’t know what the designer snippets are check out this Notes in 9 video –> Link

I have also created a GitHub Repository with some snippets to start with. They can be found here. The idea is that these can be contributed from the community or replaced by an official one from openntf.org in a later release.

Download Snippet Sync Here

SnippetSync

Improvement suggestions is always welcome 🙂

Designer quick tip – Database compare

Compare databases for differences

If you have two versions of an application and have missed to document what the differences between them were. Here’s how you could find out how.

Add the two versions to Domino Designer. Goto package explorer, select the two databases and right click.Database Compare DDE

And when you compare the databases, you will get a structure where you can see what’s different.

database compare

There are folders that you can skip to look at like the local folder. If we now open up the xpage folder we will in this can find that an xpage called document is changed.

Snap81

The differences is highlighted with grey, I have also added a red line below them in this example. the buttons at the top also makes is simple to add the changes between the databases displayed. Or if you only want to document the changes.

There is not difference between Notes 9 and 8.5.3 this works the same in both versions.

The Domino designer short command that saved my day

Today I learned a new XPage Designer short command CTRL+Shift+> what does this do you might ask?

Well how many times have you been in the designer and have tag highlighted and started to scroll upwards or downwards searching for the corresponding tag. That is something you can stop doing now.

You only have to use CTRL+Shift+> and volia you end up at the matching tag

Happy Source Coding