Posts

Showing posts with the label column

SharePoint 2013 - Issue su Document Set

Abbiamo sperimentato un paio di Issue sulla gestione dei Document Set su SharePoint 2013 (testati e riprodotti su SP Online). Ecco qui due promemoria per le prossime volte. Singolo Apice nel Nome del Document Set A differenza della gestione dei caratteri speciali NON permessi sui nomi dei file, per il Document Set abbiamo la restrizione solo per i seguenti caratteri: " # % * : < > ? / \ |. Quindi, apice singolo e & sono permessi nel nome del file. MA, utilizzando l'apice singolo, in creazione del Document Set non abbiamo problemi: visualizziamo la Welcome Page correttamente. Se usciamo dal Document Set, e proviamo a rientrarci, invece, abbiamo il comportamento della Cartella: nessuna welcome page... Se togliamo l'apice dal nome, in Modifica Proprietà, tutto torna alla normalità. Conclusione: controllate manualmente che NON sia presente l'apice singolo nel Nome del Document Set. Errore in Welcome Page per Lookup errate Creiamo un Content Typ...

SharePoint 2010 - Convalida Colonna per caratteri speciali

Image
Eccovi una bella formula per validare il testo inserito in una List Column. La colonna non deve contenere caratteri speciali, ad esempio se questa viene usata per creare, tramite una procedura, un file o un Document Set. Modificare la colonna di lista e, espandere la sezione Convalida Colonna. Inserire il testo seguente nella formula: =AND(IF(ISERROR(FIND(",";Titolo));TRUE);IF(ISERROR(FIND("&";Titolo));TRUE);IF(ISERROR(FIND("!";Titolo));TRUE);IF(ISERROR(FIND("@";Titolo));TRUE);IF(ISERROR(FIND("~";Titolo));TRUE);IF(ISERROR(FIND("#";Titolo));TRUE);IF(ISERROR(FIND("$";Titolo));TRUE);IF(ISERROR(FIND("%";Titolo));TRUE);IF(ISERROR(FIND("^";Titolo));TRUE);IF(ISERROR(FIND("*";Titolo));TRUE);IF(ISERROR(FIND("(";Titolo));TRUE);IF(ISERROR(FIND(")";Titolo));TRUE);IF(ISERROR(FIND("-";Titolo));TRUE);IF(ISERROR(FIND("=";Titolo));TRUE);IF(ISERROR(FIN...

Sharepoint 2010 - Multilanguage Site - Show column in current language

Image
In multilanguage site feature, Sharepoint 2010 does not translate content of web part and metadata. We have to find a way to show to user content or metadata in current language. I used a list with columns with content in language and a lot of jquery to show and hide columns for current language. I have a list with "DescriptionIT" and "DescriptionEN" columns. Then, I set a view with both columns visible. In this view, I added a content query web part whit code below. In this code, I search for current language, i.e. "Italian", then search for column with "DescriptionIT", and hide all columns but "DescriptionIT" (with name starting with "Decsription"). Result is that if I change language (with Select Display Language), I see only column in respective language. Simple and cross platform. Here the code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type=...

Sharepoint 2010 - Filter Web Part with QueryString: an issue?

Image
In Sharepoint 2010, when you want to filter a List Web Part with a Form Web Part, you find the simple way with querystring and XSLT query. List web part shows 5 results per page, and we have 3 pages (so 15 items). I search for title and I see 3 results in the first page, but I see link for the other 3 pages. And navigating the other page, I see one more result in second page and the third is empty...! Filter shows results for the page 1 (3 items), for the page 2 (1 item) and for the page 3 (0 items), but divided in 3 pages. It seems filter "hides" results not matching from view, keeping pages. I decided to use filter with querystring used by Sharepoint when you filter columns. So the address bar shows this: You can use javascript to retrieve value for FilterFieldN (the column name to filter, internal name!) and FilterValueN (value to use in filter). In this way, List Web Part filtered is in the right view: if I filter my 15 items, I found olny 3, but...

Sharepoint 2010 - Filter List/Library Web Part with XSLT and Content Editor WP

Image
I created a simple Filter Web Part with a Content Editor WP and simple XLST to filter List/Library with the LIKE feature. It works for lists and libraries (in libraries not for Name field). Create a page with Library Web Part to filter. Then add a Content Editor Web Part end edit HTML Source. In HMTL, add an input textbox and two buttons, for reset filter and for submit filter. Add some script as shown below: <script type="text/javascript"> //this script get query string from URL function querySt(ji){   hu = window.location.search.substring(1);   gy = hu.split("&");   for (i=0;i<gy.length;i++){     ft = gy[i].split("=");     if (ft[0] == ji){       return ft[1];     }   } } //this script set value read from query string in input field function setValues(){    if(querySt('qtitle') != null && querySt('qtitle') != "")    {      document.getEleme...

Sharepoint 2007 - When use Lookup Columns instead Choice Columns

Image
There are a number of ways to store options for a field that requires a group of pre-selected options, a drop down list as it were. I always thought that defining a column of the type choice is the way to go but recently discovered that in a couple of areas that creating a list and then using that as a look up is actually a better solution. When to use a Choice Column You should use a choice column, pictured below, in the following circumstances: 1) Only site administrators should be able to add/remove/edit options 2) You don’t have that many options to choose from (maximum ten) and users will usually only select at most 5 options. 3) The options rarely change This is the usual way to go in a SharePoint environment but it can cause many issues. For starters a choice column can only store 255 characters (SharePoint in built field limit) so if your users are choosing 10 options each of 26 characters (see below) then they wont be able to. This is because the choice fied...