lotus-notes

Picture download from url via lotus script

安稳与你 提交于 2019-12-12 04:49:27
问题 I want to download one picture from url to my Lotus Notes application. I can get text field from url, but image is difficult. I try to put pic to a rich text field, but it doesn't work. Any idea? 回答1: You can download an image from URL via LotusScript with the help of a little Script Library of type "Java". Create a Script Library "GetImageFromUrl" of Type "Java" and put in following code: import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java

Incorrect data type for operator or @function time/date expected on lotusscript?

*爱你&永不变心* 提交于 2019-12-12 04:35:27
问题 In lotusScript: I've used: doc.DocDate = Format(document.get("DatePublished"),"mm/dd/yyyy") 'Rem return 08/22/2017 In formula: I've used for to get year: @Year(DocDate) But when i run the program i get the error : "incorrect data type for operator or @function time/date expected". How to fix it? 回答1: Get date value with document.DatePublished(0) or document.GetItemValue("DatePublished")(0) Then your field DocDate should be calculated properly. @Year() expects a NotesDateTime value. DocDate is

Where should I use XSP.endAjaxLoading()?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:21:45
问题 I have a Xpage that takes too long to load. So the client ask me to do a loading indicator. I searched and found XSP.startAjaxLoading() , that I put in onClientLoad event of the Custom Control. But now I don't know where should I put XSP.endAjaxLoading() to make the loading screen go away. I'tried to use in afterRenderResponse and beforeRenderResponse: view.postScript("XSP.endAjaxLoading()") , since this comand is CSJS, but it doesn't work. Thanks in advance. 回答1: I think you want to put it

how to bypass lotus notes password log in - JAVA code

浪尽此生 提交于 2019-12-12 04:07:37
问题 My code works great so far, except for one part which I need to bypass somehow because this is going to be an autosys job. That one part is logging in to lotus notes (when I'm logged in and the app is still running); every time my script runs it requires the user to input his password. I've tried code to log in to my account but it still didn't work for me, so I was wondering what am I missing? Any help would be greatly appreciated! My code is below. It is very close to being finished. The

Set 'From' email address in Lotus Notes when sending via VBA

泪湿孤枕 提交于 2019-12-12 03:49:33
问题 I am using a VBA function in an Access database to call Lotus Notes to send automated emails to customers. The emails are being sent from the users personal Lotus account so that they have a history of the sent emails in their Sent items. However, I don't want the customers to see our internal email addresses. We are instructing the customers not to reply to the email (call us instead) and want the email to appear to be from noreply@company.com. I am able to set the 'ReplyTo' field to

how to implement AclServiceUtils.getAcl() in order to retrieve user info from lotusnotes

旧街凉风 提交于 2019-12-12 03:25:24
问题 I'm trying to find a way to get the complete user list for a lotus notes document. I am unable to fetch the users and display their permissions in openCMIS. Does anyone know how to obtain the complete ACL of every user for a specific document? public class AclServiceUtils { private static final Logger LOGGER = LoggerFactory.getLogger(AclServiceUtils.class); public static Acl getAcl(Session session, String objectId, Boolean onlyBasicPermissions) throws IOException { ObjectIdentity objId =

For JDBC in XPages, how does the server know the connection information?

╄→гoц情女王★ 提交于 2019-12-12 03:11:24
问题 Ok, I got one of our JAVA/JDBC guys to come take a look at my JDBC issue as documented in http://stackoverflow.com/questions/9787525/jdbc-ordeal-it-shouldnt-be-that-difficult-partial-solved-new-errors It seems that if I put ojdbc14 as the ConnectionName I get this error: Error while reading the relational data Error while loading connection ojdbc14 Error parsing XML stream InputStream cannot be null But if I put ojdbc14.jdbc as the ConnectionName I get this error: Error while reading the

Graph rendering in the server is incorrect

丶灬走出姿态 提交于 2019-12-12 02:52:57
问题 I have an application deployed in the development server (notes client). The application composed a function to export the data in the local machine of the user along with the graph generation. My problem is, when the data are exported, the rendering of graph is incorrect (in the server), but when I run it in my local machine the graph rendering is fine. I used MS 2007 in my local machine but in the development server there is NO MS Office installed.Is there any way to do this? Here is the

How to Identify the Document is in Inbox/Draft/Sent in Lotus Notes Using Notes API?

狂风中的少年 提交于 2019-12-12 02:48:52
问题 DocumentCollection documents = db.getAllDocuments(); Document doc = collection.getFirstDocument(); Which method used to identify the document Location. Whether it is in Inbox or Sent or Drafts. 回答1: The safest way is to get a handle to each folder using db.GetView() and then look to see if the document is within that folder. For that you could use the db.AllEntries() method to get a NotesViewEntryCollection, and then call the GetEntry method to see if the document is within that collection.

Port 0 in DIIOP_IOR.TXT, how do I change it?

江枫思渺然 提交于 2019-12-12 02:19:07
问题 I am trying to login remotely into Domino with standalone Java program. I have ncso.jar (and TrustedCerts.class) in classpath. The DIIOP_IOR.TXT file is generated by the diiop task. If I copy the file contents directly into my program and try creating the session like this: String ior = "IOR:....." // 404 bytes Session session = NotesFactory.createSessionWithIOR(ior, "username", "password"); the result is: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: connect: Address is invalid on