+ All Categories
Home > Documents > OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma...

OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma...

Date post: 19-Jan-2018
Category:
Upload: cassandra-ray
View: 217 times
Download: 0 times
Share this document with a friend
Description:
Today’s Topics InfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane
32
OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation
Transcript
Page 1: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

OFC311Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1Tudor TomaGroup Program ManagerOfficeMicrosoft Corporation

Page 2: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Customer challengesinefficient data gathering processCustom data gathering solutions can be expensiveData is hard to reuse across business processes

Addressed by InfoPathUser-friendly environment for entering dataEasy and rapid design of rich “forms”

Built natively on top of XML

InfoPath 2003 Vision““Enable information workers toEnable information workers to

easily gather and re-use information easily gather and re-use information as part of a business process.”as part of a business process.”

Page 3: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Today’s TopicsInfoPath 2003 Platform Services

The Manifest FileXML Structural EditingData ValidationMultiple ViewsTask Pane

Page 4: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Today’s TopicsInfoPath 2003 Platform Services The Manifest File

XML Structural EditingData ValidationMultiple ViewsTask Pane

Page 5: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Form Template

.XML.XML

ManifestManifest(XSF)(XSF)

ViewsViews(XSLT)(XSLT)

SchemaSchema(XSD)(XSD)

Default Default DataData

(XML)(XML)

Business Business LogicLogic

(JS, DLL)(JS, DLL)

InfoPath Form Template (XSN)InfoPath Form Template (XSN)

URL or URN

Page 6: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Manifest File<package><views>

<editing><xmlToEdit>

<editWith><menuArea>

<Menu><Button>

<customValidation><errorCondition>

<dataObjects><dataObject>

<query><taskPane>

Page 7: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

XML Structural EditingBuilding an XML Document

demodemo

Page 8: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Today’s TopicsInfoPath 2003 Platform Services The Manifest File XML Structural Editing

Data ValidationMultiple ViewsTask Pane

Page 9: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

XML Structural EditingBuilding an XML document

salesReportsalesReport

customerscustomers

customercustomer

itemsitems

itemitem

actionsactions

customercustomer

itemsitems

itemitem

Page 10: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

XSF – Structural Editing<xsf:views default="View 1"> <xsf:view name="View 1 caption=“Details”>

<xsf:mainpane transform="view1.xsl" />

<xsf:editing><xsf:xmlToEdit item="Action"><xsf:editWith component="xOptional">…</xsf:editWith></xsf:xmlToEdit></xsf:editing><xsf:menuArea name="msoInsertMenu"><xsf:menu caption="Action"><xsf:xButton action="xOptional::insert" /></xsf:menu></xsf:menuArea>

</xsf:view></xsf:views>

Page 11: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

XML Structural EditingInfoPath Form = sections of dataSections may be

Optional RepeatingReplace with

Contextual UI Form always valid per schemaAdding/removing sections =XML tree operation

Page 12: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Today’s TopicsInfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation

Multiple ViewsTask Pane

Page 13: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Data ValidationSchema-based, Declarative, Script-based

demodemo

Page 14: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Data Validation

Developers can write Event handlers attached to events on XML DOM changes

Declarative Declarative ConstraintConstraint

XML SchemaXML Schema

Script-basedScript-based

Expr

essi

veEx

pres

sive

Po

wer

Pow

erCom

plex

itC

ompl

exit

yy

UI and programmatic changes UI and programmatic changes must conform to the XML schemamust conform to the XML schema

Developers can define custom Developers can define custom validation rules on any node validation rules on any node expressed as XPath predicatesexpressed as XPath predicates

Page 15: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Data ValidationDeclarative constraints in the XSF

<xsf:customValidation><xsf:errorCondition match="/…/emailAddress" expressionContext="." expression="not(contains(., "@"))"> <xsf:errorMessage type="modeless" shortMessage="Invalid address">Please insert an email address</xsf:errorMessage> </xsf:errorCondition>

</xsf:customValidation>

Page 16: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Data ValidationScript-based

XSF:<xsf:domEventHandlers>

<xsf:domEventHandler handlerObject="msoxd__item“

match="/salesReport/customer/items/item" /> </xsf:domEventHandlers>

Script.js:function msoxd__item::OnAfterChange(eventObj){...}

Page 17: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Data ValidationScript-based: DOM Editing Events

ROOTROOT

itemsitemsTotalsTotals

itemitemitemitem

totaltotal unitPriceunitPrice soldsold

Bubbling traceBubbling trace

Updated nodeUpdated node

Xml TreeXml TreeEditing eventsEditing events

iitem::Ontem::OnValidateValidate()()

iitem::OnAfterChange()tem::OnAfterChange()

iitem::Ontem::OnBeforeBeforeChange()Change()

DataDOM EventDataDOM Event

Site Site = item= itemSource Source = sold= soldOperation Operation = Update= UpdateOldValueOldValueNewValueNewValueReportErrorReportErrorReturnStatusReturnStatusReturnMessageReturnMessage

Page 18: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Today’s TopicsInfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views

Task Pane

Page 19: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Multiple Views

XML DOMXML DOM

XSL-T 1XSL-T 1

XSL-T 2XSL-T 2

Page 20: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Multiple Views

demodemo

Page 21: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Multiple ViewsDefined in XSF

<xsf:views default="View 1"> <xsf:view name="View 1" caption=“Details"> …

<xsf:mainpane transform="view1.xsl“/> </xsf:view> <xsf:view name="View 2" caption=“Summary"> …

<xsf:mainpane transform=“summary.xsl“/> </xsf:view></xsf:views>

Page 22: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Today’s TopicsInfoPath 2003 Platform Services The Manifest File XML Structural Editing Data Validation Multiple Views Task Pane

Page 23: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Task Pane

demodemo

Adding a custom Taskpane

Page 24: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

TaskPaneDefined in XSF

<xsf:taskpane caption=“My Task Pane“href="taskpane.htm" />

Page 25: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

SummaryInfoPath 2003 provides…

Structural editing components that enable complex XML tree operations through an easy to use UI for end-usersDeclarative and script-based Data Validation beyond what schema-based validation providesMultiple XSL based views on the same XML data treeCustomizable Taskpane

Page 26: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Ask The ExpertsGet Your Questions Answered

Talk one-on-one with a community of your peersWho: Microsoft product teams, consultants, and Tech·Ed speakers Where: In the ATE area of the Exhibit HallHours:

Wednesday, July 2nd : 15:00-17:00Thursday, July 3rd : 15:00-17:00

Page 27: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Community Resources

Community Resourceshttp://www.microsoft.com/communities/default.mspx

Most Valuable Professional (MVP)http://www.mvp.support.microsoft.com/

NewsgroupsConverse online with Microsoft Newsgroups, including Worldwidehttp://www.microsoft.com/communities/newsgroups/default.mspx

User GroupsMeet and learn with your peershttp://www.microsoft.com/communities/usergroups/default.mspx

Page 28: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Suggested Reading And Resources

The tools you need to put technology to work!The tools you need to put technology to work!

TITLETITLE AvailableAvailable

Microsoft® Office 2003 Resource Microsoft® Office 2003 Resource Kit: 0-7356-1880-1Kit: 0-7356-1880-1 9/24/039/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

Page 29: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

evaluationsevaluations

Page 30: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Appendix…Appendix…

Page 31: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

Office 11 Is the Premier “Smart Client” for XML Web Services

Data AnalysisData Analysis Tabular, largely Tabular, largely

numerical data for numerical data for calculations and calculations and analysis analysis

Data best presented Data best presented in a gridin a grid

Content AuthoringContent Authoring Large areas of text or Large areas of text or

mixed contentmixed content Flexible layout and Flexible layout and

formatting with XML formatting with XML markupmarkup

Reporting & StoringReporting & Storing Numerical or textual Numerical or textual

fieldsfields Relational tables in Relational tables in

databasesdatabases

Information GatheringInformation Gathering Highly structured, Highly structured,

grouped informationgrouped information Form-like with few Form-like with few

paragraphs of paragraphs of formatted textformatted text

AccessAccessExcelExcel

WordWord InfoPathInfoPath FrontPageFrontPage

Data Driven Web SitesData Driven Web Sites Tabular or hierarchical Tabular or hierarchical

data inserted into web data inserted into web pages pages

Expanded data reachExpanded data reach

Page 32: OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.

© 2003 Microsoft Corporation. All rights reserved.© 2003 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Recommended