background preloader

Tricks

Facebook Twitter

Run Workflow from Hyperlink in SharePoint List. There is an easy way for the users to start a workflow from the link instaed of selecting from item menu and then select the workflow from the available workflows and then start workflow from the workflow start form. In this example i am going to update the list item with the workflow that is triggred from the hyprtlink in the SharePoint list 1) First create a workflow to update any list item in the SharePoint site List. In the workflow settings click the "Allow this workflow to be manually started" and leave other checkboxes unchecked. 2) Publish the workflow, then go to the list to which this workflow is associated, select any item and then from the item menu select workflows.

This will lead you to the workflows form attached with this list. 3) Click on your workflow that you created earliar to update item and this will redirect you the workflow start form. 4) Copy the url of this form from the address bar. 5) Now create a field in this list called "start workflow" of type hyperlink. Sharepoint 2010 : Change the Order of Columns in a List or Document Library - Microsoft Certification Examples, exercises, practises, tutorials, solutions about Sharepoint. SharePoint 2010: Making a Column Read-Only « SharePoint 2010 TechTalk. Using SharePoint Designer, you can make one of the columns on your list/library Read-Only so that when a user goes to edit the list item, that one particular field will be unmodifyable, even for Full Control Permissions. This can be done by changing the field type from an “editable” field to a simple “display” field.

To do this, open up SPD and navigate to your list. You want to create a new “Edit” form for this list so click on the “New…” button: Type in a name for your new form. Select the “Edit Item Form” radio button and go ahead and make this the default form for editing. Click OK and then open up your new form to edit the code. In this particular library, I have a column that I named “Read-Only” which I will be changing to read-only mode in the edit form. To Now when you go to edit an item on your form via “Edit Properties”, the column will be read-only. This entry was posted on April 3, 2013, 8:01 am and is filed under Development. The Column name you entered is already in use or Reserved. Choose another name. 2012/12/01/how-to-run-javascript-on-sharepoint-pages/ A great way to extend SharePoint is to create what I like to call mini applications – run JavaScript on SharePoint pages.

And the best part: you don’t need to edit the master page. Here’s how you run JavaScript on a SharePoint 2010 wiki page: 1. Content Editor Web Part Your JavaScript has to be loaded from a Content Editor Web Part. To add, go into page edit mode, then click Insert > Web Part > Media and Content > Content Editor. Next, open the web part tools by editing the web part. With the web part tools open, click inside the Content Editor Web Part (the first time this area will read Click here to add new content). This should bring up a blank dialog box titled HTML Source. You should load your JavaScript from this dialog box. Let’s say you are using jQuery in your file and you need to load that JS library as well. Chances are you don’t want to see your Content Editor on your web page. 2. 3. If you are creating custom elements with your script, you probably want to style them.

SharePoint: How to truncate a Multiline column and add a “More” link to the DispForm.aspx page to display the full text. The following is a quick solution to a little problem. It works for the lists I’ve tested with. Your results may vary… ;-) Before you read further: It does not work with the Links List This might not work with 2010 with the AJAX “Enable Asynchronous Load” checked (but it has worked with my limited testing) The Goal: Truncate a Multiline column to “xx” characters Add a “More” link to send the user to the DispForm.aspx page to display the full text A picture is worth a thousand words, so here’s two thousand worth… The list before any edits: The goal: We want to take the text from a long multiline text column and truncate it to say 50 characters and then add a “More” link to take the user to the DispForm.aspx page so they can read all of the text.

Steps: Note: These steps show adding a Content Editor Web Part to hold the JavaScript. The code: You must change the following variables: var SummaryName – Make sure this is correct! <script>// CEWP trick from techtrainingnotes.blogspot.com! Code Notes: How can I get a Sharepoint calendar to send a notification email to users involved in an event?