lotus-notes

XPages - save date only in Date field

跟風遠走 提交于 2019-12-01 21:32:06
I'm using an Edit Box control to display a date field. When the XPage is saved, I would like to save the date only (now both date and time are being saved). Is there any way of doing this? Here is my code: <xp:inputText id="dateReparatur" value="#{document1.dateReparatur}"> <xp:this.converter> <xp:convertDateTime type="date" dateStyle="long"> </xp:convertDateTime> </xp:this.converter> <xp:dateTimeHelper></xp:dateTimeHelper> </xp:inputText></xp:td> UPDATE: I have now implemented the following code: var dt = currentDocument.getItemValueDateTime("dateReparatur"); var dateonly = dt.getDateOnly();

Authentication and web services in Domino?

狂风中的少年 提交于 2019-12-01 20:57:09
问题 Is there a way to allow authentication in Domino webservices? If so, how would I do it? 回答1: IBM has an example here. There are other options. 回答2: Another way in JAVA would be: ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd); 来源: https://stackoverflow.com/questions/10539408

Authentication and web services in Domino?

百般思念 提交于 2019-12-01 20:07:55
Is there a way to allow authentication in Domino webservices? If so, how would I do it? IBM has an example here . There are other options . Ketil Hjerpaasen Another way in JAVA would be: ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd); 来源: https://stackoverflow.com/questions/10539408/authentication-and-web-services-in-domino

Call to getEmbeddedObjects(); (Domino Server API) returns wrong results

烈酒焚心 提交于 2019-12-01 19:47:17
The Domino server API getEmbeddedObjects(); returns the wrong result (zero) when a mail containing an attachment (as embedded object) is sent from the script. Though an attachment is sent as an EmbeddedOBject , getEmbeddedObjects(); returns ZERO . The mail type is NOT MIME . This is a Java application. Is there is any workaround for this problem? I take the body from the document. If the body is of richtextitem, I call the getEmbeddedObjects() which returns zero though an attachment is present as embedded object. Looking through all of the items in a document for the possibility of an

Lotus Notes XPages for design and Oracle (or other RDBMS) for data

房东的猫 提交于 2019-12-01 17:40:59
问题 I plan to make an web application using XPages for the design (plus the Lotus Notes Elements), but instead of storing the data in Lotus Notes, I will store the data in a RDBMS (specifically an Oracle Database). As you can see, I want to create a clear separation between the design and data. Is there a way I can do this? I mean, is there a way I can use Oracle as the data source and XPages/Lotus Notes for the UI only? Thanks a lot! 回答1: There actually has been native support for RDBMS/JDBC

How to get list of views from “mail” in Lotus Notes using .NET?

删除回忆录丶 提交于 2019-12-01 14:20:45
I am accessing mail from Lotus notes. And in order to access "Inbox" i am using below code: _notesDatabase = _lotusNotesServerSession.GetDatabase(LotusNotesServer, "mail\\" + nsfName, false); NotesView inbox = _notesDatabase.GetView("($Inbox)"); Similarly for "Drafts". But here i am specifying name of each view in GetView method. Which is not good coding. I want to list these views "Inbox","Drafts" programaticaly using C#. Can anybody give me solution? There is a property of the NotesDatabase class called Views that will let you access all the views in the database. You could loop through them

How can I call a SOAP 1.2 Web service from a LotusScript agent?

柔情痞子 提交于 2019-12-01 13:06:05
I'm using a Lotus Domino 9 on a windows Server I must call a Soap 1.2 web service that is not maintained anymore The Lotus Web service consumers only accepts Soap 1.1 web services, So I cannot use this nice feature to bind my web services. Is it possible to call a Soap 1.2 web service from my LotusScript agent and if yes, what are the needed steps ? Finally I found a solution using the XMLHTTP object Sub Initialize Dim xmlhttp As Variant dim DOMDocument As Variant Dim soapEnvelope As String Dim webService As String dim username As String Dim password As String Dim strxml As String Set xmlhttp

How can I call a SOAP 1.2 Web service from a LotusScript agent?

倖福魔咒の 提交于 2019-12-01 11:38:52
问题 I'm using a Lotus Domino 9 on a windows Server I must call a Soap 1.2 web service that is not maintained anymore The Lotus Web service consumers only accepts Soap 1.1 web services, So I cannot use this nice feature to bind my web services. Is it possible to call a Soap 1.2 web service from my LotusScript agent and if yes, what are the needed steps ? 回答1: Finally I found a solution using the XMLHTTP object Sub Initialize Dim xmlhttp As Variant dim DOMDocument As Variant Dim soapEnvelope As

Remove Lotus Notes design element inheritance programmatically

一个人想着一个人 提交于 2019-12-01 09:33:05
问题 As part of an effort to create a rudimentary revision control system, I would like to programmatically disable design element level inheritance on a Lotus Notes template. I have so far tried the following: DXL export (ForceNoteFormat=true) + XSLT. This failed with a validation problem in the importer, on fields(!). DXL export (ForceNoteFormat=false) + XSLT. Seems to work, but I'd rather not use a DXL solution for something this general. An area I would like to explore: Loop over all (design)

Fail to open Database using java notes api

六眼飞鱼酱① 提交于 2019-12-01 08:52:43
I am trying to use a java program to control my lotus notes locally to send email automatically for me. I have encountered the following issues when trying to get a database object. try { NotesThread.sinitThread(); Session s = NotesFactory.createSession(); Database db = s.getDatabase("", "mail/xxxx.nsf") } finally { NotesThread.stermThread(); } I got the following Exception: NotesException: Database open failed (%1) at lotus.domino.local.Database.Nopen(Native Method) at lotus.domino.local.Database.open(Unknown Source) I have copy my nsf file and Notes.jar to my classpath, anyone knows what is