One of the most annoying "features" of MS FIM portal is that you can't just pick a date from calendar, but you need to type it into date field (according to regional settings). This might be ok for nerds from IT department. But hey, you're going to make all other people use it, do you really think they want to type dates?
So the project goal is to add familiar jQuery datepicker to the FIM portal. Do you like it?
- WSS 3.0, SharePoint 2007, or SharePoint 2010
- Forefront Identity Management 2010 (or 2010 R2) Portal
The project is built with jQuery 1.9.1 and custom jQuery UI 1.10 (with core and datepicker modules only). Client-side code is located under 12/TEMPLATE/LAYOUT/FIMCalendar
.
Calendar doesn't have any special settings. It takes locale information from FIM portal, and localizes jQuery datepicker with corresponding locale information.
There's already a pre-built version as a WSP file.
If you want, you may build it from sources. You'll need Microsoft.SharePoint.dll (not included, you may copy it from your SP server), Visual Studio (2010 or later) and WSPBuilder.
Build a solution in Visual Studio, after that launch WSPBuilder.exe in the solution directory. For example, if you forked a repositary to C:\Projects\FIMCalendar
, you'll do the following:
c:\>cd C:\Projects\FIMCalendar c:\Projects\FIMCalendar>"c:\Program Files (x86)\WSPTools\WSPBuilderExtensions\WSPBuilder.exe"
It will create or update a FIMCalendar.wsp in the solution folder. After that you're ready for installation
You'll need to use either old-school stsadm
, or new PowerShell extensions. Let's assume you're running on WSS and have only stsadm
.
First, you need to add a solution:
stsadm -o addsolution -filename c:\Projects\FIMCalendar\FIMCalendar.wsp
This will add solution named FIMCalendar.wsp
to your SharePoint. After that you need to deploy it on IdentityManagement site (assuming fim
is your server name):
stsadm -o deploysolution -name FIMCalendar.wsp -url http://fim/IdentityManangement/ -immediate -allowgacdeployment
After that you need to activate feature FIMCalendar
for FIM Portal:
stsadm -o activatefeature -name FIMCalendar -url http://fim/IdentityManangement/
The feature has a single site scope, so it won't affect any other sites running on your SharePoint.
To update already deployed solution, you may use the following:
stsadm -o upgradesolution -name FIMCalendar.wsp -filename c:\Projects\FIMCalendar\FIMCalendar.wsp -immediate -allowgacdeployment