I have a Notes database with photos as attachments.
These photos have GPS information as meta data in the file like long / lat / ...
Basically I want to retrieve the data you get when right clicking on a file in windows and open the properties of the file (details tab).
Is there a way to retrieve this information in Notes. Preferably in LotusScript, but Java is also an option.
Windows functions are no option, since the OS can be anything.
However, it does not matter if the code runs on the domino server or the notes client.
Related
Need help to implement one requirement. i am working on node.js application and want to open different types documents e.g. pdf, word, xls etc in browser. also once document is open in viewer, user should be able to add some comments and freehand writing on it and save it in some format.
I am doing trend analysis of data from lotus notes. I need to manually export data from lotus notes and import it into excel. Is there a way to automate this? I can even work with Access. I tried to create an agent and I do not have access to do so.
There are many ways to do this, depending on your skills and your access to the Notes database.
First of all, when you say "I do not have access to [create an agent]", are you saying that you don't have designer access to the database where the data lives?
If that is the case, simply build a separate Notes application, and write your export agent there. Put that application on the same server, and you can set the export to run every night 8or whenever you like).
Another option is to use COM in Access and pull the data over that way. You have all the COM classes documnented in the Domino Designer help, and the code should be very similar to what you would writ in Lotusscript.
A third option, if the database is web enabled, is to use HTTP to pull the data out of views. You can read it using ?ReadViewEntries, either as XML or as JSON. This requires that all the data you need is exposed in the view, though.
I think the first option is the best, though. However, if you have been tasked with creating this export, you should be able to ask for proper access to the database...
I know this is a past posting, but someone may need the latest answers get to Domino Data.
You can export any view in Notes. File -> Export -> Select CSV as the option.
Then there is the IBM ODBC driver. There are two versions. One for 8.5.3 and another for 9.x. Download here http://www.ibm.com/developerworks/lotus/toolkits.html
Instructions on how to install here http://xpagesbeast.com/uxdesign/dont-forget-about-the-notessql-driver/
Using DomSQL which is a true JDBC driver for Notes Domino data. Non Notes environments can execute SQL SELECT queries using this JDBC driver.
http://www.openntf.org/main.nsf/blog.xsp?permaLink=NHEF-8Q7AW3
Using the Domino REST Services. You can access DominoData through a URL and it returns JSON. There are URLs to get all database instances on the server, then you can get all views in the server, and you can then access documents in the views.
http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&content=catcontent&ct=api
If you cannot create an agent (no designer access) you can try to install NotesSQL (ODBC driver) besides your Notes Client and access with Excel, MsQuery, etc. with your user id.
You can find more information here: http://www.ibm.com/developerworks/lotus/products/notesdomino/notessql/
Document with attachments is opened in XPage. I want to edit attachment in associated program (say MS Word or Excel) and save changes back to Notes document.
I am aware of webdav configuration, but it have significant caveats: attachments are no longer stored within related document and security is controlled by ACL and not RN/AN.
How to edit document attachments in web client? Did any of you implemented such feature?
WebDAV is the way to go. There's an implementation that can read/write DominonAttachments. Soon on OpenNTF
Given that it would have to be opened in another program such as word / excel I'm not sure if this is possible, for example if your looking to save edits then you would need to know when someone saves the doc in word /excel etc.
You can attach a file download control to a domino doc field, when you do this it will display all attachments, when in edit mode you can delete these attachments, I think the only way this would work would be to enable them to delete / re upload, which is a fairly common thing to do on most web applications I would think
The tool we use, with recent improvements for XPages, is Swing: http://www.swingsoftware.com/
We checked many others, without success.
I would like to know if through Domino API it is possible to launch (start) Lotus or open a lotus notes email knowing the noteURL.Something like this
notes:///__C12579A3004143A1.nsf/0/07A2154411B264E5C12579A4004AD43E?OpenDocument
without specifying the path of the executable that is the notes.exe file.
For the moment, I using this java command
Runtime.getRuntime().exec( "C:\Program Files\IBM\Lotus\Notes\notes.exe " + document.getURL() );
but I don't want to specify the path to the executable.
Thanks
You can on a Windows machine. When you install the Lotus Notes client on a windows PC, it registers the notes:// protocol and associates it with notes.exe. You can then use a URL formatted as notes://server/database.nsf/view/docid to launch Notes and open a particular document.
The java.awt.Desktop class has a browse(URI uri) method. The doc says that it launches the 'default browser', but it's unclear to me whether it will handle "notes://" URIs. That's what I might try, as I think it has the best chance of being a cross-platform solution.
If Windows-only meets your requirements, though, and if hard-coding the executable path is your real concern, then you can read it from the registry. The appropriate registry keys to use, and a method for reading the registry from Java are both covered in answers to other questions on stackoverflow:
Lotus Notes registry keys
Accessing Windows registry from Java
You could use a .NDL (Notes Data Link) file and "start" that. If the Notes Client is properly installed, it should open automatically.
Steps to create a .NDL file:
Open a Notes database.
Select Edit -> Copy As Link and select the type of link you want to create, for example a View link.
Open the Windows Notepad and select Edit -> Paste.
The following is an example of what the Notepad file will look like:
discuss - By Category (discuss is the Notes Database name and "By Category" is the view link)
<NDL>
<REPLICA 852565A7:005180C7>
<VIEW OFAAC7D56C:A8FD884B-ON852563BE:00610639>
<HINT>CN=Slider.lotus.com/O=WWBPSS</HINT>
<REM>discuss</REM>
</NDL>
Source: How to start a Notes client from a browser or send doclinks to non-Notes users
I have a silverlight application inserted in a SharePoint page. The SilverLight application runs on a different server thatn that of SharePoint. From an event in the SilverLight, I generate a document on the server side from SQL Server. I can generate the doc on the server hosting the silverlight application and also copy it to the SharePoint server. I wanted to know if I can include this file in a sharepoint document library automatically. I was thinking if like emailing to a list allows us to copy the file into the library, can we configure the reverse, means copying the file make it part of the list.
Update:
I wanted to avoid uploading. For me uploading is sending the file from one location to the target location. But what I am saying is, if I copy the file into the folder where SharePoint keeps the file physically for the particular list, can it be added to the list automatically?
I am not sure, how well I am being able to describe the point. Please elaborate if required or I can answer your queries.
SharePoint stores the files in a database, not a folder.
WebDAV access may be what you're looking for - it's a backbone of the the Explorer View feature that allows a user to access a document library as if you were accessing a file system through a Windows Explorer window.
You can configure "incoming e-mail" properties for the document library, and assign an e-mail address.
After that, when you e-mail a document as attached to e-mail to this e-mail address, then attachment will be saved to that library by sharepoint automatically.