SlideShare a Scribd company logo
1 of 38
Tricks to ease the Infopath Drudgery
                     Stephan Onisick
Dirty Dog or Heroine: Gin Gin
Presenter
Stephan Onisick, MCSD,MCDBA,MCTS, CTT+
  SharePoint Developer for Phacil
  (Contractor for Missile Defense Agency)
  InfoPath Developer for last 18 months

 blog: www.infopathpainmanagement.com
 email: sonisick@gmail.com
 Projects include
     Meeting Scheduling Application for Management
           Include Creating Outlook Meeting Requests

           Digital Signatures

           Visual Studio Workflow Backend

      Announcement Approval System
           InfoPath Managed Code to manage view for SharePoint Groups

           Secondary Connections to handle Email to Recipients

           Extensive use of Data Form Web Parts to Manage Permissions and Views
Audience Experience with Infopath
 Notice any headaches, nausea when working on
 certain InfoPath Forms?
Audience Experience with InfoPath
(more seriously—show of hands please)
 How many have developed forms in InfoPath?

 How many are using predominantly Client-Side InfoPath?
  (Meaning from an InfoPath Office Application verses from a
  browser on a SharePoint.)

 How many have worked with InfoPath in conjunction with
  Workflows or Event Receivers?

 How many have worked with InfoPath Managed Code?

  **Essentially InfoPath Managed Code is an InfoPath Form
  associated with a Visual Studio Program Project.
Presentation Overview
1. What is InfoPath?

2. Why InfoPath Anyway?

3. InfoQuirks

4. Techniques to Ease the Pain
What is InfoPath?
 InfoPath is a Microsoft Product used to develop data-
  entry forms based on XML. It encompasses both
  Client and Server-Side technology to create and
  process forms.
  (kind of a forms processor and form-processing venue)



**InfoPath is a valuable component in integrated SharePoint Workflow systems.
**As InfoPath integrates more into SharePoint Lists in SharePoint 2010 I believe
   mining XML data will become less important—more emphasis will be on
   promoted variables.
**InfoPath is not a four-letter word—Ok sometimes it is.
Why InfoPath Anyway?
 Built into the core of SharePoint
    Examples
       Document Information Panels
       Workflow Association or Initiation Forms
       Even More Prevalent in SharePoint 2010
         List Screens can be customized by InfoPath

   Almost the Only Game in Town
       Possible Alternatives
Why InfoPath Anyway?
Document Image Panel:
Why InfoPath Anyway?
Workflow Association or Initiation Forms:
Why InfoPath Anyway?
SharePoint 2010 Provides the ability to customize :
 Customize list forms with InfoPath 2010: Friday Cool
  Content

**Brings up an interesting point: How many have had to
  choose between a List and a Form Library for a given
  project. In SharePoint 2010 you can use a simpler to
  use List and have the ability to customize the entry,
  edit and delete screens. (best of both worlds)
Why InfoPath Anyway?
Alternatives: iTechnology Forms Accelerator
Why InfoPath Anyway?
Alternatives: Open Source Free Form
Why InfoPath Anyway?
Alternatives: Possibly Telerik Controls for SharePoint
InfoQuirks
1.  Controls with Dissimilar Common Properties.
2.  Different Behavior in Preview Mode from Published Templates.
3.  Functionality Buried within the Menu Structure
4.  NTLM Authentication Problems with Web Services.
5.  Difficulty Debugging Managed Code for Browser-Enabled forms.
6.  Digital Signature Woes.
7.  Tribble Multiplication Effect on Column Mappings in Form
    Libraries.
8. Natively, Limited Control over Parts of the Environment.
9. Inability without Managed Code to return a Sorted and Filtered View
    of SharePoint List.
10. Continually Changing DataSources to Move from Different
    Environments or Servers.
InfoQuirks
1. Controls with Dissimilar Common Properties
InfoQuirks
1. Controls with Dissimilar Common Properties

   Why don’t we just use a Read-Only View and not
   worry about the quirks?

   Gotcha-- if an attachment is involved--it will not be
   readable.
InfoQuirks
2. Different Behavior in Preview Mode from Published
   Templates.
                         Demo




                       Demo
InfoQuirks
3. Functionality hidden deep in the Menu Structure

        Try to access the Rules. They are in many places
        depending on control or functionality desired:
         “Open and Save” under Tools=>Form Options=>Open
          and Save
         Individual Controls
           Rules
           Conditional Rules
         Far Right Side Panel for performing many task
         Access to programming in Different Places

          **This is greatly enhanced in InfoPath 2010 with new ribbon
          functionality
InfoQuirks
4. Problems with Web Services with NTLM
   Authentication.

   Double-Hop Issue:
   An authentication issue where credentials that are
   needed for access to resources on a third computer,
   or third tier, cannot be used in the request for those
   resources from the second tier.

   In our environment, web-services were not a viable
   option until the authentication method changed to
   Kerberos.
InfoQuirks
5.   Difficulty Debugging Managed Code for Browser-Enabled forms.

         Find harder to debug than other Visual Studio Projects like
          Workflows or Event Receivers

         Had to use the physical debug statement as opposed to setting
          a manual breakpoint in code:
          System.Diagnostics.Debugger.Break() to actually get it to work.

          How to: Debug Browser-Enabled Forms Deployed on InfoPath Form Services




     **A limited amount of debugging can be done in Visual Studio in
     Client-side Preview Mode.
InfoQuirks
6. Digital Signature Woes
     Do you really need Digital Signatures or would some
      kind of E-Sign functionality work (like Qdabra
      Electronic Signature).
     Do you really need a digest that can be tampered with
      or are you just trying to reasonably verify the signer?
     InfoPath Active X Digital Signature Controls are
      targeted to Power Users.
     Difficult to download in less Privileged Environments
      (We actually had to repackage the controls so that they
      could be pushed via SMS to our environment.)
     Dependent on Certificate Revocation Server to handle
      Certificate Revocation List (we used Tumbleweed)
InfoQuirks
7.   Tribble Multiplication Effect on Column Mapping

     Mapping InfoPath Promoted Columns to Site Columns

     Column mappings to form columns can be arbitrarily changed when
     new InfoPath fields are inserted or deleted. This can even happen
     when a field name or data type is changed within a previously
     published form.

     For example, a form field named 'EventDate' might be initially
     mapped to the internal name 'EventDate' in a form library. This
     column might be subsequently be remapped by InfoPath to
     'EventDate1' on re-publication. This wreaks havoc when a workflow
     or event receiver attached to the form is expecting specific column
     names. A workflow might blow up with a mysterious error or enter a
     section of code not dictated by your understanding of the logic.
InfoQuirks
8. Natively, Limited Control over part of the environment.
     Trying programmatically resizing your Screen
     Allowing given controls to stay in focus
     Controlling the functioning of the back button
     Try Exiting or Redirecting within Managed Code

  ** Through use of XMLFormView control more functionality
      can be achieved—but it’s not easy coding communicating
      with the Host.
InfoQuirks
8. Natively, Limited Control over part of the environment.
     Trying programmatically resizing your InfoPath Screen
     Allowing given controls to stay in focus
     Controlling the functioning of the browser back button
     Try Exiting or Redirecting within Managed Code

  ** Through use of XMLFormView control with or without a web
      part more functionality can be achieved—but it’s not easy
      coding communicating with the Host.
InfoQuirks
9. Inability without Managed Code to return a Sorted
   and Filtered View of SharePoint List.

   Natively, the list comes back the way it way originally
   input. (No filtering)
InfoQuirks
10. Continually Changing DataSources to Move from
    Different Environments or Servers.

     Changing SharePoint ServerNames and Form Library
      Names
     Sometimes InfoPath would change column mappings when
      DataSources changed—causing problems for workflows
      and event receivers.
Techniques to Ease the Pain
  1.   Creating Conditional Display of Debugging in the
       Form.
  2.   Saving the Form to Different Locations without
       Changing the Data Source. (Managed Code)
  3.   Getting a Sorted List. (Managed Code)
  4.   Getting a Functional Reset Button. (Managed Code)
  5.   Utilizing A Batch Script to Upload Managed Forms.
Techniques to Ease the Pain
    1.   Creating Conditional Display of Debugging in the
                              Form.
Techniques to Ease the Pain
    1.   Creating Conditional Display of Debugging in the
                              Form.
Techniques to Ease the Pain
  2. Saving the Form to Different Locations without
     Changing the Data Source. (Managed Code)
Techniques to Ease the Pain
  3. Getting a Sorted List. (Managed Code)
Techniques to Ease the Pain
  4. Getting a Functional Reset Button. (Managed Code)
Techniques to Ease the Pain
  5.       Utilizing A Batch Script to Upload Managed Forms
  prompt $D $T$_$P$G

  set pathxsn="C:UsersstephanoDesktopInfoPain and BeyondTravelRequestDemoXSNTravelRequestv03.xsn"
  set urlpath="http://saovaio-pc"

  cd "C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12bin"

  @echo Removing Form Template...

  stsadm -o deactivateformtemplate -url %urlpath% -filename %pathxsn%

  stsadm -o execadmsvcjobs

  stsadm -o removeformtemplate -filename %pathxsn%

  stsadm -o execadmsvcjobs

  @echo Adding back Form Template...

  stsadm -o uploadformtemplate -filename %pathxsn%

  stsadm -o execadmsvcjobs

  stsadm -o activateformtemplate -url %urlpath% -filename %pathxsn%

  stsadm -o execadmsvcjobs

  @pause

More Related Content

What's hot

OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsDharmaraj Borse
 
Practical Field Experience: Using Ajax / Dojo with WebSphere Portlet Factory
Practical Field Experience: Using Ajax / Dojo with WebSphere Portlet FactoryPractical Field Experience: Using Ajax / Dojo with WebSphere Portlet Factory
Practical Field Experience: Using Ajax / Dojo with WebSphere Portlet FactoryDavalen LLC
 
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI PublisherMohan Dutt
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To EmpowermentMohan Dutt
 
C# .NET Developer Portfolio
C# .NET Developer PortfolioC# .NET Developer Portfolio
C# .NET Developer Portfoliocummings49
 
Improve PowerShell reporting using SharePoint lists for results
Improve PowerShell reporting using SharePoint lists for resultsImprove PowerShell reporting using SharePoint lists for results
Improve PowerShell reporting using SharePoint lists for resultsFrank Daske
 
Bi publisher quickstartgudepaper
Bi publisher quickstartgudepaperBi publisher quickstartgudepaper
Bi publisher quickstartgudepapersadiqeds
 
Onepush platformtotalsolution
Onepush platformtotalsolutionOnepush platformtotalsolution
Onepush platformtotalsolutionAndy Yang
 
Getting Started with FDMEE
Getting Started with FDMEEGetting Started with FDMEE
Getting Started with FDMEEAmit Soni
 
The many-faces-of-bi-publisher-in-oracle-ebs paper-1
The many-faces-of-bi-publisher-in-oracle-ebs paper-1The many-faces-of-bi-publisher-in-oracle-ebs paper-1
The many-faces-of-bi-publisher-in-oracle-ebs paper-1Santosh Raj
 
Jeff Huber Portfoilio
Jeff Huber PortfoilioJeff Huber Portfoilio
Jeff Huber PortfoilioJeffHuber
 
Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Projecthani2253
 
Oracle Framework Personalization
Oracle Framework PersonalizationOracle Framework Personalization
Oracle Framework PersonalizationEdi Yanto
 
Getting the Most out of Data Page and Rich Data Definition in Portlet Factory
Getting the Most out of Data Page and Rich Data Definition in Portlet FactoryGetting the Most out of Data Page and Rich Data Definition in Portlet Factory
Getting the Most out of Data Page and Rich Data Definition in Portlet FactoryDavalen LLC
 
.NET Project Manual
.NET Project Manual.NET Project Manual
.NET Project Manualcormacsharpe
 

What's hot (20)

Bi
BiBi
Bi
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation Steps
 
Practical Field Experience: Using Ajax / Dojo with WebSphere Portlet Factory
Practical Field Experience: Using Ajax / Dojo with WebSphere Portlet FactoryPractical Field Experience: Using Ajax / Dojo with WebSphere Portlet Factory
Practical Field Experience: Using Ajax / Dojo with WebSphere Portlet Factory
 
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To Empowerment
 
Les02
Les02Les02
Les02
 
C# .NET Developer Portfolio
C# .NET Developer PortfolioC# .NET Developer Portfolio
C# .NET Developer Portfolio
 
Improve PowerShell reporting using SharePoint lists for results
Improve PowerShell reporting using SharePoint lists for resultsImprove PowerShell reporting using SharePoint lists for results
Improve PowerShell reporting using SharePoint lists for results
 
Sap Adobe Form
Sap Adobe FormSap Adobe Form
Sap Adobe Form
 
Bi publisher quickstartgudepaper
Bi publisher quickstartgudepaperBi publisher quickstartgudepaper
Bi publisher quickstartgudepaper
 
Onepush platformtotalsolution
Onepush platformtotalsolutionOnepush platformtotalsolution
Onepush platformtotalsolution
 
Getting Started with FDMEE
Getting Started with FDMEEGetting Started with FDMEE
Getting Started with FDMEE
 
The many-faces-of-bi-publisher-in-oracle-ebs paper-1
The many-faces-of-bi-publisher-in-oracle-ebs paper-1The many-faces-of-bi-publisher-in-oracle-ebs paper-1
The many-faces-of-bi-publisher-in-oracle-ebs paper-1
 
Jeff Huber Portfoilio
Jeff Huber PortfoilioJeff Huber Portfoilio
Jeff Huber Portfoilio
 
Smart form
Smart formSmart form
Smart form
 
Melvin Cureton Resume
Melvin Cureton ResumeMelvin Cureton Resume
Melvin Cureton Resume
 
Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Project
 
Oracle Framework Personalization
Oracle Framework PersonalizationOracle Framework Personalization
Oracle Framework Personalization
 
Getting the Most out of Data Page and Rich Data Definition in Portlet Factory
Getting the Most out of Data Page and Rich Data Definition in Portlet FactoryGetting the Most out of Data Page and Rich Data Definition in Portlet Factory
Getting the Most out of Data Page and Rich Data Definition in Portlet Factory
 
.NET Project Manual
.NET Project Manual.NET Project Manual
.NET Project Manual
 

Viewers also liked

a geografia e organização do espaço
a geografia e organização do espaçoa geografia e organização do espaço
a geografia e organização do espaçoGirleno Oliveira
 
Organização espacial (Redes)
Organização espacial (Redes)Organização espacial (Redes)
Organização espacial (Redes)Girleno Oliveira
 
RedMas MediaKit 2012
RedMas MediaKit 2012RedMas MediaKit 2012
RedMas MediaKit 2012RedMasAdv
 
¡Vamos al Cine! RedMas Survey
¡Vamos al Cine! RedMas Survey¡Vamos al Cine! RedMas Survey
¡Vamos al Cine! RedMas SurveyRedMasAdv
 
Conceito de região (organização espaço)
Conceito de região (organização espaço)Conceito de região (organização espaço)
Conceito de região (organização espaço)Girleno Oliveira
 

Viewers also liked (6)

a geografia e organização do espaço
a geografia e organização do espaçoa geografia e organização do espaço
a geografia e organização do espaço
 
Organização espacial (Redes)
Organização espacial (Redes)Organização espacial (Redes)
Organização espacial (Redes)
 
RedMas MediaKit 2012
RedMas MediaKit 2012RedMas MediaKit 2012
RedMas MediaKit 2012
 
¡Vamos al Cine! RedMas Survey
¡Vamos al Cine! RedMas Survey¡Vamos al Cine! RedMas Survey
¡Vamos al Cine! RedMas Survey
 
Book1
Book1Book1
Book1
 
Conceito de região (organização espaço)
Conceito de região (organização espaço)Conceito de região (organização espaço)
Conceito de região (organização espaço)
 

Similar to InfoPain and Beyond

Solve Todays Problems with 10 New SharePoint 2010 Features
Solve Todays Problems with 10 New SharePoint 2010 FeaturesSolve Todays Problems with 10 New SharePoint 2010 Features
Solve Todays Problems with 10 New SharePoint 2010 FeaturesCory Peters
 
Online Examination System in .NET & DB2
Online Examination System in .NET & DB2Online Examination System in .NET & DB2
Online Examination System in .NET & DB2Abhay Ananda Shukla
 
Real World API Design Using The Entity Framework Services
Real World API Design Using The Entity Framework ServicesReal World API Design Using The Entity Framework Services
Real World API Design Using The Entity Framework ServicesDavid McCarter
 
Open ERP Version 7 Functional & Technical Overview
Open ERP Version 7 Functional & Technical OverviewOpen ERP Version 7 Functional & Technical Overview
Open ERP Version 7 Functional & Technical OverviewPragmatic Techsoft
 
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box TechnologyBringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technologyjoelsef
 
Streamlining Business Processes with InfoPath and SharePoint
Streamlining Business Processes with InfoPath and SharePointStreamlining Business Processes with InfoPath and SharePoint
Streamlining Business Processes with InfoPath and SharePointRob Wilson
 
Lap around .net 4
Lap around .net 4Lap around .net 4
Lap around .net 4Abdul Khan
 
Intro to SharePoint for Developers
Intro to SharePoint for DevelopersIntro to SharePoint for Developers
Intro to SharePoint for DevelopersRob Wilson
 
SAP BusinessObject's Webi Rich Client
SAP BusinessObject's Webi Rich ClientSAP BusinessObject's Webi Rich Client
SAP BusinessObject's Webi Rich ClientEric Molner
 
Csi Forms 261108
Csi Forms 261108Csi Forms 261108
Csi Forms 261108Nick Davis
 
SharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and ManagementSharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and ManagementChris McNulty
 
IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...
IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...
IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...IBM Connections Developers
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Mack Hardy
 
Toronto SharePoint Camp 2010
Toronto SharePoint Camp 2010Toronto SharePoint Camp 2010
Toronto SharePoint Camp 2010szimpfer
 
Cetas - Application Development Services
Cetas - Application Development ServicesCetas - Application Development Services
Cetas - Application Development ServicesKabilan D
 
SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...
SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...
SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...Rob Wilson
 
Contract-Based Web Services API Deep Dive
Contract-Based Web Services API Deep DiveContract-Based Web Services API Deep Dive
Contract-Based Web Services API Deep DiveGabriel Michaud
 

Similar to InfoPain and Beyond (20)

Solve Todays Problems with 10 New SharePoint 2010 Features
Solve Todays Problems with 10 New SharePoint 2010 FeaturesSolve Todays Problems with 10 New SharePoint 2010 Features
Solve Todays Problems with 10 New SharePoint 2010 Features
 
PPT1
PPT1PPT1
PPT1
 
Online Examination System in .NET & DB2
Online Examination System in .NET & DB2Online Examination System in .NET & DB2
Online Examination System in .NET & DB2
 
Real World API Design Using The Entity Framework Services
Real World API Design Using The Entity Framework ServicesReal World API Design Using The Entity Framework Services
Real World API Design Using The Entity Framework Services
 
D17251 gc20 47_us
D17251 gc20 47_usD17251 gc20 47_us
D17251 gc20 47_us
 
Open ERP Version 7 Functional & Technical Overview
Open ERP Version 7 Functional & Technical OverviewOpen ERP Version 7 Functional & Technical Overview
Open ERP Version 7 Functional & Technical Overview
 
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box TechnologyBringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
 
Streamlining Business Processes with InfoPath and SharePoint
Streamlining Business Processes with InfoPath and SharePointStreamlining Business Processes with InfoPath and SharePoint
Streamlining Business Processes with InfoPath and SharePoint
 
Lap around .net 4
Lap around .net 4Lap around .net 4
Lap around .net 4
 
Intro to SharePoint for Developers
Intro to SharePoint for DevelopersIntro to SharePoint for Developers
Intro to SharePoint for Developers
 
SAP BusinessObject's Webi Rich Client
SAP BusinessObject's Webi Rich ClientSAP BusinessObject's Webi Rich Client
SAP BusinessObject's Webi Rich Client
 
Csi Forms 261108
Csi Forms 261108Csi Forms 261108
Csi Forms 261108
 
SharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and ManagementSharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and Management
 
IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...
IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...
IBM Connect 2014 - AD105: IBM iNotes and IBM SmartCloud Notes Web Customizati...
 
Whats new Sage SalesLogix v7.5.4
Whats new Sage SalesLogix v7.5.4Whats new Sage SalesLogix v7.5.4
Whats new Sage SalesLogix v7.5.4
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
 
Toronto SharePoint Camp 2010
Toronto SharePoint Camp 2010Toronto SharePoint Camp 2010
Toronto SharePoint Camp 2010
 
Cetas - Application Development Services
Cetas - Application Development ServicesCetas - Application Development Services
Cetas - Application Development Services
 
SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...
SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...
SharePoint Saturday Indy - Streamlining Business Processes with InfoPath and ...
 
Contract-Based Web Services API Deep Dive
Contract-Based Web Services API Deep DiveContract-Based Web Services API Deep Dive
Contract-Based Web Services API Deep Dive
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

InfoPain and Beyond

  • 1. Tricks to ease the Infopath Drudgery Stephan Onisick
  • 2. Dirty Dog or Heroine: Gin Gin
  • 3. Presenter Stephan Onisick, MCSD,MCDBA,MCTS, CTT+ SharePoint Developer for Phacil (Contractor for Missile Defense Agency) InfoPath Developer for last 18 months blog: www.infopathpainmanagement.com email: sonisick@gmail.com Projects include Meeting Scheduling Application for Management  Include Creating Outlook Meeting Requests  Digital Signatures  Visual Studio Workflow Backend Announcement Approval System  InfoPath Managed Code to manage view for SharePoint Groups  Secondary Connections to handle Email to Recipients  Extensive use of Data Form Web Parts to Manage Permissions and Views
  • 4. Audience Experience with Infopath  Notice any headaches, nausea when working on certain InfoPath Forms?
  • 5. Audience Experience with InfoPath (more seriously—show of hands please)  How many have developed forms in InfoPath?  How many are using predominantly Client-Side InfoPath? (Meaning from an InfoPath Office Application verses from a browser on a SharePoint.)  How many have worked with InfoPath in conjunction with Workflows or Event Receivers?  How many have worked with InfoPath Managed Code? **Essentially InfoPath Managed Code is an InfoPath Form associated with a Visual Studio Program Project.
  • 6. Presentation Overview 1. What is InfoPath? 2. Why InfoPath Anyway? 3. InfoQuirks 4. Techniques to Ease the Pain
  • 7.
  • 8. What is InfoPath?  InfoPath is a Microsoft Product used to develop data- entry forms based on XML. It encompasses both Client and Server-Side technology to create and process forms. (kind of a forms processor and form-processing venue) **InfoPath is a valuable component in integrated SharePoint Workflow systems. **As InfoPath integrates more into SharePoint Lists in SharePoint 2010 I believe mining XML data will become less important—more emphasis will be on promoted variables. **InfoPath is not a four-letter word—Ok sometimes it is.
  • 9.
  • 10. Why InfoPath Anyway?  Built into the core of SharePoint  Examples  Document Information Panels  Workflow Association or Initiation Forms  Even More Prevalent in SharePoint 2010  List Screens can be customized by InfoPath  Almost the Only Game in Town  Possible Alternatives
  • 12. Why InfoPath Anyway? Workflow Association or Initiation Forms:
  • 13. Why InfoPath Anyway? SharePoint 2010 Provides the ability to customize : Customize list forms with InfoPath 2010: Friday Cool Content **Brings up an interesting point: How many have had to choose between a List and a Form Library for a given project. In SharePoint 2010 you can use a simpler to use List and have the ability to customize the entry, edit and delete screens. (best of both worlds)
  • 14. Why InfoPath Anyway? Alternatives: iTechnology Forms Accelerator
  • 15. Why InfoPath Anyway? Alternatives: Open Source Free Form
  • 16. Why InfoPath Anyway? Alternatives: Possibly Telerik Controls for SharePoint
  • 17.
  • 18. InfoQuirks 1. Controls with Dissimilar Common Properties. 2. Different Behavior in Preview Mode from Published Templates. 3. Functionality Buried within the Menu Structure 4. NTLM Authentication Problems with Web Services. 5. Difficulty Debugging Managed Code for Browser-Enabled forms. 6. Digital Signature Woes. 7. Tribble Multiplication Effect on Column Mappings in Form Libraries. 8. Natively, Limited Control over Parts of the Environment. 9. Inability without Managed Code to return a Sorted and Filtered View of SharePoint List. 10. Continually Changing DataSources to Move from Different Environments or Servers.
  • 19. InfoQuirks 1. Controls with Dissimilar Common Properties
  • 20. InfoQuirks 1. Controls with Dissimilar Common Properties Why don’t we just use a Read-Only View and not worry about the quirks? Gotcha-- if an attachment is involved--it will not be readable.
  • 21. InfoQuirks 2. Different Behavior in Preview Mode from Published Templates. Demo Demo
  • 22. InfoQuirks 3. Functionality hidden deep in the Menu Structure Try to access the Rules. They are in many places depending on control or functionality desired:  “Open and Save” under Tools=>Form Options=>Open and Save  Individual Controls  Rules  Conditional Rules  Far Right Side Panel for performing many task  Access to programming in Different Places **This is greatly enhanced in InfoPath 2010 with new ribbon functionality
  • 23. InfoQuirks 4. Problems with Web Services with NTLM Authentication. Double-Hop Issue: An authentication issue where credentials that are needed for access to resources on a third computer, or third tier, cannot be used in the request for those resources from the second tier. In our environment, web-services were not a viable option until the authentication method changed to Kerberos.
  • 24. InfoQuirks 5. Difficulty Debugging Managed Code for Browser-Enabled forms.  Find harder to debug than other Visual Studio Projects like Workflows or Event Receivers  Had to use the physical debug statement as opposed to setting a manual breakpoint in code: System.Diagnostics.Debugger.Break() to actually get it to work. How to: Debug Browser-Enabled Forms Deployed on InfoPath Form Services **A limited amount of debugging can be done in Visual Studio in Client-side Preview Mode.
  • 25. InfoQuirks 6. Digital Signature Woes  Do you really need Digital Signatures or would some kind of E-Sign functionality work (like Qdabra Electronic Signature).  Do you really need a digest that can be tampered with or are you just trying to reasonably verify the signer?  InfoPath Active X Digital Signature Controls are targeted to Power Users.  Difficult to download in less Privileged Environments (We actually had to repackage the controls so that they could be pushed via SMS to our environment.)  Dependent on Certificate Revocation Server to handle Certificate Revocation List (we used Tumbleweed)
  • 26. InfoQuirks 7. Tribble Multiplication Effect on Column Mapping Mapping InfoPath Promoted Columns to Site Columns Column mappings to form columns can be arbitrarily changed when new InfoPath fields are inserted or deleted. This can even happen when a field name or data type is changed within a previously published form. For example, a form field named 'EventDate' might be initially mapped to the internal name 'EventDate' in a form library. This column might be subsequently be remapped by InfoPath to 'EventDate1' on re-publication. This wreaks havoc when a workflow or event receiver attached to the form is expecting specific column names. A workflow might blow up with a mysterious error or enter a section of code not dictated by your understanding of the logic.
  • 27. InfoQuirks 8. Natively, Limited Control over part of the environment.  Trying programmatically resizing your Screen  Allowing given controls to stay in focus  Controlling the functioning of the back button  Try Exiting or Redirecting within Managed Code ** Through use of XMLFormView control more functionality can be achieved—but it’s not easy coding communicating with the Host.
  • 28. InfoQuirks 8. Natively, Limited Control over part of the environment.  Trying programmatically resizing your InfoPath Screen  Allowing given controls to stay in focus  Controlling the functioning of the browser back button  Try Exiting or Redirecting within Managed Code ** Through use of XMLFormView control with or without a web part more functionality can be achieved—but it’s not easy coding communicating with the Host.
  • 29. InfoQuirks 9. Inability without Managed Code to return a Sorted and Filtered View of SharePoint List. Natively, the list comes back the way it way originally input. (No filtering)
  • 30. InfoQuirks 10. Continually Changing DataSources to Move from Different Environments or Servers.  Changing SharePoint ServerNames and Form Library Names  Sometimes InfoPath would change column mappings when DataSources changed—causing problems for workflows and event receivers.
  • 31.
  • 32. Techniques to Ease the Pain 1. Creating Conditional Display of Debugging in the Form. 2. Saving the Form to Different Locations without Changing the Data Source. (Managed Code) 3. Getting a Sorted List. (Managed Code) 4. Getting a Functional Reset Button. (Managed Code) 5. Utilizing A Batch Script to Upload Managed Forms.
  • 33. Techniques to Ease the Pain 1. Creating Conditional Display of Debugging in the Form.
  • 34. Techniques to Ease the Pain 1. Creating Conditional Display of Debugging in the Form.
  • 35. Techniques to Ease the Pain 2. Saving the Form to Different Locations without Changing the Data Source. (Managed Code)
  • 36. Techniques to Ease the Pain 3. Getting a Sorted List. (Managed Code)
  • 37. Techniques to Ease the Pain 4. Getting a Functional Reset Button. (Managed Code)
  • 38. Techniques to Ease the Pain 5. Utilizing A Batch Script to Upload Managed Forms prompt $D $T$_$P$G set pathxsn="C:UsersstephanoDesktopInfoPain and BeyondTravelRequestDemoXSNTravelRequestv03.xsn" set urlpath="http://saovaio-pc" cd "C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12bin" @echo Removing Form Template... stsadm -o deactivateformtemplate -url %urlpath% -filename %pathxsn% stsadm -o execadmsvcjobs stsadm -o removeformtemplate -filename %pathxsn% stsadm -o execadmsvcjobs @echo Adding back Form Template... stsadm -o uploadformtemplate -filename %pathxsn% stsadm -o execadmsvcjobs stsadm -o activateformtemplate -url %urlpath% -filename %pathxsn% stsadm -o execadmsvcjobs @pause