Posts

Showing posts with the label choice

SharePoint 2007/2010 - Implementare un Select All Checkbox su tutta la Site Collection

Grazie al lavoro di un collega, effettuato su una form di una lista, al Cliente è venuta l'idea di implementare lo stesso controllo per selezionare/deselezionare tutti i check di una colonna di tipo Choice, su tutti i form che utilizzano la Site Column, su SharePoint 2007.. Se il lavoro fosse stato quello di implementare il controllo solo su una lista, lo avrei fatto comodamente sulle pagine di Edit e New Item per quella lista, tramite SharePoint Designer. Ma purtroppo, la colonna in oggetto è presente su diverse liste o library della site collection (sub site compresi!). L'idea è stata quella di utilizzare la master page (comune a tutti i siti e sottositi), un po' di jquery e una modifica sulla Site Column in questione. Abbiamo una colonna di sito, di tipo Choice, con nome MyCheck, visualizzata con i checkbox. Inseriamo in testa ai valori di scelta della colonna il valore "Select All MyCheck" (uso il nome della colonna così da poter replicare il concetto ...

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