Post on 12-Jun-2015
description
transcript
WEBCAST #SHAREPOINT INTERNSHIP AT HOWEST
Lynn Franceus & Tom Cracco
Why use it?
Javascript Customising of SharePoint forms with
extra functions More user usability possible
Easy to implement
SPCascadeDropdowns
Only related information visible
List Student has a field Opleiding so its able to depend on the selected HowestOpleiding-item
SPCascadeDropdowns
SPLookupAddNew
Add new item in list while filling in an form
Add new item Return to original
form Re-enter previous
filled fields
SPDisplayRelatedInfo
See read-only fields from item
Able to check if correct item is selected
Start workflow
Add column/ datafield in XSLT Data View
Onclick-methode on text to start javascript-function
1 easy click instead of 4
By Tom Cracco
Object Model & Use of SmartPart
Object Model
Retrieving information
Retrieving current SharePoint site collection SPContext.Current.Site
Possibility of CAML Query
Value from column: data-object =<SPListItem-
Object>(“static column name”)
Object Model
Saving Information
Retrieving new blank item <SPList-object>.Items.Add
Writing to column <SPListItem-object>(“static
column name”) = data-object
Saving item <SPListItem-
object>.Update()
Use of SmartPart
Creating User Control for Smartpart
Open Visual Studio
New website project
Add new ASP.NET User Control
After build: copy ‘.ascx’ and ‘.ascx.vb’
from project map to usercontrols map on SharePoint server
Use of SmartPart
Adding SmartPart to webpage
Add new webpart
Select SmartPart ( with AJAX)
Use of SmartPart
Adding User Control to SmartPart
Select user control to be displayed