..:: I like SharePoint ::.. Rotating Header Image

Customizing

SharePoint 2013: The better task list

Within SharePoint you are able to organize all your daily to do´s within a task list. This is a standard feature of SharePoint and you are able to add it to all your SharePoint sites.

But is there a better way for you to work with tasks within SharePoint? Find out by clicking on read more… (more…)

Reminder: Webcast über SharePoint Forms am 26.Juni

Bald ist es soweit, am Donnerstag läuft der Webcast zum Thema “Wunsch und Wirklichkeit bei Microsoft SharePoint Forms – Usability und Anpassungsmöglichkeiten

Den sollte man nicht verpassen und damit das nicht passiert, gibt es hier nochmal die Infos:

Hier geht es zur Anmeldung und hier gibt es die Infos.

Der Webcast findet am 26.Juni 2014 ab 15 Uhr statt. Es ist danach als Download verfügbar.

Der Webcast ist ein kleiner Ausschnitt – quasi ein Preview – zum Vortrag den ich auf der ShareConf 2014 halten werde unter dem Titel “Wunsch und Wirklichkeit bei Microsoft SharePoint Forms – Usability und Anpassungsmöglichkeiten“.

Also warum noch warten und direkt anmelden!

SharePoint PreSaveAction helps for actions before saving an item

If you’re customizing SharePoint listforms or SharePoint forms you have normally a save or cancel button. If you want to have a pre-action for the save button, that means there should something happen before the item will be saved if the user clicks on the save button, you can use the javascript function PreSaveAction(). This function takes place before saving the item.

I my customer project i need this function for the following scenario. The user has to choose a value from dropdown list. If the selected item from dropdown has a special value, the user should get a message, that informs him about a special situation and that he should confirm to proceed.



<script type="text/javascript">
function PreSaveAction()
{
var ddlValue = document.getElementById("< %=ddlStatus.ClientID%>");
if (ddlValue.selectedIndex == 3 || ddlValue.options[ddlValue.selectedIndex].value.indexOf("Text to check") != -1) {
var confirmation = confirm("The item will be set to readonly afterwords. Proceed by clicking the OK-Button.");
return confirmation;
}
return true;
}

</script>


After that the message appears if you click the save button:

jsScript

Hope this helps you.

I already posted about SharePoint forms or Listforms. Let me give you the links to my previous posts:

Part 1: Setting up a solution with a list definition, a list instance and deploy it.

Part 2: Creating a custom list form and connect it with the list definition.

Part 3: Necessary settings for custom listform in Visual Studio

Part 4: Override Save Button in listform

Part 5: How i can make attachments working in listforms

Get Localized String from SharePoint Resource file in Javascript

Javascript helps in many cases to make an application complete. In SharePoint you also can use resource files in order to support multilanguage scenarios. But how to get those text information in a javascript?  I found a possibility which i’d like to present here. The trick is to get the desired text by using a literal control in your javascript:



<script type="text/javascript">
var confirmText = "<sharepoint:encodedliteral runat='server' text='<%$Resources:common,confirmText%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";

</sharepoint:encodedliteral></script>


Hope this helps you.

Filtering a listview with multiple Values for one column

Sometimes it is necessary to filter a list by multiple values on a certain column. In SharePoint 2013 it’s working using the UI, but in SharePoint 2010 it’s not. So in 2010 Version you could use the url query to filter a certain column using multiple values. The solution is simple and you do not have to use code or develop anything.

You can separate them by a semicolon and it acts like an OR.

The important part to add is:

?Filtername=Region&FilterMultiValue=West%20Germany;North%20Germany

so in general:

?FilterName=yourfieldname&FilterMultiValue=yourvalue1;yourvalue2

The output:

Filter1

The nonplusultra Wildcard possibility:

The important part to add is:

?Filtername=Region&FilterMultiValue=*West*

so in general:

?FilterName=yourfieldname&FilterMultiValue=*yourvalue*

It’s also working with multiple values. The output:

Filter2

It’s really cool, cause it also supports “*” so it’s like a wildcard filter.

Hope you like it the same way i do. Found it here.