Beruflich Dokumente
Kultur Dokumente
Paul Baker
About the Speaker….
Paul Baker
Director of Educational Innovation
Perse School, Cambridge
http://www.perse.co.uk
pdbaker@perse.co.uk
The Perse School regularly features in the top
25 schools nationally. Our commitment to
producing happy and successful students
leads to positive, focused work on how ICT
can contribute to learning and strong
community.
About the Speaker….
Paul Baker
p_d_baker
mathstweets
I‟m interested in
SharePoint
Virtual Learning Tools
SCORM Learning Banks
Microsoft Reporting Services
Parent Communication
A long way to go
….forward together
EASN : East Anglia SharePoint Network for
schools
http://www.easn.org.uk
Sharing ideas and work in progress
Sharing between independent and state
schools
What is Microsoft InfoPath?
What
Content
is Microsoft
Slide InfoPath?
an application used to develop XML-based data entry
forms.
InfoPath 2010
Included in Office 2010 Professional Plus
SharePoint Enterprise
for InfoPath form services functionality.
(Or as the separate Office Forms Server 2007 product.)
Example
Designed using Controls
Drag and
Drop
Published
to make available
InfoPath is XML-based
Designing a form means defining an xml structure and
a user interface to interact with that structure.
If extracted…
InfoPath is XML-based
When a form is completed and saved then that data is
saved as a single xml file, preferably into a sharepoint
forms library that can read the contents of the file
directly.
Application.exportXML _
ObjectType:=acExportQuery, _
DataSource:="UCASComment", _
DataTarget:=strPath & "raw-" & filename, _
WhereCondition:="StaffCode='" & strStaffCode & "'"
Transform _
sourceFile:=strPath & "raw-" & filename, _
stylesheetFile:=strPath & "InfoPath.xsl", _
resultFile:=strPath & filename
End Sub
<xsl:template match="/">
<xsl:processing-instruction name="mso-infoPathSolution">
<xsl:text>
solutionVersion="1.0.0.4"
productVersion="12.0.0"
PIVersion="1.0.0.0“ href="file:///C:\UCASComments.xsn"
name="urn:schemas-microsoft-com:office:infopath:UCASComments:-myXSD-2010-07-
09T19-58-45"
</xsl:text>
</xsl:processing-instruction>
<xsl:processing-instruction name="mso-application">
<xsl:text>
progid="InfoPath.Document"
versionProgid="InfoPath.Document.2"
</xsl:text>
</xsl:processing-instruction>
<xsl:apply-templates select="node()"/>
</xsl:template>
LINQ in C# - Visual Studio
XDocument xml = XDocument.Load(txtFile.Text);
XNamespace ns =
"http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-07-10T19:35:48";
var query =
(from p in xml.Elements(ns + "UCASComments").Elements(ns + "UCASComment")
select p.Element(ns + "StaffCode").Value).Distinct();
queryRemove.Remove();
xmlOutput.Save(txtOutput.Text + @"\" + record + @".xml");
}
Submit options
Case Study 4 : Pupil Progress/Tracking
Bound to web services
Our MIS
(WCBS PASS)
UNION
SELECT 2 as Tag,
1 as Parent,
'1' as [outertag!1!id],
PUPIL_ID AS [pupil!2!id],
SURNAME + ',' + PREFERRED_NAME + ' (' + [FORM] + ')' AS [pupil!2!name!element],
CODE AS [pupil!2!code!element],
ISNULL([FORM], "NA") AS [pupil!2!form!element]
FROM Curr_Pupils_Curr_Year
WHERE SUB_SCHOOL='UPPER'
AND SURNAME LIKE @StartsWith
)
ORDER BY [pupil!2!name!element]
FOR XML EXPLICIT
Submit button which
submits first to PASS and
then also to a sharepoint
document library.
Our MIS
(WCBS PASS)
SP creates email
notifications and allows a
secretary to retrieve and
file any documentation
onto the pupil record.
[SUBMIT]
WORKFLOW
(SHAREPOINT DESIGNER)
EMAILS
Lookup from another
SharePoint List
which stores extra staff that
want to be notified on the
form group level.
(e.g. Head of year)
Case Study 5 : Perse Quiz Project
Case Study 5 : Perse Quiz Project
Case Study 5 : Perse Quiz Project
Case Study 5 : Perse Quiz Project
Case Study 5 : Perse Quiz Project
Case Study 5 : Perse Quiz Project
Images are extracted from the xml when it is submitted to the web service and replaced with
the filename of the image. The XML is then just saved, ready to be displayed as a quiz using a
stylesheet transform when the quiz is requested.
InfoPath does code
You can attach code to buttons, form events
and control events
?
Tool Tie-ins
Workflow Tools
• Visual Studio
• SharePoint Designer
• Visio
• Nintex
Tool Tie-ins
Microsoft Reporting Services
Tool Tie-ins
Microsoft Reporting Services
Tips and Tricks
Digital signatures
Can enable digital signatures on sections of the form
And when applied can make the form „read only‟
But requires a certification authority or Windows Server acting in
this role or self-certified (but the latter is not secure and requires
access to the certificates snap-in of mmc to update/delete.)
Digital signatures
Perhaps Workflows and “Contact Selector” controls are better
When submitted then if it is missing an HOD signature then the
workflow generates an email to the HOD with the link to the
submitted form.
When both boxes are ticked then the workflow generates an
„acknowledgement‟ email to both parties and rules can make the
form read only.
In the SharePoint Library, the “Last Modified By” will be the HOD.
InfoPath Form Services
Hosts the InfoPath form in the browser...
...so clients don‟t need the application installed.
Limits the functionality that you can use. Needs to be more „standard‟ and
doesn‟t support certain controls (e.g. attachment or image control or
bulleted list) and restrictions on code, rules, filters etc.
http://office.microsoft.com/en-us/infopath-help/infopath-2007-features-
that-are-unavailable-in-infopath-forms-services-
HA010210587.aspx?CTT=3#BM4
http://www.sharepointassist.com/2009/02/27/adding-a-contact-
selectorpeople-picker-to-an-infopath-form/
Quick-Start Design
Form Options
Template Parts
E.g. Use with the contact selector to create a “pre-configured” contact selector
Outlook InfoPath Form Folders
Workflow integration
InfoPath 2010
http://blogs.msdn.com/b/infopath/archive/2009/07/15/what-s-new-in-infopath-2010.aspx
InfoPath 2010
Conforms with the Ribbon interface
• Picture buttons – Instead of the default gray button, use any image as a button in your
form.
• Hyperlink capabilities –Allow users to insert their own hyperlinks when filling out
forms.
• Date and time picker – Allow users to insert dates and times in their forms
• Person/Group pickers – Updated! This is now a first class control and is included by
default in the Controls gallery.
• Signature Line (Editor Only) – Allow users to digitally sign a form
Controls and functionality that are now supported in browser forms include:
Bulleted, numbered, and plain lists, multiple selection list boxes, Combo boxes, Choice
group and sections, and Filtering functionality.
InfoPath 2010
New and Improved Add Rules to your Forms
With our new out-of-the-box rules (or quick rules) and improved
rules management UI, you can easily add rules to validate data,
format your form, or perform other actions with just a couple of
clicks, and without any code.
InfoPath 2010
Publish Forms Quickly
Our new “quick” publish functionality allows you to publish forms in
a single click (no more clicking through the Publishing Wizard every
time you want to make an update to your forms!)
pdbaker@perse.co.uk
http://www.perse.co.uk