OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation
Customer challenges inefficient data gathering process Custom data gathering solutions can be expensive Data is hard to reuse across business processes Addressed by InfoPath User-friendly environment for entering data Easy and rapid design of rich “forms” Built natively on top of XML InfoPath 2003 Vision “Enable information workers to easily gather and re-use information as part of a business process.”
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
Form Template.XML Manifest(XSF) Views(XSLT) Schema(XSD) DefaultData(XML) Business Logic (JS, DLL) InfoPath Form Template (XSN) URL or URN
Manifest File
XML Structural Editing Building an XML Document demo demo
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
XML Structural Editing Building an XML document salesReport customers customer items item actions customer items item
XSF – Structural Editing …
XML Structural Editing InfoPath Form = sections of data Sections may be Optional Repeating Replace with Contextual UI Form always valid per schema Adding/removing sections =XML tree operation
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
Data Validation Schema-based, Declarative, Script-based demo demo
Data Validation Developers can write Event handlers attached to events on XML DOM changes DeclarativeConstraint XML Schema Script-based Expressive Power ExpressivePower Complexity UI and programmatic changes must conform to the XML schema Developers can define custom validation rules on any node expressed as XPath predicates
Data Validation Declarative constraints in the XSF <xsf:errorCondition match="/…/ Address" expressionContext="." expression="not(contains(., <xsf:errorMessage type="modeless" shortMessage="Invalid address"> Please insert an address
Data Validation Script-based XSF: <xsf:domEventHandler handlerObject="msoxd__item“ match="/salesReport/customer/items/item" /> Script.js: function msoxd__item::OnAfterChange(eventObj) {... }
Data Validation Script-based: DOM Editing Events ROOT items Totals item item totalunitPrice sold Bubbling trace Updated node Xml Tree Editing events item::OnValidate() item::OnAfterChange() item::OnBeforeChange() DataDOM Event Site = item Source = sold Operation = Update OldValueNewValueReportErrorReturnStatusReturnMessage
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
Multiple Views XML DOM XSL-T 1 XSL-T 2
Multiple Views demo demo
Multiple Views Defined in XSF … …
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
Task Pane demo demo Adding a custom Taskpane
TaskPane Defined in XSF <xsf:taskpane caption=“My Task Pane“ href="taskpane.htm" />
Summary InfoPath 2003 provides… Structural editing components that enable complex XML tree operations through an easy to use UI for end-users Declarative and script-based Data Validation beyond what schema-based validation provides Multiple XSL based views on the same XML data tree Customizable Taskpane
Ask The Experts Get Your Questions Answered Talk one-on-one with a community of your peers Who: Microsoft product teams, consultants, and Tech · Ed speakers Where: In the ATE area of the Exhibit Hall Hours: Wednesday, July 2 nd : 15:00-17:00 Thursday, July 3 rd : 15:00-17:00
Community Resources Most Valuable Professional (MVP) Newsgroups Converse online with Microsoft Newsgroups, including Worldwide User Groups Meet and learn with your peers
Suggested Reading And Resources The tools you need to put technology to work! TITLE Available Microsoft® Office 2003 Resource Kit: /24/03 Microsoft Press books are 20% off at the TechEd Bookstore Also buy any TWO Microsoft Press books and get a FREE T-Shirt
evaluations evaluations
Appendix…
Office 11 Is the Premier “Smart Client” for XML Web Services Data Analysis Tabular, largely numerical data for calculations and analysis Data best presented in a grid Content Authoring Large areas of text or mixed content Flexible layout and formatting with XML markup Reporting & Storing Numerical or textual fields Relational tables in databases Information Gathering Highly structured, grouped information Form-like with few paragraphs of formatted text AccessExcel WordInfoPathFrontPage Data Driven Web Sites Tabular or hierarchical data inserted into web pages Expanded data reach
© 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.