Archive
Opening emails in SharePoint
As part of a recent project we used SharePoint to store emails, both via incoming emails and one of the 3rd party drag and drop tools.
Most users were happy with the solution once we had updated the MIME types to allow emails to be opened rather then downloaded, but some still mentioned they would rather that email opened directly from SharePoint rather than seeing the yellow download bar that Internet Explorer puts up.
A bit of digging around on the internet came up with the solution from this Microsoft KB article
http://support.microsoft.com/kb/2678934
To enable emails to be opened directly from SharePoint the trick is to disable the Internet Explorer download bar for email file types, to do this add the following registry key to your local machine.
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}
then run the assoc command below to get your .msg file extension type (mine is for Office 2013)
Now add that file type as a zero length binary value to the key created above.
Emails will open directly from SharePoint.
SharePoint 2010 Workflow Issues
I was recently asked to help out a client who was having problems with standard Out Of the Box Approval workflow.
We checked the Farm and isolated the issue to one specific site collection, all other site collections were fine.
To resolve this we opened the site collection in SPD, open the All files section drilled into the _catalogs/wfpub folder, the folder for the Approval workflow was present but for some reason the wfconfig.xml file had been modified from the site definition (Shown by blue I symbol), once this file had been reset to the site definition workflows were working again.
Add a column to a Enterprise Wiki Page Layout in SharePoint 2010
After you have create your Enterprise Wiki, you might have a need to add additional fields. For instance, your client might want a summary field on the wiki page. In this case you will need to modify the Enterprise Wiki Page Layout. The video shows you how. Keep in mind that it’s not always a good idea to modify the Enterprise Wiki Page Layout. Instead it might be better to make a copy of the Enterprise Wiki Page Layout and modify that instead. If anything goes wrong with the copy and can simply start over.
Other helpful links:
Modifying the Page Layout for Enterprise Wiki Pages in SharePoint 2010
How to Create WIKI Custom Page Layout & Rich Text Control inside Your Page Layout?
Customizing the Refinement Panel web part in SharePoint 2010
Part 1:
Summary:
We created our own results page: Results.aspx
We can modify the “Refinement Panel Web Part” only if we can edit the create a new .aspx results page and change the “Search Setting” to point to the new Results.aspx page instead of the default: 00SSearchResults.aspx
Part 2:
Now that you can edit the “Refinement Panel Web Part”. You might also want to customize which refiner’s appear in the web part. This video will show you how to edit the XML.
Other helpful links:
SharePoint: Add a Filter in the Refinement Panel of the Search Page
Creating an Enterprise Wiki via Central Administration
Modifying the Page Layout for Enterprise Wiki Pages in SharePoint 2010
SharePoint Designer 2013 workflow action “Call HTTP Web Service”
Getting the logged on user name using the client object model
If you want to use the SharePoint 2010 client object model you can use the code below:
ExecuteOrDelayUntilScriptLoaded(getWebUserData, “sp.js“);
var context = null;
var web = null;
var currentUser = null;
function getWebUserData() {
context = new SP.ClientContext.get_current();
web = context.get_web();
currentUser = web.get_currentUser();
currentUser.retrieve();
context.load(web);
context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod),
Function.createDelegate(this, this.onFailureMethod));
}
function onSuccessMethod(sender, args) {
var userObject = web.get_currentUser();
var UserTitle = userObject.get_title();
alert(UserTitle);
}
function onFailureMethod(sender, args) {
alert(‘request failed ‘);
}
Here is a video and a simple way to test it.
SP.ClientContext.get_current is null or not an object
One of the reasons you might be getting this error is because you are trying to use the client object model without the sp.js file being loaded.
Other post regarding errors you might be getting related to the client object model and sp.js
You might need the ExecuteOrDelayUntilScriptLoaded method
Uncaught TypeError: Cannot read property ‘get_current’ of undefined
SP.UI.ModalDialog.showModalDialog with margin and notification
If you ever add HTML to a SharePoint modal dialog box you might notice that adding a left-margin is also necessary. Remember, the HTML option uses DOM not a string.
Style margin Property
Get the code
Adding SP.UI.ModalDialog.showModalDialog to a content editor webpart
Client Object Model: SP.UI.ModalDialog.showModalDialog(options)
Opening a hyperlink in a dialog box in SharePoint 2010
How do I: Add new values to a drop-down list from the new item form
If you want to have the ability to add new values from new form item you have two options. (that I know of) First you could use $().SPServices.SPLookupAddNew. Or, you could use the technique I have demonstrated in the video below.
Related videos:
How do I: Set the ID attribute of a table row using jQuery and SharePoint Designer
While customizing an “add new item” form, you might find yourself needing to manipulate form elements via jQuery. However, before you can do that you must and an #id or .class to the elements in question. I will be adding an #id in this demonstration. But why would I want to manipulate form elements in the first place? If you wanted to hide/show a textbox based on the user selection of a checkbox you could use this technique.
How do I: Implement $().SPServices.SPLookupAddNew
Using jQuery to hide/show form elements based on checkbox value
How can I validate a textbox using the PreSaveAction()
How do I: Create a simple form to collect data in SharePoint 2010
How can I hide/show a textbox based on a radio button selection?
How can I hide/show a textbox based on a drop-down value?
How do I: Implement $().SPServices.SPCascadeDropdowns
Documentation for $().SPServices.SPCascadeDropdowns
In my opinion, the tricky part to this is the third list “CascadeExample”. It was unclear to me after reading the documentation on the SPServices website that the two columns “Country” & “Region” in the “CascadeExample” list need to be lookup columns. It might be obvious to everyone else.
You must be logged in to post a comment.