Adding Security (HTTP Response) Headers to IBM (Lotus) Domino Server to. Its Domino HTTP Server updated to accommodate all of the security patches. For sites with complex applications running X-Pages and other scripting technologies, this latter header can cause certain functions to break, so we. Help with Domino Administration First Tasks Now that Domino Setup has. Restart Server Stops the server and then restarts the server after a brief delay. Show Directory Lists all database files in the data directory and identifies multiple replicas. Permite mostrar una base de datos con aspecto Web 2.0, o sea,.
Active6 years, 5 months ago
Running XPages in Notes Client (XPiNC) the same way as XPages are run when you access them with web browser (without any local HTTP task) is a feature that I requested about 3 years ago. It finally arrived in Notes/Domino 9.
The feature can be enabled in Application Properties 'Launch' tab by checking [x] Run server-based XPages applications directly on Domino server check box. The strange thing is that 'Open Designated XPage' launch option must be selected for this check box to become visible. Anyone knows why? This limits the usability of this feature quite much.
I have been trying to configure my Notes client to use this new feature as instructed in help and wiki. Basically I need to create a HTTP account in Notes client Preferences. First I tried without this account, then I created the account and have been experimenting with all account settings but the result is always the same. I get this page:
OK, I'm in China now! There is no HTTP request in domlog.nsf of the server so it really takes me directly to some strange Chinese web page. I did a full virus and windows defender scan on my computer and they found nothing. I also uninstalled my Notes clients and reinstalled to a new folder. The next question is how do I know in which URL I am now?
The most unclear field in the HTTP account setup is 'Server:'. This is what the help says:
In attempting to honor the request to the XPages application on Domino, XPages iterates through all the Notes accounts defined in the Notes client installation until it finds an HTTP account that matches the name of the server where the application resides
The field accepts only URL starting with http:// or https://. Which host name should I use here? We have a lot of Web Site documents, does it iterate thru all of them? I figured it must be the HTTP_HostName from server doc but as said the result is the same no matter what I try.
Has someone gotten this new feature to work?
Update 1
I tried this now with an application that is on 8.5.3 server and adjusted the HTTP account to point to that server URL. Again I got a strange page, this time a different one. The page title is My_domino_server_name.com where My_domino_server_name is the Notes name of the Domino server, not the HTTP host name. If I go to this URL with a browser I get same looking page but not exactly the same.
So the problem seems to be that it uses the Notes name of the server in the URL.
Update 2
I tried to open the application on another PC where no HTTP accounts have been defined. The result is exactly the same. Looks like it's not finding the HTTP/HTTPS account.
Update 3
When the application is opening there is this text on the screen: 'Loading My Application on my_domino_server...'. Again my_domino_server is the Notes name of the server, not the DNS host name used for HTTP.
Update 4
I have a PMR open with IBM and they confirmed it works for them with 'Server' field value
http://domino_server_notes_name/
(with no dots anywhere!). Of course that can only work in intranet. At this point I refuse to believe that the feature has been implemented in such a stupid way but we'll see what is the final outcome from IBM.- Panu
Panu Haaramo
Panu HaaramoPanu Haaramo
2 Answers
The 404 shows that you reached the server properly (we don't have a hand in a local database). If your server URL (when accessed by a browser) is http://apps.myserver.com/x_apps/xapplicationdemo.nsf then your account document needs to showhttp://apps.myserver.comyou need 2 account documents if you use http and https. You can point an account document to use the credentials of a 'root' document (basically just another account), so you need to enter credentials only once. When you configure Notes for Connections, that's exactly what happens.
Did that work for you?
stwisselstwissel
Got more info from IBM: there is a third setting that needs to be in place for this to work! You need to set up the application to run XPages from server in Preferences -> XPages Performance -> Run the following XPages applications directly from server. This is not mentioned in Notes help (or anywhere) as far as I can tell.
I got it working when I added this! But you still need the launch option. Based on my tests if I remove that option it will not run any XPages from server. Looks like the setting is in effect only for the XPage that is launched based on the launch option and probably the XPages that are opened from that XPage. SPR #RGAU972LZA has now been created about this and there will be a technote about the third step which is not included in Notes help.
Panu HaaramoPanu Haaramo
Not the answer you're looking for? Browse other questions tagged weblotus-notesxulrunner or ask your own question.
So, this my code. It gets only the first document. But what I want to do is read a specific document. The view is a collection of usernames and passwords. So, for example : The username is in the 5th document, then the program will scan the view until it finds the right document. Sorry for my poor explanation. I hope you understand my problem.
Instead of using view.getFirstDocument you should use view.getDocumentByKey(uname,true) which return the document with the key uname in the first column in the view
Make sure the first column In the view is set to sorted
If no document is found using the key then getDocumentByKey returns nothing
recycle domino objects after they are lost
java,xpages,lotus-domino
A few points: Recycling Domino objects is nothing to do with overloading the heap. Recycling is because of handles mapping between Java to the underlying C++ Domino object. The Java variables get recycled by normal garbage collection, so the Java heap is unaffected, regardless of whether you recycle or not....
com.ibm.jsse2.util no trusted certificate found
java,jvm,lotus-domino,agents
Apparently IBM forgot to mention that you actually need to restart the whole server for this to work....
Get list of all databases from server
lotus-domino,lotus
Depending on your needs, it does not have to be that complicated: @Prompt has a special mode for picking a database: result := @Prompt([ChooseDatabase];';'); FIELD Server := result[1]; FIELD Filename := result[2]; FIELD Title := result[3] ...
Lotus Domino 9: Unable to register user without creating ID file using Java client API
java,lotus-notes,lotus-domino
Unfortunately the NotesRegistration- class did not follow the development in admin- client. As for today there is no method to register a user without having an ID saved locally, as 'filepath' is a mandatory parameter for registerNewUser method. The only property that comes close is the IsNoIDFile- property, but it...
Call XPage script with http
rest,xpages,lotus-notes,lotus-domino
Yes. Google 'XAgents', there are plenty of resources about how to call an XPage and return non-XPage code. Also, make sure you set viewState property of the XPage to 'nostate', because there's no point storing a component tree server-side for something that can't be partially refreshed....
Can I plug IBM Notes Applications into IBM Rational Synergy?
lotus-domino,configuration-management
I studied this with an expert in IBM Rational Synergy. The only way that seems practical to me would be to use a special plug-in which they have developped. But I wouldn't want to fiddle around with the Domino Designer either. They also talked of the possibility of saving 'snapshots'...
Update sql database using Lotusscript
sql,lotus-notes,lotus-domino,lotusscript,lotus
I tried it with the sql query UPDATE and it's working now : Option Public Option Declare UseLSX '*LSXODBC' Sub Initialize Dim session As New NotesSession Dim db As NotesDatabase Dim dbcontacts As NotesDatabase Dim doc As NotesDocument Dim DocContact As NotesDocument Dim CandidatView As NotesView Dim ContactView As NotesView...
Domino Access Service - Form property not submitted
json,rest,lotus-domino
Try to add a field in your form with the name (I suggest also HTML Tag: ID) FORM, editable with default value: Form NB editable is not mandatory, Computed is also possible....
Editing a master template in domino
templates,lotus-domino,domino-designer-eclipse
You have two options: Remove the 'Inherit design from master template' and make your changes on the DB. Modify the master template. First option is my way of working then your transforme the changed DB to be a new master template see. If you select the second option you will...
IBM Notes Scheduled agent does not execute
lotus-notes,lotus-domino,lotusscript
there are a few things to try Check the trigger property on the agent and set it to run on All documents or change it to None. Test both scenarios. There are some issues with this setting. When you run an agent manually from the notes client or designer you...
NotesViewColumn check if Total option is enabled
lotus-notes,lotus-domino,lotusscript
You can use DXL. The DXL schema for view columns includes an attribute that represents the selected option for the totals. I.e. set up a NotesNoteCollection object that includes the view design note. Use NotesSession.CreateDXLExporter to get a NotesDXLExporter and process the NotesNoteCollection, parsing the XML to locate the column...
Prevent backspace button from navigating back to previous XPage
jquery,dojo,xpages,lotus-domino
Dojo version to prevent Esc to close xPage tab in client. Guess you can use something similar for your problem as well. <xp:eventHandler event='onClientLoad' submit='false'> <xp:this.script><![CDATA[dojo.addOnLoad( function(){ dojo.connect( document, 'keydown', function(e){ if(e.keyCode 27){ dojo.stopEvent(e); } }); });]]></xp:this.script> </xp:eventHandler> ...
How to redirect a non-www URL to a www URL on a Domino server?
ssl,lotus-domino
Set up your Domino server to 'Load Internet configurations from ServerInternet Sites documents', and create a web site document for acme.com with a Redirection rule that redirects to www.acme.com: ...
Updating mail draft using Domino REST API causes message to appear in Send folder
rest,email,lotus-domino
That's a bug in the REST mail API and Richard is correct about the root cause. The bug will be fixed in the next release of the extension library (901v00_12). I can't say exactly when release 12 will be available, but it should be soon.
Xpages only passes first character to Agent
xpages,lotusscript
To add an extra thought on Jesse's and Mark's correct answers: from AJF's question we cannot tell whether the Xpage is bound to an actual NotesDocument object, or whether it is a (temporary) stand-alone page. In that case, of course, agent.runWithDocumentContext won't work. But unless you have a good reason...
Export from Xpages using Lotus script
xpages,lotusscript
Where are you testing the agent and where are you looking for the file? When XPages runs from a browser, all that can ever run on the browser is client-side JavaScript. Any of your back-end code (SSJS etc) runs on the server, the LotusScript agent will also run on the...
Scan all the documents in a View
lotus-domino,lotusscript
Instead of using view.getFirstDocument you should use view.getDocumentByKey(uname,true) which return the document with the key uname in the first column in the view Make sure the first column In the view is set to sorted If no document is found using the key then getDocumentByKey returns nothing...
Can I Get the background doc of an open uidoc in another window?
lotus-notes,lotusscript
Can I Get the background doc of an open uidoc in another window? Yes. But let's clarify: when you open a document in the UI (like by double clicking or hitting Enter in a view), if it is already open in another window or frame, notes will try to...
Use edit box value for dynamic view panel parameter
xpages,lotus-domino
I usually do this using scoped variables. The idea is to use a mechanism similar to LotusScript's NotesViewEntryCollection.getEntriesByKey('keyFilter', False): Let's assume you have a Notes view where the first column is sorted by UNID (column formula = @Text(@DocumentUniqueID)). Inside your xpage you create your view panel as always. The vp's...
How to get marked rows in the XPages Extension Library design element?
xpages,lotus-domino,xpages-extlib
For the client-side, you can use Dojo. The following CSJS script will return NoteIds for all selected rows: dojo.query('.lotusFirstCell > input:checked').attr('value') For the server side, you can grab the IDs of selected documents by: var idList = getComponent('dataView1').getSelectedIds(); This will return a string array of NoteIDs. Then pass it to...
XPages: Sign-In Form Mapping without separate DNS entry?
xpages,lotus-domino
Andrew, I have played quite a lot with these login forms. And I am afraid that you are right - if you want to use the builtin login redirection method you need to be able to map the login form in domcfg.nsf - either for all sites (which your client...
Moving documents to different categories
You can build an Lotus Script Agent which processes the marked documents in view Dim session As New NotesSession Dim db As NotesDatabase Dim collDoc As NotesDocumentCollection Dim doc As NotesDocument Dim category As variant Set db = session.Currentdatabase 'Get the selected documents Set collDoc = db.Unprocesseddocuments If(collDoc.Count > 0)Then...
Extension Library in Domino: Server or Client? Or both?
client,server,lotus-domino
Using one of the OSGI Plug-ins (the Extension Library is one such plugins) means that the machine running the code will need to have that plug-in already installed. This is an excellent first step from Stephan Wissel You are going to need to set up an updatesite for your server...
Errors with the IBM Social Business Toolkit SDK
xpages,ibm,lotus-domino,social,ibm-connections
We had a some what same issue running Domino on ISeries. The problem was that the shindig server was not installed. Can your verify that the server is installed with the command: 'tell http osgi ss com.ibm.fiesta'
How do I send a doclink via LotusScript?
lotus-notes,lotusscript
It's pretty easy to create a doclink using Lotusscript. Set body = New NotesRichTextItem(maildoc,'Body') Call body.AppendDocLink(doc, 'Click me') And if you want to send an email, use the class in the link below, it even have built-in support for doclinks. :-) http://blog.texasswede.com/lotusscript-mail-notification-class/...
How to differentiate between email and chat documents in lotus notes
lotus-notes,lotus-domino
You are right: Both kind of documents have form Memo. Chat- Transcripts in addition have an item $IMTranscript that identifies them. I found out this fact, using the Icon- Column of the All Documents- view ($All), as Chat- transcripts have different icons in that view. Here is the relevant part...
Check numeric field lotusscript
lotus-notes,lotus-domino,lotusscript,lotus,lotus-formula
Create a function which changes all non-digits to dots Function ToDigitsAndDots(orig As String) As String Dim i As Integer Dim char As String For i=1 To Len(orig) char = Mid(orig, i, 1) If Not char Like '#' Then char = '.' JustDigitsAndDots = JustDigitsAndDots & char Next End Function and...
How to test that agent is running In Debug?
lotus-domino,lotusscript
There Is a very good example for doing this in OpenNTF. You can find it here. And in fact it IS for the progress bar, so you can use tho whole class from there. The trick is: you add a function with a stop statement. You measure the time before...
Web user is not authorized to access a database despite having Editor access in the ACL
xpages,lotus-notes,acl,lotus-domino
Comment of 12/02/2015 seems to be the correct Answer: Check if the self-registrated user has TWO consecutives spaces in his name, (could be because trailling space too) In group domino do a FullTrim. So we have John<space><space>Smith that is not in group XXX because in the members it's: John<space>Smith. ...
Domino Xpages with Reverse Proxy
proxy,xpages,lotus-domino
When using a reverse proxy, we recommend keeping the original URL unchanged. Because many redirects, Ajax requests, cookie are closely related to URL, if the URL changes, almost must go to modify the code. This problem is especially serious in Domino, because in a lot of Javascript code that will...
How the scheduled agent in Lotus Domino can run at some specific Hour
scheduled-tasks,lotusscript
Schedule your agent for every day at 8am. Create a second agent which starts the first agent with @Command([AgentRun]; 'yourFirstAgent') and schedule it for every day at 10pm....
Xpages getting filtered data in a view without a search box
javascript,xpages,lotus-domino
Could you change the view Selection formula to exclude all documents that have a Date To set e.g. append & DateTo = ' or & @Text(DateTo) = ' to your formula? It will probably be something like: SELECT Form='DriverForm'. Sorry, I can't remember whether the @Text part is required, but...
Lotus Notes UnprocessedDocuments on embedded view
lotus-notes,lotusscript
This example works for me: Action button 'Test' in view (LotusScript) Sub Click(Source As Button) Dim session As New NotesSession Dim db As NotesDatabase Dim col As NotesDocumentCollection Dim doc As NotesDocument Set db = session.CurrentDatabase Set col = db.UnprocessedDocuments Set doc = col.GetFirstDocument While Not doc Is Nothing Print...
Lotus Domino Web Service in WSO2 Pass Through Proxy Service
web-services,wsdl,wso2,wso2esb,lotus-domino
Solved. I created Custom Proxy (not Passthrough!) with property in inSequence: <inSequence> <property name='FORCE_HTTP_1.0' value='true' scope='axis2'/> </inSequence> and then everything works fine :)...
@dblookup not retrieving multiple values
lotus-notes,lotus-domino,lotus
I solved the my problem by making the lkpView not hidden, I don't know why its not working on hidden views though. Now it returns a multiple value as expected.
“Error - Script is busy” & crash, whenever I try to reference uidoc from button created in DXL
lotus-notes,lotusscript,lotus-formula
OK, so I tried using Formula language instead of Lotusscript in my DXL-created button in a rich text table in a rich text field in an unsaved uidoc. And it worked :-) @Setfield('deleteRow'; 1); @Command([ViewRefreshFields]) Obviously, the LotusScript that creates the DXL document subsitutes the approriate row number in each...
dojo.exists fails with IE11
javascript,dojo,xpages,internet-explorer-11,lotus-domino
Using dojo.exists for this isn't very appropriate, given that btnUpload is technically just a DOM ID, and not an actual object in the global scope. if (document.getElementById('btnUpload')) would seem to be far more appropriate in this case. When a global reference is encountered that doesn't match an actual global variable,...
Is it correct to select based on date in a Lotus Notes View?
performance,lotus-notes,lotus-domino,notesview
Performance- wise it is a very bad idea to put @Today or @Now in a view selection formula. There are some alternatives to do what you want to do: Use @TextToTime( 'Today' ) or similar. In that case, the view indexer does not 'know' that something changed. You need to...
Need to extract attachments from Outlook (.msg) attachment via Lotus Notes
outlook,lotus-notes,attachment,lotusscript
Save the attachment using Attachment.SaveAsFile, then open the MSG file using Namespace.OpenSharedItem.
How to set minFractionDigits/maxFractionDigits for view column globally?
xpages,lotus-domino
Probably the cleanest option is to use a Converter that picks up the number of decimal places from a keyword or some other config document. Here's an example of a system-wide converter I set up to configure the date format http://openntf.org/XSnippets.nsf/snippet.xsp?id=date-converter
Lotus Notes: I'm Getting “Object variable not set” at the end of Do While Loop
lotus-notes,lotusscript,notesview
Change your condition to Do While doccount1 < 11 AND Not v2entry Is Nothing v2entry.isValid() can only be used if v2entry is a ViewEntry. It fails when v2entry is Nothing. This is the case when Set v2entry = vc.GetNextEntry(v2entry) was executed for last entry. You might use v2entry.isValid() though if...
How to return the image to the Remote Java Debugging in XPages is dropped after a short time
xpages,lotus-notes,lotus-domino I believe that the solution here is to make sure that no threads are left running or hung that are tying up the server debugging port. It is very easy, especially if you are new to this debugger, to switch to the XPages perspective and continue working while the debugger... Why wont agent move to next line of text
After first while loop your requestDoc1 is Nothing. That's why nothing happens for next lines from text file. Put the line Set requestDoc1 = viewAllContracts.GetFirstDocument after line Line Input #filenum%, strLineValue$ Then it will work for all text file lines. ...
Remote Java Debugging in XPages is dropped after a short time
xpages,lotus-notes,lotus-domino
I believe that the solution here is to make sure that no threads are left running or hung that are tying up the server debugging port. It is very easy, especially if you are new to this debugger, to switch to the XPages perspective and continue working while the debugger...
Why wont agent move to next line of text
After first while loop your requestDoc1 is Nothing. That's why nothing happens for next lines from text file. Put the line Set requestDoc1 = viewAllContracts.GetFirstDocument after line Line Input #filenum%, strLineValue$ Then it will work for all text file lines. ...