FAQ Database Discussion Community


How to add external third party jar in Notes Xpages application?

java,jar,xpages,lotus-notes
I am Java developer, recently working on Xpages project. we are using Notes 9.0.1. I created Java agent to send email and I want to use some third party jar, something like org.apache.commons.lang3 , end up this issue. how to add third party jar, like commons-lang3-3.4.jar, in my Xpages project?...

Check numeric field lotusscript

lotus-notes,lotus-domino,lotusscript,lotus,lotus-formula
I have a field on a form called "fin_Paiement". What I want to do is: the field value to accept only numbers and points and to replace any other character by a point. I did it for alphabetic values with replace funciton but it doesn't work. I tried this :...

Embedded image in HTML signature works in Lotus Notes 9 but not 8.5

php,lotus-notes
We have a corporate signature that I am making a tool in PHP webform to automatically generate the file. I been using Lotus Notes 9 myself and it seems to work fine. However, the folks that still use Notes 8.5, the image file comes back broken. The image is already...

Lotus Notes View Selection: How to show top 10 documents only based on a column value

lotus-notes,lotus-formula,notesview
Just want to ask how to show top 10 documents only based on a column value using view selection? The formula of the view selection is in the code snippet below.. then there are 50 documents in the view. How do I arrange them according to top 10 highest value...

Can I Get the background doc of an open uidoc in another window?

lotus-notes,lotusscript
I was trying to avoid save conflict in my application when I discovered something stange... Question: could I use this or this is ack, evil code? Is it "well known" or is it true only in my configuration Notes 8.5.3? I have an ui-opened saved notes document: main. A lotusscript...

Is it correct to select based on date in a Lotus Notes View?

performance,lotus-notes,lotus-domino,notesview
I have some documents that contain flight information(eg a flight from Paris to London today 22-05-2015). I want to have 2 views: 1 for today and future flights and 1 for the past flights. I could do these selections: SELECT Form="flight" & fdate >= @Date(@Today) SELECT Form="flight" & fdate <...

“Error - Script is busy” & crash, whenever I try to reference uidoc from button created in DXL

lotus-notes,lotusscript,lotus-formula
I have created a form in which the user enters values, then clicks "Add". This then creates a table in a Rich Text field on the form. This is done by creating a temporary document with a richtextitem on it, expoting this via DXL, inserting the table in DXL into...

dojo-amd-factory-scan:false seems not to work

dojo,xpages,lotus-notes
I try to load an external JavaScript library like jQuery mobile to my IBM Notes Database. When i add this library i run i to the known amd loader problem. I found an article that says when i add xsp.client.script.dojo.djConfig="dojo-amd-factory-scan": false to the xps.properties, this will fix this problem but...

XPages. Hide column in DataTable

datatable,xpages,lotus-notes
I'm trying to hide a column in the dataTable, but not working. Hiding only header. In example I try hide first column. Domino 9.0.1. I was mistaken or is it a bug? I know about the "display: none" for the column, but I have a lot of data, and not...

I created my own logger in Java. Is it a bad idea? [closed]

java,logging,xpages,lotus-notes
I'm developing a web crawler using Java and XPages. I have had a lot of compatibility issues between log libraries like SLF4J, Log4J, java.util.logging, etc. and Lotus Notes. So, I developed my own very simple logger class. import java.io.PrintWriter; import java.util.Calendar; import org.apache.commons.lang3.exception.ExceptionUtils; public class Logger { private static final...

Is it possible to group or put multiple images inside a folder using xpages, like in FB photo albums?

xpages,lotus-notes,xpages-ssjs,xpages-extlib
we have a client that wants to have an FB like photo album feature, where in the user can upload image(s) and put those uploaded or selected image(s) inside an album. I just want to know first if it's possible using out of the box xpage or I need to...

Why error for one user

xpages,lotus-notes
My Xpages application is showing a strange problem. I have an XPage with with a tab control (2 tabs) and each tab has a dynamicviewpanel and a delete button. Each tab shows a different view depending on a condition. The first tab works completely fine for both myself and the...

Lotus Notes: I'm Getting “Object variable not set” at the end of Do While Loop

lotus-notes,lotusscript,notesview
I'm Getting "Object variable not set" at the end of Do While Loop. When I debug the agent, the pointer points at "loop" after the condition was met. The condition is that if the document is equal to 10 documents (less than 11), it must proceed. Can you help me?...

XPages: Customizing lotusDialogBox

lotus-notes
How could i Enhance Lotus Notes Dialog Boxes or Picklists to change the Background Colorsof one dialogBox on a page with out affecting the others?

Update sql database using Lotusscript

sql,lotus-notes,lotus-domino,lotusscript,lotus
I am trying to update rows of my database through lotusscript. My database connection working well. But the result.update command doesn't work and my rows aren't updated by the query. The problem is in the query result.updaterow because it doesn't make errors anywhere else. Anyone have a solution to make...

Remote Java Debugging in XPages is dropped after a short time

xpages,lotus-notes,lotus-domino
I have gotten remote Java debugging setup on our development server successfully, and have been able to get debugging to work. For some reason though, after a short time (~20 min) the server will forget that remote debugging is enabled. Restarting HTTP will correct the problem, but also causes interruptions...

$File URL to attachment not working correctly

javascript,xpages,lotus-notes
I have a strange issue occurring with generating URLs to attachments stored on a notes document. The Xpage that displays the notes document has a repeat that retrieves the embedded objects from the body field with this code: var doc:NotesDocument = docEmail.getDocument(); if (doc.hasEmbedded()){ var rtItem:NotesRichTextItem = doc.getFirstItem("Body"); return rtItem.getEmbeddedObjects()...

XPages dataTable control, compute visible

xpages,lotus-notes
I am trying to learn how to do a computed visible property on a dataTable to hide an field/ row if status is enabled or disabled. below code is what i have used but keep getting error var userName=rowData.getColumnValue("userName") var status:NotesView = database.getView("(UserProfile)"); var doc:NotesDocument = status.getDocumentByKey(userName); var active =...

XPages - presenting an application in multiple languages

xpages,lotus-notes,lotus
I have an XPages application which is available in 4 languages. I would like that each user can choose the language in which the application is presented to him. What is the best way of doing this? It seems to me that I need to set a user specific parameter...

Which extra Library or plugin need to install for XPages app using OPENNTF in IBM Notes 9.0.1?

xpages,lotus-notes
I am pretty new to Notes Xpages application. I watched some tutorials from youtube last week, and had some questions here. I am using Notes 9.0.1. Is there any OpenNTF libraries from OpenNTF built-in this release? Do I need install OpenNTF Essentials, OpenNTF Domino API or XPages Extension Library separately?...

Need to extract attachments from Outlook (.msg) attachment via Lotus Notes

outlook,lotus-notes,attachment,lotusscript
I have written an agent that extracts all attachments from all documents in a database and saves them to a local hard drive. However, many of those attachments are Outlook messages (.msg files) that also contain attachments (i.e., attachments within attachments). I need to extract those secondary attachments. My agent...

Call XPage script with http

rest,xpages,lotus-notes,lotus-domino
I want to invoke an XPage from a rest client e.g http://myserver.com/myDB/myApp.nsf/mypage.xsp?attr=first and have the XPage mypage.xsp to print the attr value. var value1 = context.getUrlParameter("attr"); print(value1); Is it possible?...

Difference between note id and universal id

lotus-notes
I did search but I didn't found clear idea ,Many time I used the "universal id(UNID)" but I never used "note id" so want to know difference.It would be nice if anyone help me to know.

Lotus Notes: Print/write variant() to freefile() .csv

lotus-notes,notesview
I just want to ask how to print a variant() --> "tmpArray" to .csv? Because in the code that I have right now, it's only accessing the first value in the array. I want to access all the values in the array and print it in .csv file. Below is...

Lotus Notes: display multi value field in single view row

lotus-notes,lotus-formula
in lotus notes i have multi values field, for ex.: multivaluefied(0)=value0 multivaluefied(1)=value1 multivaluefied(2)=value2 and i want to display all values in a single view row and column like: value0,value1,value2 thank's...

Lotus Notes View unable to show all the values in separate view

view,lotus-notes,lotus-formula
I have created a field which is able to support for "multiple value" . In the Lotus Notes view, I have enabled an option "Show multiple values as separate entries" in order to show separate entry of the each value. Noticed that the Lotus Notes view is unable to show...

@dblookup not retrieving multiple values

lotus-notes,lotus-domino,lotus
Hi I have this issue that I really don't know why its happening. It seems my @dblookup is not returning a multiple value. I does retrieve a value but its only one.This is my whole formula code: class:= ""; mode:= ""; server:= ""; db:= ""; lkpView:= "AllExpenseItem"; key:= @Text(CVNo); colNum:=...

How do I send a doclink via LotusScript?

lotus-notes,lotusscript
I am iterating through a view of unprocessed requests in LS in a database, and wish to send a reminder with doclink (rather than the doc itself) to the laggards via email. Do I have to manually assemble a rich text item to make a doclink or is there an...

XPages - Creating a Picklst from a categorised Column

xpages,lotus-notes
I have a categorised Column which is the first column of my view "groupView", how could i use or filter this column in my picklist that i would not get a value appearing more than once? I have a view with a list of student and the student belong to...

How to differentiate between email and chat documents in lotus notes

lotus-notes,lotus-domino
I'm trying to extract all emails and chat history of a person from his nsf file (lotus notes). I'm using Notes.jar. All the entries in nsf files are documents. Is there a way to identify which document is email and which document is chat. There is an item named "Form"...

Lotus Domino 9: Unable to register user without creating ID file using Java client API

java,lotus-notes,lotus-domino
On an ID Vault configured Domino setup, when we register a user using Admin console, his/her ID file gets uploaded to ID Vault. In addition to this Admin can also chose to create ID file on some other specified location . That is, Admin will be able to perform registration...

LotusNotes Script: backup All server database

lotus-notes
today i tried to do a copy of a database(design and documents) by doing right click on database-> New copy... and i see that the new copy of database have smallest dimension of the source database (source database 900mb and the new copy 170mb). I see also that if i...

Lotus notes: change view selection formula by script

lotus-notes
I'm trying to change view selection formula by script with this selection formula: formula = "SELECT (@Modified = [" & Left(doc1.LastModified,10) & "]) & form = ["& Cstr(doc1.form(0)) &"]" But when I try to execute it Notes retrive me the following error: Notes error: Unknown [KeyWord] for @Function (SELECT (@Modified...

Lotus notes views: retrive last opened time

lotus-notes
Is there a method/trick to find when a view has been opened last time ? In designer, if i do right click on a view, in 'info' tab there is a parameter 'Accessed' that i think correspont to that i'm loooking for. There is a trick o method to retrive...

How to add a docID from one NotesDocument to another using Java Script

java,javascript,xpages,lotus-notes
I have a lotus script that add a organization docID to the contactDoc and it work fine but I would like achieve this in java script Sub AddContactID(contact As NotesDocument, organisation As NotesDocument) contact.TmpIDString = organisation.DocID(0) Dim tmp As Variant tmp = |@SetField("ContactOrganisationIDs";@Trim(@Unique(ContactOrganisationIDs:TmpIDString)))| Dim flag As Variant flag = Evaluate(tmp,contact)...

NotesViewColumn check if Total option is enabled

lotus-notes,lotus-domino,lotusscript
how can I check if something is selected there? I need at least 'fact': selected or not (and would be nice to know how to read real settings). I looked into NotesViewColumn and did not find anything there, maybe it's undocumented feature :( ...

Lotus Notes UnprocessedDocuments on embedded view

lotus-notes,lotusscript
i have a doc with embedded view... in this embedded view i have a button that compile some code. Inside this code i have Set Coll=db.unprocesseddocuments instructioin so when i select document inside this embedded view i think the collecion is composed by the document that i have select. But...

no acceptable features were found on the selected site

java,eclipse,eclipse-plugin,lotus-notes
We have developed an Eclipse plugin and created an update site for IBM Notes 9. We have tested this plugin on several laptops/pc's, but on some machines we are getting the following error message: No acceptable features were found on the selected site(s). Choose a different site or site category....

Lotus Notes Single Sign On through PowerShell

powershell,single-sign-on,lotus-notes
I have a script that works with a Lotus database: $LotusSession = New-Object -ComObject Lotus.NotesSession $LotusSession.Initialize() $LotusDatabase = $LotusSession.GetDatabase('Server','Database.nsf'); $DocView = $LotusDatabase.GetView('ViewName'); $searchkey = # anything $doc = $DocView.GetAllDocumentsByKey($searchkey,$false); <# ... and so on ... #> Can I somehow initialize the session without entering a password each time, but using...

Java Agent Use Image Resource

java,lotus-notes
I have got an Java Agent and I'm trying to use an ImageResource in the "JTreeCellRendererOpen" class from the "res" folder to show as image icon. ImageIcon icon = new ImageIcon(this.getClass().getResource("/res/ntf.gif")); super.setIcon(icon); I try the different examples in the following NullPointerException when trying to use image resource but I always...

IBM Notes Scheduled agent does not execute

lotus-notes,lotus-domino,lotusscript
I wrote an agent that runs every 1:00 AM daily, but fails to execute the routine mysteriously. I've checked the agent log and saw that it ran and ends without any error. What I've been thinking about is when I trigger the agent or ran it manually it executes the...

validate edit box input text length on xPage

xpages,lotus-notes
When I enable field length validation it validates only when I submit the form... <?xml version="1.0" encoding="UTF-8"?> <xp:inputText id="inputText1"> <xp:this.validators> <xp:validateLength maximum="20" message="You can input max 20 characters"> </xp:validateLength> </xp:this.validators> </xp:inputText> <xp:message id="message1" for="inputText1"></xp:message> so how to show the error message once user typed in 21st character? Assume need a...

Accessing POST-data in a Java-Agent

java,ajax,lotus-notes
The task is quite simple. I have an agent on my database, written in Java and I have a website, from where I want to send an ajax-call to my database. So far, I have only figured out, how to access GET-data sent from a client. Now my question: How...

Lotus Notes: Processing appointment cancellation using ics file

lotus-notes,icalendar
I am finding it difficult to understand how ics file works in lotus notes. Invitation works precisely as defined whereas in the cancellation event nothing happens. Say for example, when I import an ics file 2 calendar entries, then the entries are created as expected. BEGIN:VCALENDAR VERSION:2.0 BEGIN:VEVENT ORGANIZER:CN=Chintan Jayesh...

Lotus Notes VBA Email Automation - db.CreateDocument Command Fail

excel,vba,excel-vba,lotus-notes,lotus
I'm trying to automate the sending of an email through Lotus Notes 9.0 using VBA. The code will load up notes, which asks for my password but before the password prompt shows up, I get an error. The error I run in to is "Run-time error '-2147417851 (80010105)': Automation Error...

Why am I receiving error http 403 forbidden?

xpages,lotus-notes
I have just made a change to an Xpages application successfully on our development instance on the notes development server. I have deployed the change to out Train instance application on our notes train server for testing by the application administrator. We create an application design template of the development...

Xpages - Creating Repeat or View from different database with ACL set to No Access

xpages,lotus-notes,xpages-ssjs
I am trying to create a repeat element from a view in a different database that does not allow Anonymous ACL access. PubDb.nsf has ACL set for user Anonymous to Author PrivDb.nsf has ACL set for user Anonymous and Default "no access". The database, PrivDb has information that I want...

Web user is not authorized to access a database despite having Editor access in the ACL

xpages,lotus-notes,acl,lotus-domino
In my XPages application, web users can perform a self-registration. In the registration process, a user document for the web user is created in the address book and the user is added to a group that has Editor access for the database. After executing show nlcache reset on the Domino...

Is it possible to develop a login xpages base on Lotus Notes Email Client Account?

xpages,lotus-notes
I would like to develop a web application using IBM Lotus Domino Designer 8.5.2. The web application shall verify user's authentication base on user's Lotus Notes email account information. More information about Lotus Notes in case it is helpful, users using Lotus Notes as email client, they check email using...