w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

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

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

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

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

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

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

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

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

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

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

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 - 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

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

When screen size is small enough, the third item in list moves to second row to the right rather than left
Instead of styling the li directly, I removed the li css and styled #logoItem and that seems to work in FF: http://jsfiddle.net/derekstory/62jdT/3/ ul { list-style: none; -webkit-padding-start:0px; } h2 { clear:both; } #leaderBiosList { width:100%; } .presskit a:hover { color:#f57d3d; } .presskit a { color:#f57d3d; text-decoration:none; display:block; } .presskit h2 { font-size: 33px; font-weight: normal; padding-top:2%; width:33%; } .logoItem { float: left;; width: 200px; height: 20px; background: #999; margin-left: 20px; margin-top: 20px; } .logoItem img { max-width:100%; } .whiteLogo { background-color: #333; } .cf:before, .cf:after { content:""; display: t

Categories : HTML

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

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

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

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

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

Image from Android expansion file appears too small
In the end, I fiddled around with the layout XML file that was displaying the shrunken image. I changed the attributes of the imageView like so: Width / Height: fill_parent (both) Scale Type: fitCenter Now, the images are slightly bigger than I initially expected, but I think it looks better this way. And now the images are of a consistent size. Problem solved! If anyone else is having trouble with what I've been experiencing, hope this helps.

Categories : Android

How to create videoview like youtube "small screen and full screen play in android "
You have to override setAnchorView in your new java class which extend the Android's MediaController (android.widget.MediaController) and add an extra view/button to the controller. And do something like this @Override public void setAnchorView(View view) { super.setAnchorView(view); Button fullScreen = new Button(context); fullScreen.setText("FullScreen"); FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); params.gravity = Gravity.RIGHT|Gravity.TOP; addView(fullScreen, params); } now add clicklister to view

Categories : Android

SlidingPaneLayout with a MapFragment in right pane. Map is not showing when left pane is on screen (on small screens)
<ListView android:id="@+id/left_pane" android:layout_width="200dp" android:layout_height="match_parent"/> <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map" android:layout_height="match_parent" android:layout_width="300dp" android:name="com.google.android.gms.maps.MapFragment"/> From what I can tell, android:layout_gravity="left" and android:layout_weight="1" are both unnecessary. Everything else should be fine. I'm not sure what you're expecting. I have a feeling that the reason that the map can't be seen is a product of the map itself. Try replacing it with something else. It should show up just fine. Sample reference: Exploring SlidingPaneLayout, How to use the S

Categories : Android

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

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

Android Preferences screen appears underneath subscreen
The solution for me was to set the theme in the Activity in the manifest.xml file: <activity android:label="@string/livewallpaper_settings" android:name="com.developername.LiveWallpaperSettings" android:exported="true" android:icon="@drawable/ic_launcher" android:theme="@android:style/Theme.Black"> </activity>`

Categories : Android

how to format email body for the text send through php script
Use nl2br() to convert new line characters to <br> tag. $Description = nl2br($_REQUEST["txtDescription"]); Additionally you can also do the following to preserve multiple spaces - $Description = str_replace(' ', ' &nbsp;', $Description);

Categories : PHP

Sending outlook email with body as contents of a text file
'I didn't look into the particular issue with your file reading. 'Below my example, just tested it works. 'Good luck mate :) Sub CatchMe() Dim outobj, mailobj Dim strFileText Dim objFileToRead Set outobj = CreateObject("Outlook.Application") Set mailobj = outobj.CreateItem(0) strFileText = GetText("C:Share1.txt") With mailobj .To = "user@user.com" .Subject = "Testmail" .Body = strFileText .Display End With 'Clear the memory Set outobj = Nothing Set mailobj = Nothing End Sub Function GetText(sFile As String) As String Dim nSourceFile As Integer, sText As String nSourceF

Categories : Vbscript

Zbar sdk not working for small screen android devices
I have the same issue. Try set the required value of android.hardware.camera.autofocus to false in manifest. I have Zbar tested in some Samsung phones without camera autofocus function, it works.

Categories : Android

Python : How to parse the Body from a raw email , given that raw email does not have a "Body" tag or anything
Use Message.get_payload b = email.message_from_string(a) if b.is_multipart(): for payload in b.get_payload(): # if payload.is_multipart(): ... print payload.get_payload() else: print b.get_payload()

Categories : Python

How can ı make Layout for Small than 3" screen and Layout for 4.8" screen (android)
Android has a lot of really nice tools to help developers deal with multiple screen sizes and densities. You can read more about how it all works at this Android Developers Page.

Categories : Android

How to sent table form on email body in android programaticaly
Check this question ..link It seems there is no way to do it other than sending the html as an attachment.

Categories : Android

Attach image from resource with Email Body Android
BitmapFactory.Options bitmapFatoryOptions=new BitmapFactory.Options(); bitmapFatoryOptions.inPreferredConfig=Bitmap.Config.ARGB_8888; Bitmap myBitmap=BitmapFactory.decodeResource(getResources(),R.drawable.face4,bitmapFatoryOptions); File mFile = savebitmap(myBitmap); Uri u = null; u = Uri.fromFile(mFile); Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("image/*"); Intent.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGmail"); emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Send Mail"); emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_texthere)); emailIntent.putExtra(Intent.EXTRA_STREAM, u); startActivity(Intent.createChooser(emailIntent,"Send"));

Categories : Android

How do I Center Left-aligned Text in an Outlook Email?
Sounds like you are referring more to a "fluid" layout (basing off percentage) rather than a "responsive" one (where you would use media queries to specify styles based on width of display device). Since setting a pixel value for the margin-left wouldn't make a lot of sense, why not set the margin-left to a percentage value? margin-left: 4%; Otherwise, you might want to take a look at the following resource found on MailChimp regarding media queries. http://templates.mailchimp.com/development/media-queries/

Categories : HTML

sending file attachment via html form sends big junk of text to the email body
I've always preferred hand-rolling the MIME encoding as well, like you're doing, instead of using a library. You're close. Try this: // to, from, subject, message body, attachment filename, etc. $to = "to@to.com"; $from = "from@from.com"; $subject = "subject"; $message = "this is the message body"; $filename="/home/user/file.pdf"; //location of file - path and filename $fname="file.jpeg"; //name of file for display purposes $headers = "From: $from"; // boundary $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // headers for attachment $headers .= " MIME-Version: 1.0 " . "Content-Type: multipart/mixed; " . " boundary="{$mime_boundary}""; // multipart boundary $message =

Categories : PHP

Text in

tag overflowing off left side of screen on mobile

Because you have a fixed width: 480px on that p, and there is a padding-right, so the text runs off the screen. Try not to set the width at all, I tested in chrome and it works.

Categories : CSS



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