w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I prevent Lotus Notes users from forwarding or copying a message sent via Notes.jar API in Java?
See following technote regarding usage of $KeepPrivate field. You will need to use this field when sending your email

Categories : Java

Lotus Notes - Go to URL from a picture
Set the Content Type as URL and simply enter Content Value as www.ibm.com in your Hotspot properties. The error comes because a text value (URL) is required in Content Value and @URLOpen does not return text value.

Categories : Image

How to set email as urgent in lotus notes using VBA
Assuming you have the code already for sending an email via VBA, you just need to set the importance item on the mail document before sending: maildoc.Importance = "1" '1 = high, 2 = normal, 3 = low

Categories : Api

Tabbed tables in Lotus Notes
Why not use the Java interface in Notes to pull information into that environment rather than push the information/format into Notes? The Notes designer is Eclipse based. Plus with the recent changes in Notes external db access is simplified. I am just trying to think a different direction but still using Java. The Notes side might be faster for you.

Categories : Java

JavaScript to set field in Lotus Notes Web Form
I guess this is not the complete code. At least one line is missing that defines "f" The curly brackets have no sense in your code... In the onload- event of the form, this code should work: var f=document.forms[0]; var ax = new ActiveXObject( "WScript.Network" ); f.MachineName.value = ax.ComputerName; Of course this will only work in InternetExplorer as shown here

Categories : Javascript

creating fields in lotus notes document?
Yes, that is the cool thing about IBM Lotus Notes databases: you can put items (=fields) in a Notes document without a prior definition of fields. If you create items in a document with doc.ReplaceItemValue() and save or send the document then the items are just there. You can check the items when you open the property box for a selected document. All items are listed on document properties' second tab. Another question is of course to define fields in a form so that the created items are visible to user without looking at document properties box. Open database in Designer and put the fields in right position and size to form. Your question and comments telling that you want to create a document, fill it with data and send it to users. If all users have access to your Notes server th

Categories : Vba

All Username's in a specific Role in Lotus Notes
If you have a bit influence how ACL entries are look like then you should be able to achieve a good solution. Following code collects all entries in ACL with the certain role and accepts only those entries which are of type Person or Person group. Function GetRoleMembers(roleName As String) As String Dim session As New NotesSession Dim db As NotesDatabase Dim acl As NotesACL Dim entry As NotesACLEntry Dim sMembers As String Set db = session.CurrentDatabase Set acl = db.ACL sMembers = "" Set entry = acl.GetFirstEntry While Not ( entry Is Nothing ) If entry.IsRoleEnabled( roleName ) And entry.IsPerson Then sMembers = sMembers + entry.Name & "," End If Set entry = acl.GetNextEntry( entry ) Wend GetRoleMe

Categories : Misc

Meeting Invite on Lotus notes using Java API
You need to create a group event instead of a public event, if you want to be able to respond. You can read everything about this in the RFC 2446. It is mandatory to define attendees for a group event to work (see Chapter 4.2 in above documentation). This might look like this: ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN=BIG A:Mailto:A@example.com ATTENDEE;RSVP=TRUE;TYPE=INDIVIDUAL;CN=B:Mailto:B@example.com RSVP=TRUE lets B respond. If you need to make sure, that appointments do not get mixed up, generate a unique uid for every event and reuse it if something changes. Otherwise you will not be able to send updates.

Categories : Java

Using Python To Access E-mail (Lotus Notes)
You can do this in LotusScript as an export of data. This could be an agent that walks down a view in Notes, selects a document, document attachments could be put into a directory. Then with those objects in the directory(ies) you can run any script you like like a shell script or whatever. With LotusScript you can grab out meta data or other meaningful text for your directory name. Detach the objects you want from richtext then move to the next document. The view that you travel down will effect the type of documents that you are working with.

Categories : Python

Lotus Notes - Web form agent - not sending email
If you use a form instead of an XPage you will need to place your code in the agent and set that agent as WebQuerySave agent of the form. LotusScript under the button will not run when accessed from the web. Also you cannot use UI classes like NotesUIWorkspace in backend code.

Categories : Misc

Create a Microsoft Outlook Task from Lotus Notes
with testing (and googling) I have found that .Recipients.Add("Joe Soap") will correctly add the name "Joe Soap" to the "Send To" field providing that "Joe Soap" has previously been defined as a contact in Outlook.

Categories : Vba

Lotus Notes: Export attachments to excel sheet
Since in case of errors,it's very difficult to determine what is the problem, I generally try to program as much as possible within the Excel sheet using VBA. Once it works in VBA, I port the code to Excel. I would recommend doing this here - this is not really a Lotus Notes question, but a VBA one.

Categories : Excel

Lotus Notes - open a file from Action Button
If you want to open a file like .pdf or .txt and this extension is connected in Windows with a program to open with then you need only to specify the filepath of your file. This would be the formula: @Command([Execute]; "C:\temp\myFile.pdf") and this the LotusScript code: Dim result As Integer result = Shell("C: empmyFile.pdf", 1)

Categories : File

Find and delete duplicates in a Lotus Notes database
Probably the easiest way to approach this would be to force the view to always display documents with children first. That way the tool you have purchased will behave consistently for you. You would do this by adding a hidden sorted column to the right of the column that that you have circled. The formula in this column would be @DocChildren, and the sort options for the column would be set to 'Descending'. (Note that if you are uncomfortable making changes in this view, you can make a copy of it, make your changes in the copy, and run ScanEZ against the copy as well. You can also do all of this in a local replica of the database, and only replicate it back to the server when you are satisified that you have the right results.) The other way would be to write your own code in LotusSc

Categories : Java

Lotus Notes Agent - Java Security Error
First look at what the error actually is: Access denied (java.lang.RuntimePermission exitVM.0) You are telling the VM to die and you do not have the rights to do this. If you had, you would cause anything else running on that JVM instance to die as well, possibly leading to a hang/crash. Secondly your code is failing in the ClipboardTest.main() method, which you haven't posted any code for. In the agent properties there is an option to add debug data. This will give you the exact line number that is causing the issue. My guess is you have a System.exit() call in the ClipboardTest.main() . It shouldn't be there.

Categories : Java

Lotus Notes:Web page refresh restriction on attachment upload
It sounds like the problem might be more that you have to re-select the drop-down to get the hide-when on that to work after a refresh ? That is, the value is already selected, so there's no change, so the hide-when isn't triggered ? If so, you probably need to package up the drop-down's hide-when code into a function (if it isn't aleready) and always call that during onload so that if the page refreshes, all hide-when is honoured. That's assuming the hide-when resulting form the drop-down change is also in Javascript. If it isn't and you have "Refresh fields on keyword change" ticked in the Notes Designer field's properties, then that's what's causing the second refresh, and your best best would be to un-tick that peoperty and simulate the resulting hide-when using javascript, with an o

Categories : Javascript

Split all characters in a string with no delimiter into an array with lotus notes
@Explode uses as delimiters space, comma and semicolon if second parameter is empty. That doesn't help you in your case. Just use "normal" string functions like substring(): function test() { var strString = "thisIsTheString"; var strReturn = ""; for (var i = 0; i < strString.length; i++) { strReturn += strString.substring(i, i+1) + "<br/>"; } return strReturn; } In case you really need an array of characters then code would look like this: var strString = "thisIsTheString"; var arrayReturn = new Array(); for (var i = 0; i < strString.length; i++) { arrayReturn[i] = strString.substring(i, i+1); }

Categories : Javascript

Lotus Notes Java program to access $Revisions columns
The Notes formula language has a built in formula for accessing the last modified date of a document: @Modified Or if you have a reference to the document from Java, the getLastModified() method should get you that information. Your query could be: String query = "Form = ""Protocol"" & @Modified > @TextToTime(""1/1/1970"") "

Categories : Java

Silverlight application using vb.net. Issue creating new email in lotus notes
All you do in the moment is to create a new document in the backend and fill it with values. It is like creating a word document without opening it... You need some more code to actually SHOW the document you created. In addition you need to assign a Form, otherwise Notes will not know, how to display this document: Dim session = AutomationFactory.CreateObject("Notes.NotesSession") Dim notesdb = outlook.GetDatabase("", "") Dim ws = AutomationFactory.CreateObject("Notes.NotesUIWorkspace") notesdb.OpenMail() Dim doc = notesdb.CreateDocument() Dim msg = "Hey whats up" doc.ReplaceItemValue("Form", "Memo") doc.ReplaceItemValue("SendTo", "person@temp.com") doc.ReplaceItemValue("Subject", "Hello") Dim rtitem = doc.CreateRichTextItem("Body") rtitem.AppendText(msg) ws.EditDocument( True,

Categories : Vb.Net

Attachment Coming while sending meeting invite on lotus notes
You're sending a multipart message with only one body part. Most mail readers are going to assume the first text (plain or html) body is the main body and the rest are attachments. Your message has no main text body part, so the mail reader is likely assuming that the body part you sent is an attachment.

Categories : Java

Creating Lotus Notes plugin for calendar entries via Java
"Object variable not set" is common Lotusscript error. I suppose, something fails when opening your entry. It might be missing field or wrong value in some field. The best approach is to compare your document at field level (properties box) with exactly the same entry you make manually. If it fails, start debugger and find problematic piece of code.

Categories : Java

How to modify the webservice provider output format from xml to JSON in Lotus notes 8.5?
Web services is SOAP in Domino only. If you require a REST service there are number of things you can do. Create a normal web agent and write your output in JSON. Use the URL shortcuts to read a document/view in JSON (R7.02 onwards). For example: http://server.my.lan/database.nsf/viewName?ReadViewEntries&outputformat=JSON You can use the Domino Data Services (R8 onwards). Use XPages JSON RPC component. Part of ExtLib (UP1/openNtf R8.5.x, built in R9). Some details on it here. Also an example here. Personally I'd go with the XPages JSON RPC component, as it offers the best level of control and ease in security.

Categories : Xml

Is Lotus Notes unable to display colors in HTML-mail precisely?
Check the output code - did it remain as #afbecd? If so, then it is an interpretation problem that you'd probably have to work around in Lotus notes. Try a slight variant of that color and see if you can get closer to what you want. Lotus notes is only about 0.2% of most subscribe lists anyway, so unless you are sending to a special "Lotus Notes users" group, i'd suggest the "who cares" solution.

Categories : HTML

Lotus Notes - lotusscript: shell function: illegal function call
It is not possible to "Execute" a Textfile. usually there is no "run" function defined for dsx- files. You could do it like: Dim result as Integer result = Shell("notepad.exe D: estF.dsx", 1) Or find out, which program is linked to dsx (via registry) and execute the corresponding exe with filename as Parameter. If the filename contains spaces, then it has to be enclosed: Dim result as Integer result = Shell({notepad.exe "D: estF.dsx"}, 1) And reading your last question this approach for sure is NOT the right for your request. You have to use "open" in order to process files... Like Per Hendrik told you in his response.

Categories : Shell

Symphony Objects and Excel Application Objects Help File in Lotus Notes
CreateObject("Excel.Application")... is a COM call to create a reference to an ActiveX object. The help/reference to that ActiveX object can usually be found on the homepage of the objects vendor (in this case Microsoft). See http://msdn.microsoft.com/en-us/library/wss56bz7(v=vs.90).aspx For StarOffice/OpenOffice/Symphony this is called "Universal Network Objects" (UNO) and can be found here: http://www.openoffice.org/api/ Check out John Heads blog and presentations for examples of both.. .

Categories : Excel

Saving CSV file on UNIX Server from windows based Lotus Server using Lotus Scripting
You need to provide more details. Presuming you can access the Unix folder from Windows Explorer, map the drive and let Windows store the password. Then access it through the mapped drive letter. LotusScript can't write to UNC locations, so you need the drive letter. That file will be probably picked up by another program. CVS is the worst approach. You could offer to write to a Web Service or provide one. Update On Unix "access" more often than not doesn't mean a CIFS (a.k.a Windows share) access, but SSH (or FTP). For SSH you would want to: configure SSH Keys, so you actually don't need username/password any more use a Java library as asked on Stackoverflow before (or an alternative) you also could write the file to a temp directory and call a cmd file for the copy operation With

Categories : Windows

<%=HTMLEncode(rs("Notes"))%>, Error when Notes = Null
You could try modifying your query - for example SELECT MyCol1, MyCol2, ISNULL(Notes, '') AS Notes FROM MyTable In this way, you guarantee that the query doesn't return NULL even if the underlying table contains NULL.

Categories : SQL

How to debug a lotus script agent inside a lotus script agent
An agent, that is called in script from another agent runs in the background. These agents can not be debugged easily. If the called agent runs on the server, you can use the remote debugger, to debug that agent: you have to enable it in the server document, start the remote debug task, and enable remote debugging in the properties of the called agent. Then you have to be fast. You define a delay that each agent waits for the debugger to attach, before it really starts with its code. During this time, you have to start the remote debugger, open the database and select the agent to debug... Quite painful. And the normal Debugger has to be off and the agent you startet has to run in client background mode, otherwise you will not be able to switch to remote debugger... If both agents are Lot

Categories : Debugging

How do I instantiate Lotus 123 Application
GetObject() returns a reference to an object provided by a COM component, in your case Lotus123. As you are communicating with Lotus123 via COM, and Lotus123 apparently does not support the "As New" syntax (which wasn't properly supported even in VB6, and Lotus123 is way older) I see no alternative to using GetObject().

Categories : Misc

Convert Lotus 123 to Excel File to MS Access Using VB or PHP
The data looks like it was prepared in some system before it was converted into a Lotus workbook. Try to locate the source system to see if the data is in a format that is easier to parse. If that is not available, you may need to create a custom parser to read in lines until you reach the '=' delimiter and then join up blocks of text, trimming white space, to get the columns correctly aligned. You could try saving the workbook in Tab delimited format and running the following ' ParseSheet.vbs Dim fso, Text, Out Set fso = CreateObject("Scripting.FileSystemObject") Set Text = fso.OpenTextFile("sample.txt") Set Out = WScript.StdOut Dim Columns Dim Delimiter Dim Content() Dim Tab Dim Line Tab = Chr(9) Sub ParseLine(Line) Dim Column Dim Delimiter Dim Value Column = 1

Categories : Vb.Net

Create new document with autofilled field - Lotus Script
This is how I would solve it: A document ("Doc1") is created using Form1. The fields are populated and the 'Send' button is clicked. The 'Send' button will create a new document ("Doc2") using Form2. The code will populate the 'Title' field on "Doc2" with the value of 'Title' on "Doc1", and create a new email. The email will contain a doclink to "Doc2", so the recipient can click on it to open the document. Save "Doc1" and "Doc2" and close both documents. Use the AppendDocLink method of the NotesRichTextItem class to create the doclink.

Categories : Misc

How to view notes in notepad
You can create a new activity. Copy and modify stuffs from the NoteEdit class if you want to make it quick and dirty. If you have time, you should spend some time think about design and follow DRY as Code-Guru suggests "Copy and paste coding is a poor design". public class NoteView extends Activity { private NotesDbAdapter mDbHelper; private TextView mTitleText; private TextView mBodyText; private Long mRowId; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mDbHelper = new NotesDbAdapter(this); mDbHelper.open(); setContentView(R.layout.note_view); setTitle(R.string.edit_note); mTitleText = (TextView) findViewById(R.id.title); mBodyText = (TextView) findViewById(R.id.body); mRowId = (savedInstanceState == null) ? null

Categories : Android

JQM Text input used as Notes??? In an APP
Using local storage is very simple and this question is very broad, but I will start you off. To set an item in local storage: localStorage.setItem(key, value) Local storage only stores values as strings so make sure you serialize to JSON if you're looking to store an object. To retrieve item from local storage: localStorage.getItem(key) This returns the string that you associated with the given key earlier. So for example when the user leaves the app, as part of the shutdown process you could write the notes string to local storage. Then on start-up you could check to see if there is anything stored there and retrieve it if it is. More info on local storage DiveIntoHTML5

Categories : Jquery

Something like publish notes in a webpage
You're accessing the wrong object in your loop, contenidos instead of contenido. {% extends 'base.html' %} {% block title %} Contenidos {% endblock %} {% block content %} <h2> contenidos </h2> {% for contenido in contenidos %} <h3> {{ contenido.title }} {# was contenidos.title #} </h3> <p>{{ contenido.content }}</p> {% endfor %} {% endblock %}

Categories : Python

Generating release notes in Rep. in GIT
If you are looking to create build notes you can use git log LAST_TAG..THIS_TAG If your commits have something like JiraID or whatever you can do git log --grep JiraID LAST_TAG..THIS_TAG and later parse it in whatever way.

Categories : GIT

Why parent is stored in git notes?
Simply because notes namespaces are not something special in git, they are just ordinary branches with complete history. You can do git checkout notes/commits and work with your notes as with any other branch, e.g. you can do git log notes/commits to see commit log for your notes. This way you can track all the changes to your notes. You said that: .git/refs/notes/commits contains one hash (say, MainHash_2), which is a tree object. It's not a tree object, it's a commit. Just like in .git/refs/heads/master. You can check it with git cat-file -t <hash>

Categories : GIT

git: avoiding merge conflicts in git-notes
For example, if there is a conflict in file A, then file A gets merged, but file B does not get merged As mentioned in "Merging git notes when there are merge conflicts in them" git fetch origin refs/notes/commits:refs/notes/origin/commits git notes merge -v origin/commits If there are conflicts, it will now tell you to edit .git/NOTES_MERGE_WORKTREE and then commit the result via git notes merge --commit, or abort the merge with git notes merge --abort. So B should get merged after the git notes merge --commit. Note: Git 2.6 (Q3/Q4 2015) will add git notes merge strategies.

Categories : GIT

How to improve notes database performance?
There are many possible reasons for poor performance, and many things that we could suggest. For example, we could talk about disk fragmentation. We could discuss what Domino version you have (which you didn't mention) and possible upgrades. We could discuss your server's i/o subsystem... But the first and most glaringly obvious issue is that you have too many views!! The fact is that 30,000 documents is not at all unreasonable for a Notes database, even with a decent amount of new and edited documents per day. On a properly designed and maintained database on fairly basic hardware, this should perform just fine. I've seen databases with 100,000 or more docs with tens of thousands of new and deleted docs every day perform okay, but I've also seen them perform badly if, for example, delet

Categories : Performance

git: java git api for fetching git notes from a repository
JGit might have what you're looking for, specifically http://download.eclipse.org/jgit/docs/latest/apidocs/org/eclipse/jgit/notes/NoteMap.html. For instance, looking up the note for a specific commit can be done with: Repository repo = ... RevWalk walk = new RevWalk(repo); NoteMap map = NoteMap.newEmptyMap(); Ref ref = repo.getRef("refs/notes/commits"); if (ref != null) { RevCommit notesCommit = walk.parseCommit(ref.getObjectId()); map = NoteMap.read(walk.getObjectReader(), notesCommit); map.getNote(notesCommit.getId()); }

Categories : Java

Git: How to retrieve the notes ref from the remote repository?
I've just found it on the Git website: $ git fetch origin refs/notes/*:refs/notes/* Or you can put it the repo config .git/config, watch the last line: [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = git@github.com:schacon/kidgloves.git fetch = +refs/notes/*:refs/notes/* The article mentioned above is full of expressions like breaks down, difficult, super difficult and painful. So I'd avoid notes like the plague.

Categories : GIT



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.