Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.

Slides:



Advertisements
Similar presentations
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Advertisements

SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
Overview of Visual Studio 2005 Tools for the Microsoft Office System Svetlana Loksh Development Lead Visual Studio Tools for Office Team Microsoft Corporation.
Designing InfoPath Forms: The Dos and Donts Deploying InfoPath Forms: Making the right choice Adding custom business logicin case the built-in stuff isnt.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Microsoft Office ® Access 2007 Microsoft Office Access 2007: Introduzione allo sviluppo Fabio Santini.NET Developer Evangelist Microsoft Italy.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
What’s New for Smart Client Developers in Visual Studio 2005? Mike Pelton Systems Engineer Microsoft Ltd
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
4/17/2017 7:07 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Ian Palangio - Microsoft Product Specialist, InfoPath MVP Ben Walters - SDM Solution Specialist – Portals and Collaboration.
Multiple Framework Targeting Split View CSS Task Panes.
OFC302 Building Smart Document Solutions in Word & Excel Martin Sawicki Lead Program Manager.
Tips & Tricks for Developing InfoPath Solutions David Coe Application Development Consultant Microsoft Corporation.
DEV290 Building Office Solutions with Visual Studio Eric Carter Lead Developer Developer Platform & Evangelism Microsoft Corporation.
Developing Reporting Solutions with SQL Server
OFC293 Microsoft Office Access 2003 Overview SharePoint & XML Integration Richard Dickinson Program Manager.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
02 | Install and Configure Team Foundation Server Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence.
OFC312 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 2 Tudor Toma Group Program Manager Office Microsoft Corporation.
Microsoft Office InfoPath 2007 Development, Deployment, And Hosting For Rich And Browser Forms Jessica Gruber Consultant Microsoft Corporation.
OFC 303 Advanced Word XML: Customer-Defined Schemas Brian Jones Program Manager Authoring Services.
Slide 2 The Microsoft Office Project 2003 Software Development Kit Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation Uma.
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
OFC 308 Advanced Word XML: The WordML Schema and Bringing Everything Together Brian Jones Program Manager Authoring Services.
DAT 379 XML Today And Tomorrow Mark Fussell Lead Program Manager Microsoft Corporation.
1 Architecting End-to-End Enterprise Solutions with Microsoft Office InfoPath 2003 Kamaljit Bath Lead Program Manager Microsoft Corporation Kamaljit Bath.
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
Office Business Applications Workshop Defining Business Process and Workflows.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Managed Code Development and Microsoft Office Mike Pelton Stephen Turner Developer & Platform Group Microsoft.
D301 Building solutions with the Project Data Service David Solomon InfoPath ADC Microsoft Corporation.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
1 Office “12” : Server Investments Better empowerment, TCO and developer productivity Next generation , project management, workflow, blog and wiki.
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
Microsoft Office 2007 InfoPath Forms Solutions Reach more users with better forms Streamline data-driven business processes Rapidly develop and deploy.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
InfoPath Development Peter Williams, Ibitec AB. Agenda InfoPath Architecture Develop Forms Deploy Forms Integration.
OFC311 Developing Microsoft Office InfoPath 2003 Solutions: Technical Drilldown Part 1 Tudor Toma Group Program Manager Office Microsoft Corporation.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Overview of Visual Studio 2005 Tools for the Microsoft Office System Mike Hernandez Program Manager Visual Studio Tools for Office Team Microsoft Corporation.
InfoPath: Developing Forms Using Managed Code Dan Green Paradigm Logic CLI312.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Office 365 Development July 2014.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Building Enterprise Applications Using Visual Studio®
Integrating Enterprise Applications Into SharePoint® Portal Server
Visual Studio Tools for Office 2005
2007 Office System Integration
Managed Code, Data and Microsoft Office
Microsoft Dynamics.
Module 1: Getting Started
Overview of Visual Studio 2005 Tools for the Microsoft Office System
DAT381 Team Development with SQL Server 2005
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Visual Studio 2010 SharePoint Development Tools Overview
Delivering great hardware solutions for Windows
Windows Forms in Visual Studio 2005: An in-depth look at key features
Mark Quirk Head of Technology Developer & Platform Group
Developing Data Driven SharePoint Solutions
Contexualized Data In Document Authoring
Presentation transcript:

Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005

Developing InfoPath Forms Using Managed Code Jessica Gruber Microsoft Consulting Services

Problem Statement How can you use Visual Studio to add the power of managed code to your forms in a secure way?

InfoPath Business Logic Most Forms Do Not Need Code XML Schema Rules Formulas Data Validation Data Connections Conditional Formatting C# VB.NET

Machine Setup Developers – To create the form Visual Studio.NET 2003 InfoPath 2003 SP1 InfoPath Toolkit for Visual Studio.NET spx?FamilyId=7E9EBC57-E115-4CAC A712E22879BB&displaylang=en End Users – To fill out the form.Net Framework 1.1 InfoPath 2003 SP1

Visual Studio Integration

Form Template And Project Source Code (CS, VB) Project Definition (*PROJ) Form Template Files Visual Studio Project Assemblies (DLL and PDB) Template Definition (XSF) Default Data (XML) Schema (XSD) Views (XSLT) InfoPath Form Template (XSN) Publish / Preview Form Data User Fills Out Form.XML

Event Framework Open Edit Submit Close User C# VB.NET JScript VBScript Event Handlers OnLoad OnBeforeChange OnValidate OnAfterChange OnClick Events OnSubmitRequest

Windows XDocuments Application View Window Errors TaskPanes CommandBars MailEnvelope Application lifecycle XDocument lifecycle User XDocument DOM Object Model Overview DataAdapters

Document Object Model sales XMLDOM name items item priceunits Form’s View

Form Editing Events sales name items item priceunits price OnAfterChange(DataDOMEvent e) Bubbling Event Handler XMLDOM

Form Editing Events sales name items item priceunits price OnAfterChange(DataDOMEvent e) Bubbling Bubbling hides source Use e.Site and e.Source Events fire twice! Use e.Operation Check for “Insert” Event Handler XMLDOM

Referencing Nodes With XPath sales name items item priceunits XMLDOM /ns:sales/ns:items /ns:sales /ns:sales/ns:items/ns:item

Referencing Nodes With XPath sales name items item priceunits XMLDOM /ns:sales Namespaces Every node has one Prefix = short hand DOM and Node Methods selectSingleNode(Str) selectNodes(Str) Use “text” property DOM.selectSingleNode(“/ns:sales”);

Contains pre-configured Data Connections Supports all built in adapters Primary methods on each: Query / Submit DataAdapters da =thisXDocument.DataAdapters; // Query pre-configured web service ((WebServiceAdapter) da["My WS"]).Query(); // Submit to pre-configured WSS form library ((DAVAdapter) da["My SharePoint"]).Submit(); Data Adapters Collection

Offline Submit And Cache Offline Submit OnSubmitRequest If online, submit using DataAdapter Else, save XML locally OnLoad Swap each cached file with main DOM, and submit Example on MSDN: us/odc_ip2003_ta/html/odc_InfoPath_submitting_form s.asp?frame=true Offline Cache of Secondary Data Sources OnLoad If online, update cache with new local copies Else, use cached copies instead

Dynamic Help In Task Pane Use OnContextChange Event Update HTML in Task Pane Lab 14 shows how to do this in script /library/en- us/odc_ip2003_tr/html/odc_INF_Lab_14.asp /library/en- us/odc_ip2003_tr/html/odc_INF_Lab_14.asp Blogged how to do this in managed code 7/ aspx 7/ aspx CHM files also possible but not dynamic 7/ aspx 7/ aspx

Digital Signatures Bypass InfoPath Wizard to Sign Form Implement OnSign event (requires Full Trust) OM: SignedDataBlocks, Signatures, Certificate Remove the xml:lang attribute before signing Add and Validate Signatures on Server System.Security.Cryptography.Xml.SignedXml More info on MSDN: us/odc_ip2003_ta/html/ODC_INFDigitallySigningData2.asp us/odc_ip2003_ta/html/ODC_INFDigitallySigningData2.asp

Encryption And Decryption Scenario: sensitive values, not entire DOM Use System.Security.Cryptography When Encrypt during OnSaveRequest Decrypt during OnLoad Example on MSDN: us/odc_ip2003_ta/html/odc_InfoPath_extendin g_save.asp?frame=true

Security and Managed Code Form Template Trust Levels  Restricted: No Managed Code  Domain: LocalIntranet Policy Offline Submit and Data with IsolatedStorage Dynamic Help in Task Pane  Full Trust: Install, Sign, or Add Code Group Use.NET Configuration snap-in Add “InfoPath Form Templates” code group Examples: Active Directory, WSE

Two Steps to Debug Full Trust  Remove the publishURL from the XSF  Use this script to register the template: strXSF = "C:\\...path…\manifest.xsf"; strName = "InfoPath.ExternalApplication"; oApp = WScript.CreateObject(strName); oApp.RegisterSolution(strXSF,"overwrite"); us/odc_ip2003_tr/html/odc_INF_Lab_15.asp

Quick Tips And OM Highlights Prevent user from deleting existing rows Use OnBeforeChange, e.ReturnStatus = false Open a form with parameters XDocuments.NewFromSolutionWithData() Or use command line: infopath.exe /new parameters.xml Suggesting a save location and name XDocument.UI.SetSaveAsDialogFileName() XDocument.UI.SetSaveAsDialogLocation()

Session Summary Most forms do not need code Events = hooks that plug into your code Gotchas: bubbling and double-firing Code against the DOM Different ways to implement security Resources: us/dnanchor/html/odc_ancInfo.asp?frame=true

© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.