Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to...
Transcript of Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to...
![Page 1: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1.jpg)
ShowAll
![Page 2: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2.jpg)
AbouttheInfoPathDeveloper'sReference
TheInfoPathDeveloper'sReferencecontainsHelpinthefollowingareas:
ProgrammingConceptsContainsconceptualinformationaboutMicrosoftOfficeInfoPath2003formdevelopment.Subjectareasincludeformarchitecture,theformdefinition(.xsf)file,theprogrammingenvironment,andusingtheInfoPathobjectmodel.
DeveloperSampleFormsContainsdocumentationforasetofformsdesignedtodemonstratevariousdevelopmenttechniquesforcustomizingandimplementingInfoPathfeatures.
InfoPathObjectModelReferenceContainsdocumentationfortheInfoPathobjectmodel,includingallofitscollections,objects,properties,methods,events,andenumerations.
InfoPathXSFReferenceContainsdocumentationfortheInfoPath.xsffile,includingallofitsnamespaces,types,groups,elements,andattributes.
![Page 3: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3.jpg)
ShowAll
![Page 4: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4.jpg)
AboutActiveXcontrols
YoucanhostActiveXcontrolsinforms.Thesecontrolscanbepreexisting(withsomeconstraints)orcanbewrittenspecificallyforInfoPath.
WriteanActiveXcontrol
AddanActiveXcontroltotheInfoPathdesignenvironment
DeployanActiveXcontrol
![Page 5: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/5.jpg)
ShowAll
![Page 6: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/6.jpg)
AboutADO.NETdatasetintegration
YoucaneasilyconnectformstoWebservicesthatreceivedatafromandsubmitdatatoADO.NETdatasets.
ConnectingformstoWebservicestoreceivedata
ConnectingformstoWebservicestoreceiveandsubmitdata
ConnectingformstoWebservicestosubmitdata
Thereareafewlimitationsondatasets:
Onlyonedatasetisallowedwhenaformisedited.
Copyingandpastingofnesteddatasetsupdatestheforeignkeytopointtotheparentvalues.
DeleteRuleandUpdateRulepropertiesarenotsupported.
Constraintsorrelationshipscannotbedisabled.
![Page 7: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/7.jpg)
ShowAll
![Page 8: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/8.jpg)
Aboutbackwardcompatibility
InMicrosoftOffice2003EditionsServicePack1,existingformsfunctionthesamewaytheydidinMicrosoftOfficeInfoPath2003,whiletakingadvantageoftheimprovementsandnewfeaturesincludedintheservicepack.ToensurecompatibilityforusersofMicrosoftOfficeInfoPath2003withoutServicePack1orlaterinstalled,however,certainfeaturesarenotavailabletoexistingforms.
ThefollowingsectionsdescribeareasoffunctionalitythatmaybeaffectedwhenyouareworkingwithmorethanoneversionofInfoPath.
Upgradingexistingforms
Creatingnewformtemplates
Removingnewfeaturesfromaformtemplate
Disablingnewfeatures
Openingformtemplatesthatcontainformcodewithupdatedobjectmodelmembers
LaunchingandautomatingInfoPathfromanotherapplication
![Page 9: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/9.jpg)
ShowAll
![Page 10: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/10.jpg)
Aboutchangingaform'smaindatasource
Attimes,youmayneedtomodifyaformtouseadifferentXMLSchema,databaseserver,orWebservicebeforeorafterdeployment.Youdonothavetomodifytheformdefinitionfile(.xsf)toaccomplishthistask,however,becausewithMicrosoftOfficeInfoPath2003ServicePack1orlater,youcanchangethemaindatasourceofyourformthroughtheInfoPathdesigner.
Thestepsyouneedtotaketodothisdiffer,dependingonwhetheryourform'smaindatasourceisanXMLSchema,anXMLdocument,oradataconnection.
ChangethemaindatasourceofaformbasedonanXMLSchemaorXMLdocument.
Changethemaindatasourceofaformbasedonadataconnection.
![Page 11: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/11.jpg)
Aboutdigitalsignatures
Takeadvantageofthefollowingnewfunctionsthathavebeenaddedtothedigitalsignaturesfeature:
Enablesignaturesfortheentireform,orforspecificsetsofdataintheformthatcanbesignedseparately.
Foreachsetofdatathatcanbesigned,specifywhetherasingleormultiplesignaturesareallowedandwhattheirrelationshipwillbe.Forexample,youcanspecifywhethertheyareparallelcosignaturesorwhethereachnewsignaturecountersignsalltheearlierones.
Specifyamessagetobeshowntoformusersastheysigntheform.
Insertandseeasignatureinthedocument,andviewtheformasitwaspresentedtoeachsigner.
Viewverifiablenonrepudiationinformationthathasbeenaddedtoeachsignatureforincreasedsecurity.Thisadditionalinformationispartofthesignatureandcannotberemovedwithoutinvalidatingthesignature.Atanytime,youcanrecallthisdatabyclickingonthesignatureintheform.
Addcustominformationtothesignatureblockinfullytrustedformsthroughanextensivedigitalsignatureobjectmodel.
Accessasignaturethroughasnapshot.Thesnapshotisafilein.pngformat.Itcontainsaviewofthesignaturewithintheformandhasallitsnonrepudiationinformation.
![Page 12: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/12.jpg)
ShowAll
![Page 13: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/13.jpg)
Aboutenablingformstosubmitdata
MicrosoftOfficeInfoPath2003allowsyoutosubmitdataenteredintoaformtoaWebserviceoraWindowsSharePointServicesformlibrary,orasanattachmenttoane-mailmessage.
SetupaconnectiontoaSharePointServicesformlibrarythatisenabledforformsubmission.
Setupane-mailmessagethatisenabledforformsubmission.
SetupaconnectiontoaWebservicethatisenabledfordatasubmission.
![Page 14: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/14.jpg)
ShowAll
![Page 15: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/15.jpg)
Aboutformarchitecture
MicrosoftOfficeInfoPath2003formsarecomposedofseveralfilesandcomponentsthatarecombinedtoprovidespecificfunctionalityforaparticularenduserscenarioorbusinessneed.InfoPathformscanvaryincomplexitydependingonthetypeofneedthattheyaddress.
AnInfoPathformisessentiallyatypeofapplicationthatcreatesaspecifiedclassofXMLdocuments,definestheirlayoutandeditingbehavior,enforcestheirdataconsistency,andprovidestheroutinginformationthatindicateswheretheyshouldbestored.
ItisimportanttounderstandthatInfoPathformsarecomposedofseveraldifferentfilesofmanydifferenttypes;thesefilesarecollectivelyknownastheformfiles.Usually,anInfoPathformiscomposedofthefollowingtypesoffiles.
Name Extension DescriptionFormdefinition
.xsf AnInfoPath-generatedfilethatcontainsinformationaboutalloftheotherfilesandcomponentsusedinaform.Thisfileservesasthemanifestfortheform.
XMLSchema
.xsd TheXMLSchemafilesthatareusedtoconstrainandvalidateaform'sunderlyingXMLdocumentfiles.
View .xsl Thepresentationlogicfilesthatareusedtopresent,view,andtransformthedatacontainedinaform'sunderlyingXMLdocumentfiles.
XMLtemplate
.xml The.xmlfilethatcontainsthedefaultdatathatisdisplayedinaviewwhenanewformiscreated.
XMLcomponenttemplate
.xct The.xmlfilerepresentationsoftheeditingcontrolsthatareusedwhencreatingandfillingoutaform.
Presentation .htm,.gif,.bmp,andothers
Thefilesusedinconjunctionwiththeviewfilestocreateacustomuserinterface.
![Page 16: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/16.jpg)
Businesslogic
.js,.vbs Thescriptfiles(MicrosoftJScriptandMicrosoftVBScript)thatcontainprogrammingcodeusedtoimplementspecificeditingbehavior,datavalidation,eventhandlers,controlofdataflow,andothercustombusinesslogic.
Binary .dll,.exe ThecustomComponentObjectModel(COM)componentsthatprovideadditionalbusinesslogic.
Formtemplate
.xsn Thecompressedfileformat(.cab)thatpackagesalltheformfilesintoonefile.
![Page 17: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/17.jpg)
ShowAll
![Page 18: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/18.jpg)
AboutHumanWorkflowServicessupport
HumanWorkflowServices(HWS)isaserviceprovidedbyMicrosoftBizTalkServer2004thatenablesclientapplicationstobuildandmanagehuman-orientedworkflow.MicrosoftOfficeInfoPath2003providesaccesstothisservicebywayoftheWorkflowtaskpane.Inthistaskpane,userscanstartandtrackHWSactionsandrespondtoHWStasks.InfoPathdoesnotprovideadesignerinterfacetoenabletheWorkflowtaskpane;allHWSfunctionalityisenabledbymodifyingtheformdefinitionfile(.xsf).
![Page 19: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/19.jpg)
UsingtheWorkflowTaskPaneTheWorkflowtaskpaneallowstheusertostartorextendaworkfloworrespondtoatask.
ThethreesectionsoftheWorkflowtaskpaneare:
StartWorkflowConsistsoftheactionbuttonsthatcanbeusedtostartaworkflow.ThissectionisonlyvisibleforformsthatareHWSenabledandthatdonothaveanexistingworkflowassociatedwiththem.
ActionTracksthestatusofactionsandtheirassociatedtasks.Onceauserstartsanaction,theactionrunsandistrackedbytheHWSservice.InfoPathdisplaysthestatusoftheactionandwhoisassignedthetask.
TaskAllowstheusertoworkwithtasks.Whenataskisassignedtoauser,InfoPathdisplaysthestatusofthetask,abuttontoresponddirectlytothetask,andoneormorebuttonstostartnewactions.
EnablingtheWorkflowtaskpane
Addingallowedactionstoforms
Addingallowedtaskstoforms
UsingtheOnClickeventtoaddactionandtaskbuttons
![Page 20: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/20.jpg)
CreatinganHWSAdapterBecausetheWorkflowtaskpanedoesnotsubmitdatatotheHWSserviceautomatically,youmustcreateanHWSadaptertosubmittheform.
Thereisnodesignerinterfaceassociatedtothesubmitadapters.Toenabletheseadapters,modifytheformdefinitionfile(.xsf)toincludethehwsAdapterelementwithinthedataAdapterselement.
LikeotherInfoPathWebserviceadapters,theelementmustincludeanamefortheadapterandthelocationoftheWebServicesDescriptionLanguage(WSDL),andmustspecifywhethertheadapterallowssubmittingandquerying.BecausetheseadaptersareonlyusedtosubmitdatatoanHWSservice,thesubmitAllowedattributemustbesetto"yes".ThequeryAllowedattributecanbeomitted,whichcorrespondstoadefaultvalueof"no",oritcanbeincludedandsetto"no".
Aspartofthedesignofactionsandtasks,youcanspecifyadditionalparametersthatarespecifictoeachactionortask.BelowisanexampleofanadapterthatstartsaworkflowwithanApprovalaction.ThevaluetouseforthehwsOperationelementtypeis"addActionToNewActivityFlow".ThetypeIDattributeusestheactionTypeIDattributevalue,whichisaGUID.
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://.../HWSService.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID=”{guid}”serviceUrl="http://.../HWSService.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:foo/b:bar"dataObject=”Aux1”/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
ThehwsAdapterelementhasthesamedefaultinterfaceastheothersubmitadapterssupportedbyInfoPath,buttheHWSsubmitadaptersdonotappearintheinterface.Instead,toinvokeasubmitaction,youmust
![Page 21: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/21.jpg)
addittoyourcode,asshowninthefollowingexample:
XDocument.DataAdapters.Item("StartApproval").Submit();
Atruntime,whenthesubmitoperationisinvoked,abuttonwiththecaption,GetStatus,appearsontheWorkflowtaskpane.Thisbuttonallowstheusertorefreshthetaskpanesothatitshowsthecurrentworkflowinformation.
DefiningHWSsubmitoperationsforactions
DefiningHWSreceiveoperations
![Page 22: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/22.jpg)
ShowAll
![Page 23: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/23.jpg)
AboutprogrammingInfoPath
MicrosoftOfficeInfoPath2003providesdeveloperswitharichdevelopmentenvironmentforcustomizingforms.Formscanbecustomizedbywritingprogrammingcodetorespondtoformanddatavalidationevents,toaccessandmanipulateaform'sunderlyingXMLdocument,toimplementcustomdatasubmissionandmerges,andtoimplementaccesstoexternaldatasources.Customizingaformcanalsoinvolvealteringoneoftheformfilestosuitaspecificrequirement.
ItisimportanttounderstandafewkeyconceptsthatareinvolvedinprogramminganInfoPathform.TheseconceptsincludetheInfoPathprogrammingcomponents,programmaticanddeclarativeprogramming,theInfoPathprogramminglanguages,andtheInfoPathprogrammingenvironment.
InfoPathprogrammingcomponents
Programmaticanddeclarativedevelopment
InfoPathprogramminglanguagesandtheprogrammingenvironment
![Page 24: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/24.jpg)
ShowAll
![Page 25: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/25.jpg)
Aboutsecondarydatasources
MicrosoftOfficeInfoPath2003ServicePack1addstheabilitytoconnectmultipledatasourcestoaformsimultaneously.Usingmultipledatasourcesinyourformsallowsyoutobuildcomplexfunctionalitysuchaslookuplistsorofflinedatastores.
![Page 26: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/26.jpg)
MainandsecondarydatasourcesThemaindatasourcecorrespondstothegroupsandfieldscontainingthedatathatunderliestheformandissavedastheformfile.
Asecondarydatasourceisusedtostoredatafromadditionaldatasources.Wheneveranewdataconnectioniscreatedforretrievingdata—forexample,byusingtheAddbuttonoftheDataConnectionsdialogbox—theretrieveddataisnotstoredinthemaindatasourcebutinasecondarydatasource.Thesecondarydatasourcereceivesthedatafromanydataconnectionusedforquerying,whetheritisanXMLdocument,adatabase,aWebservice,oraSharePointlibraryorlist.
TheDataSourcetaskpanedisplaysthestructure(groupsandfields)ofeachdatasource,bothmainandsecondary,andisusedforbindinggroupsorfieldsinthedatasourcetocontrolsintheform.Whenauserfillsouttheform,thecontrolsdisplaythedatafromthedatasourceandallowittobeupdatedduringediting.
![Page 27: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/27.jpg)
NewfeaturesforworkingwithsecondarydatasourcesThefollowingsectionsdescribethechangesmadetoworkingwithsecondarydatasourcesinInfoPathServicePack1.
TheDataConnectionsdialogbox
DataSourcetaskpane
Fieldsandgroups
Controlsavailableforbindingtosecondarydatasources
![Page 28: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/28.jpg)
ShowAll
![Page 29: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/29.jpg)
Aboutsecurityanddeployment
AdditionalsecurityfeaturesanddeploymentfunctionalityhavebeenaddedtoMicrosoftOfficeInfoPath2003inServicePack1.Supporthasbeenaddedtoallowformtemplatestobemovedfromonelocationtoanotherorsentasanattachmenttoane-mailmessage.Inaddition,supporthasbeenaddedtotheInfoPathdesignmodetofacilitatethecreationanddeploymentoffullytrustedforms.
![Page 30: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/30.jpg)
Securitylevels
Formtemplatescanhaveoneofthreedifferentsecuritylevels,dependingonwheretheformislocated.Thesesecuritylevelsareasfollows:
Restricted
Domain
FullTrust
NoteAllformsgeneratedintheInfoPathdesignerhaveasecuritylevelassociatedwiththem.InfoPathwillattempttoopenformsattheirassociatedsecuritylevel.Ifthesecuritylevelassociatedwiththeformishigherthanthesecuritylevelthatcanbegrantedtoit,theformwillnotopen.
Formsaregrantedsecuritylevelsbasedonthelocationfromwhichtheformwasopened.Formoreinformation,seetheTrustlevelssection.
![Page 31: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/31.jpg)
TrustlevelsThehighestleveloftrustgrantedtoaformtemplateisdeterminedbythe"cachedfrom"location(thatis,wheretheformiscachedfrom)andotherverificationcode,asdescribedinthefollowingtable.Theattributeslistedinthetable(forexample,HTTP,UNC,requireFullTrust)arecache-basedentriesthatareusedtodeterminetheleveloftrustgrantedtoaform.
TrustLevelGranted
TrustLevelGranted
TrustLevelGranted
HighestLevelofTrustGrantedFullTrust
ClientComputer(Sandboxed)
Intranet(Sandboxed)
file:LocationId=CachedFromLocation
X
file:LocationId<>CachedFromLocationornoLocationId(regardlessofwheretheformcamefrom)
CachedFromLocation:IntranetHTTPorHTTPS
X
CachedFromLocation:InternetHTTPorHTTPS
CachedFromLocation:UNC XInstalledTemplate(requireFullTrust="yes")
X
InstalledTemplate(requireFullTrust="no")
X
Templatewithtrustedpublishercertificate
X
ExtractedFormFiles X
AllformfilesopenedintheInfoPatheditorareboundbyasetofconditionsthatdeterminethesecuritylevelinwhichtheformwillopen
![Page 32: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/32.jpg)
andwhetheritwillopen.WhenanInfoPathformisopenedintheeditor,itwilleitherbeopenedwithanappropriatesecuritylevel,oritwillfailtoload.Ifaformrequestsahighersecuritylevelthanitcanbegranted(aformcanrequestaspecificsecuritylevelusingthetrustLevelorrequireFullTrustattribute),itwillnotbepermittedtoload.Otherwise,itwillbeloadedwiththesecuritylevelitrequests.Iftheformtemplateisnotpermittedtoopenwiththerequestedsecuritylevel,theuserwillnotbeabletoopentheformandwillreceivethe"InsufficientSecurityPrivilegeWarning"errormessage.
Thefollowingtabledescribestheconditionsrequiredforopeningaformateachsecuritylevelandtheresultantbehaviorwhentheuserattemptstoopentheform:
Formasksfor: Formasksfor:
EditorOpens/Fails
FullTrust(requireFullTrust="yes")
DomainTrust(trustLevel="Domain"orblank)
HighesttrustlevelInfoPathcangrantbasedonevidence
Trusted(installedortrustedcertificate)
EditoropensatFullTrustlevel
N/A
HighesttrustlevelInfoPathcangrantbasedonevidence
DomainTrust:ClientComputer
Failstoopen EditoropensatDomainlevel
Highesttrust
Failstoopen EditoropensatDomainlevel
![Page 33: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/33.jpg)
levelInfoPathcangrantbasedonevidence
DomainTrust:Intranet
HighesttrustlevelInfoPathcangrantbasedonevidence
DomainTrust:Internet
Failstoopen EditoropensatDomainlevel
HighesttrustlevelInfoPathcangrantbasedonevidence Restricted
Failstoopen Failstoopen
Specifyingasecuritylevel
![Page 34: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/34.jpg)
Maildeploymentandmobileformtemplates
MicrosoftOfficeInfoPath2003ServicePack1allowsyoutosendyourformtemplatesasanattachmenttoane-mailmessageandtomovethemfromonelocationtoanother.Maildeploymentisaneasyandeffectivewaytodistributeformsforinterofficeuseaswellastodeployformstoremoteusers.
Understandingformidentity
Designingaformtosendasanattachmenttoane-mailmessage
Sharingformsbye-mailmessageorfromacommonsharedlocation
Compatibility
![Page 35: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/35.jpg)
ShowAll
![Page 36: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/36.jpg)
Abouttheformdefinitionfile
TheMicrosoftOfficeInfoPath2003formdefinition(.xsf)file,commonlyreferredtoasthe.xsffile,servesasthemanifestofanInfoPathform.The.xsffileisautomaticallycreatedbyInfoPathwhenanewformtemplateiscreatedandsavedindesignmode.Asformdesignersanddeveloperschangetheformtemplateoraddnewfeaturestoit,InfoPathupdatesthe.xsffiletoreflectthosechanges.
NoteThe.xsffilecanalsobemodifieddirectlybyusinganytextorXMLeditor,suchasMicrosoftNotepad.However,careshouldbetakenwhenmakingmodificationstothe.xsffile:ifaninvalidentryismade,theformthatthefileisassociatedwithmaybeleftinanunusablestate.However,somecustomizationscanbemadetothe.xsffilethatcannotbegeneratedindesignmode.
The.xsffileisthecorefileofanInfoPathformbecauseitcontainsinformationabouttheformasawhole.Someofthedataitcontainsincludesprocessingmetadata,userinterfacecustomizations,schemadefinitions,views,businesslogicdeclarations,eventhandlers,anddeploymentinformation.
Thefollowingaresomeoftheitemsthatthe.xsffilecontains:
Auniqueidentifierfortheform
Globalmetadatainformationabouttheform,includingdeploymentandpublishinginformation
TheXMLSchemadefinitionsfortheXMLdocumentthattheformproduces
Definitionofviewsandtheirassociateduserinterfacecomponents(menus,toolbars,andbuttons)
Definitionofeditingactionsthataremadeavailableusinguserinterfacecomponents,andhowtheiravailabilitywillbedeterminedcontextually
Workflowandroutinginformation
Eventhandlers,datavalidation,andbusinesslogicthatisassociatedwithindividualXMLnodesoftheform'sunderlyingXMLdocument,orwiththe
![Page 37: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/37.jpg)
XMLdocumentitself
Eventhandlersassociatedwiththeformasawhole
Packaginginformationaboutallofthefilescontainedwithintheformtemplate
The.xsffileisbasedonthexsfnamespace.ItsrootelementisthexDocumentClasselement.
NoteAcompletereferencetothe.xsffile,includingallofitselements,attributes,andotherentities,canbefoundintheInfoPathXSFReferencethatispartoftheInfoPathDeveloper'sReference,availableintheInfoPathHelpsystemandtheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 38: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/38.jpg)
ShowAll
![Page 39: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/39.jpg)
Abouttheprogrammingenvironment
MicrosoftOfficeInfoPath2003usestheMicrosoftScriptEditor(MSE)asitsprimaryintegrateddevelopmentenvironment.MicrosoftJScriptandMicrosoftVBScriptaretheprogramminglanguagesthatareusedinMSEtocreatecustombusinesslogicforaform.
MSEcanbeopenedwhenworkingwithaformindesignmodebypointingtoScriptontheToolsmenuandclickingMicrosoftScriptEditor,orbypressingALT+SHIFT+F11.WhenyouopenMSEfromInfoPath,theMSEcodeeditorappearsandtheform'sdefaultscriptingfile(witheithera.jsor.vbsextension,dependingonthescriptinglanguagesetfortheform)opensinthecodeeditingwindow.
WorkingwithMSEinanInfoPathforminvolvesseveraltasks,includingsettingthedefaultscriptinglanguage,creatinganeventhandler,anddebuggingscriptingcode.
Settingthedefaultscriptinglanguage
Creatinganeventhandler
Debuggingscriptingcode
NoteFormoreinformationaboutusingMSE,clickMicrosoftScriptEditorHelpontheHelpmenuwhenworkinginMSE.
![Page 40: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/40.jpg)
AboutVisualStudio.NETintegration
MicrosoftOfficeInfoPath2003ServicePack1orlaterallowsyoutouseMicrosoftVisualStudio.NETtowritemanagedcodeinsteadofscriptforformcodeinnewInfoPathformtemplatesortoaddmanagedcodetoexistingformtemplates.TouseVisualStudio.NETtocreate,debug,andbuildInfoPathprojectsthatuseMicrosoftVisualC#orVisualBasic.NETmanagedcode,youmustdownloadtheMicrosoft®OfficeInfoPath™2003ToolkitforVisualStudio®.NETfromtheInfoPathDeveloperCenterontheMicrosoftDeveloperNetwork(MSDN)WebsiteandinstallitwithVisualStudio.NET2003.TheintegrationfeaturesprovidedbythetoolkitallowyoutouseacombinationofInfoPathforformdesignandVisualStudio.NETforwritinganddebuggingformcode.TheseintegrationfeaturesallowyoutotakeadvantageofsuchfeaturesoftheVisualStudio.NETdevelopmentenvironmentas:
Buildingyourprojectindebugorreleaseconfigurations.
UsingIntelliSensesupportintheCodeEditorsuchasstatementcompletion,memberslists,andinlineparameterinformation.
PressingF1intheCodeEditortodisplaycontext-sensitivehelpinformationabouttypes,members,andothercodekeywords.
UsingVisualStudio.NETdebuggingfeatures.
Additionally,usingmanagedcodeinInfoPathprojectsallowsyoutotakeadvantageofthefeaturesofthe.NETFrameworkcommonlanguageruntime(CLR)andtomakecallsintothecomprehensive,object-orientedcollectionofreusabletypesprovidedbythe.NETFrameworkclasslibrary.
FormoreinformationonusingVisualStudio.NETtocreateInfoPathprojects,seethedocumentationinstalledwiththeMicrosoftOfficeInfoPath2003ToolkitforVisualStudio.NET.
![Page 41: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/41.jpg)
ShowAll
![Page 42: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/42.jpg)
AboutXMLSchemaimprovements
ManyimprovementshavebeenmadeforXMLSchema(.xsd)supportinMicrosoftOfficeInfoPath2003ServicePack1.
NativesupportforthefollowingXMLSchemaconstructshavebeenaddedtoInfoPath:
Abstracttypes
Abstractelementsandsubstitutiongroups
Requiredwildcard(<any>)
Repeatingoroptionalmodelgroupsintheschema(sequence,choice,group,andallwithminOccursormaxOccursdifferentfrom1)
Inlineschemas
![Page 43: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/43.jpg)
InteractiveincrementalcreationofthedatasourceTosupportabstracttypesorelementsandrequiredwildcards,creationofthedatasourceisnowinteractive.Forexample,schemacreationisnotpossibleiftheschemadelegatespartofitssyntaxtootherschemas.Thiscanhappenwhenatypeoranelementisdefinedasabstractorwhenthecontentmodelofanelementcontainsan<any>.Whenoneoftheseconditionsoccurs,InfoPathwillprompttheusertospecifyaschemasourcethatcontainstheneededdatabeforeproceeding.Thisprocessisrepeateduntiltheschemacollectionthatisloadedcontainsenoughinformationtogenerateacompletedatasource.
![Page 44: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/44.jpg)
BettermodelgroupsupportModelgroupsspecifiedas"choice"or"sequence"andwithminOccursormaxOccursnotequalto1arenowshownintheDataSourcetaskpane.Theycanbeboundtocontrols,andtheycanbetreatedasagroupinthedatasource.
NoteModelgroupsdesignatedas"group"or"all"arenotdisplayedintheDataSourcetaskpane.
![Page 45: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/45.jpg)
NativesupportforinlineschemasInlineschemasarenativelysupportedduringdesign.ThisfeatureallowsyoutouseanXMLdocumentthatcontainsitsownschemaasadatasource.
![Page 46: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/46.jpg)
SupportfordatasourcechangeTheunderlyingdatastructureofaformcannowbechangedduringformcreation.ClickingConvertMainDataSourceontheToolsmenuallowsyoutoconvertthecurrentdatasourcewhileretainingtheinformationthatdependsonit.
Changingadatasourceisrestrictedtothefollowingpaths:
Convertingfromablankform,XMLSchema,orXMLfiletoanotherXMLSchemaorXMLfile.
ConvertingfromaWebserviceorotherdataconnectiontoanotherWebserviceordataconnection.
Onceyouspecifythenewdatasource,alldependentdatawillbemappedtothenewdatasource.Ifthedatacannotbemapped,controlswillappearunboundintheview.
NoteChangingthedatasourcedoesnotupdatethecodeassociatedwiththeform.Also,afterusingtheConvertMainDataSourcecommand,youcannotusetheUndocommandontheEditmenutoreverttotheoriginaldatasource.
![Page 47: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/47.jpg)
RecursivetemplatesupportTheRepeatingRecursiveSectioncontroladdsrecursivestructuresofarbitrarydepthtoaform.
ThiscontrolisnowthedefaultcontrolwhenyoudragarecursivestructurefromtheDataSourcetaskpane.
Thepropertiesoftherecursivesectioncorrespondtothepropertiesofanordinarysection,withtheexceptionthatdigitalsignaturesarenotallowed.TheonlypropertythatcanbesetintheinternalrecursiveblockisthedefaultvalueoftheXMLfragmentforadditionalrecursivesectionsinsertedwithintheoutermostinstance.
![Page 48: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/48.jpg)
ShowAll
![Page 49: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/49.jpg)
AbouttheInfoPathobjectmodel
TheMicrosoftOfficeInfoPath2003objectmodelisaCOM-basedobjectmodelthatcanbeusedtointeractwithInfoPathformsandtheirunderlyingXMLdocuments.ItissimilartootherMicrosoftOfficeapplicationobjectmodelsinthatitimplementsinterfacesforcollections,objects,properties,methods,andevents.However,theInfoPathobjectmodelisprimarilyusedinscriptingcode,usingtheMicrosoftScriptEditor(MSE)thatisbuiltintoInfoPath.
NoteUnlikeotherOfficeapplicationsthatsupportcompleteapplicationautomation,theInfoPathobjectmodelsupportsautomationofonlycertainfeaturesoftherun-timeeditingenvironment.
ThefollowingsectionsdiscusstheInfoPathfunctionalareasthattheobjectmodelrepresents,thelocationsfromwhichtheobjectmodelcanbeaccessed,andthelevelsofobjectmodelsecurity.
Objectmodelfunctionalareas
Objectmodelaccess
Objectmodelsecurity
ViewingServicePack1objectmodelchangesfromtheObjectBrowser
![Page 50: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/50.jpg)
ShowAll
![Page 51: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/51.jpg)
Accessingapplicationdata
TheMicrosoftOfficeInfoPath2003objectmodelprovidesobjectsandcollectionsthatcanbeusedtogainaccesstoinformationabouttheInfoPathapplication,includinginformationrelatedtoaform'sunderlyingXMLdocumentandtheformdefinition(.xsf)file.Thisdataisaccessedthroughthetop-levelobjectintheInfoPathobjectmodelhierarchy—theApplicationobject.
UsingtheApplicationobject,InfoPathformdeveloperscanaccessinformationaboutthecurrentlyinstalledinstanceofInfoPath,includingitsnameandversionnumber.Inthefollowingexample,theNameandVersionpropertiesoftheApplicationobjectreturndatainamessageboxtotheuser:
Application.XDocuments(0).UI.Alert("Applicationname:"+Application.Name+"\nApplicationversion:"+Application.Version);
NotethattheAlertmethodoftheUIobject,whichisaccessedthroughtheXDocumentobject,isusedtodisplayamessageboxtotheuser.BecausetheXDocumentobjectthatrepresentsthecurrentlyopenform'sunderlyingXMLdocumentisembeddedintheInfoPathscriptengine,thepreviousexamplecanalsobewrittenasfollows:
XDocument.UI.Alert("Applicationname:"+Application.Name+"\nApplicationversion:"+Application.Version);
NoteThe\ncharacterreferencesinthetextforthealertmessageisastandardnewlinefeedthatcausesthetexttobreakandbeplacedonanewlineinthemessagebox.
Accessingdataaboutaform'sXMLdocument
Accessingdataaboutaform's.xsffile
![Page 52: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/52.jpg)
ShowAll
![Page 53: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/53.jpg)
Accessingexternaldatasources
WhenworkingwithaMicrosoftOfficeInfoPath2003form,youcanwritescriptingcodetoaccesstheform'ssecondarydatasources,whicharetypicallyexternaltotheprimarydatasourceofaform,andthenmanipulatethedatathattheycontain.TheInfoPathobjectmodelsupportsaccesstoaform'sexternaldatasourcesthroughtheuseoftheDataObjectobjectinassociationwiththeDataObjectscollection.
TheInfoPathobjectmodelalsoprovidesasetofdataadapterobjects,containinginformationaboutthesecondarydatasources,andaccesstothedatathattheycontain.ThetypeofdataadapterthatisreturnedbytheDataObjectobjectdependsonthetypeofdatasourcethatwasselectedwhenthesecondarydatasourcewascreatedindesignmode.
OverviewoftheDataObjectscollection
OverviewoftheDataObjectobject
Overviewofthedataadapterobjects
UsingtheDataObjectscollectionandtheDataObjectobject
![Page 54: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/54.jpg)
ShowAll
![Page 55: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/55.jpg)
Accessingformdata
WhenyouwanttoextendthefunctionalityofaMicrosoftOfficeInfoPath2003form,itisoftennecessarytoprogrammaticallyaccessinformationabouttheform'sunderlyingXMLdocument,accessthedatathattheXMLdocumentcontains,orperformsomeactionontheXMLdocument.TheInfoPathobjectmodelsupportsaccessandmanipulationofaform'sunderlyingXMLdocumentthroughtheuseoftheXDocumentobjectinassociationwiththeXDocumentscollection.
TheXDocumentobjectisoneofthemostusefulobjectswithintheInfoPathobjectmodelbecauseitprovidesavarietyofproperties,methods,andeventsthatnotonlyinteractwithaform'sunderlyingXMLdocument,butalsoperformmanyoftheactionsthatarewithintheInfoPathuserinterface.
OverviewoftheXDocumentscollection
OverviewoftheXDocumentobject
UsingtheXDocumentscollectionandtheXDocumentobject
![Page 56: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/56.jpg)
ShowAll
![Page 57: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/57.jpg)
AutomatingInfoPath
MicrosoftOfficeInfoPath2003ServicePack1offersexpandedapplicationautomationintheformofmethodsoftheApplicationobjectandtheXDocumentscollection.
OverviewoftheApplicationandXDocumentobjects
Forbackwardcompatibility,theautomationofInfoPathisaccomplishedbyusingtheExternalApplicationobjectfromaprogramminglanguageorenvironmentthatsupportstheComponentObjectModel(COM).
OverviewoftheExternalApplicationobject
UsingtheExternalApplicationobject
![Page 58: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/58.jpg)
ShowAll
![Page 59: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/59.jpg)
Displayingalertsanddialogboxes
WhenwritingprogrammingcodetoextendthefunctionalityofaMicrosoftOfficeInfoPath2003form,itisoftenusefultoprovidetheuserwithinformationinadialogbox.ProgrammaticallydisplayingadialogboxisaccomplishedinInfoPathbyusingtheUIobject.
OverviewoftheUIobject
UsingtheUIobject
![Page 60: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/60.jpg)
ShowAll
![Page 61: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/61.jpg)
Handlingerrors
Whencreatingcustomapplications,developersmustoftenperformerrorhandlingthatinvolveswritingprogrammingcodetocheckforerrorsraisedbytheapplicationortocreateandraisecustomerrors.TheMicrosoftOfficeInfoPath2003objectmodelsupportserrorhandlingthroughtheuseoftheErrorobjectinassociationwiththeErrorscollection.
InInfoPath,errorscanoccurwhenaform'sXMLSchemaisvalidated,whenacustomvalidationconstraintfails,whenanerrorisgeneratedbytheReportErrormethodoftheDataDOMEventobject,orwhenanerroriscreatedusingtheAddmethodoftheErrorscollection.
OverviewoftheErrorscollection
OverviewoftheErrorobject
UsingtheErrorscollectionandtheErrorobject
![Page 62: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/62.jpg)
ShowAll
![Page 63: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/63.jpg)
Respondingtoformevents
YoucanwritescriptingcodetorespondtovariouseventsthatcanoccurinMicrosoftOfficeInfoPath2003asauserfillsoutaform.InInfoPath,eventstaketheformofeventhandlersthatarecreatedwhenworkingwithaformindesignmode.
InfoPatheventhandlersmustbeinitiallycreatedindesignmodebecause,inadditiontothescriptingdeclarationsthatarecreatedinaform'sprimaryscriptingfile,entriesarealsomadeintheformdefinition(.xsf)file.Afteryouhavecreatedaneventhandler,youshouldnotalteritsdeclarationintheprimaryscriptingfile.
ForinformationaboutcreatingtheInfoPatheventhandlers,seeAbouttheprogrammingenvironment.
Overviewoftheeventobjects
Usingtheeventobjects
![Page 64: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/64.jpg)
ShowAll
![Page 65: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/65.jpg)
Workingwithformwindows
WhenworkingprogrammaticallywithaMicrosoftOfficeInfoPath2003form,youcanwritescriptingcodetoaccesstheform'swindows,andthencustomizesomeoftheitemsthattheycontain.TheInfoPathobjectmodelsupportsaccesstoaform'swindowsthroughtheuseoftheWindowobjectinassociationwiththeWindowscollection.
TherearetwotypesofwindowsinanInfoPathform:theeditingwindowthatisusedastheformareawhenauserfillsoutaform,andthedesigningwindowthatisusedasthedesignmodewhenauserdesignsaform.Whenwritingscriptingcodeinaform,itistheeditingwindowthatprovidesthemostusefulfunctionality,becauseyoucanusetheWindowobjectassociatedwithittoaccessavarietyofpropertiesandmethodsthatcanbeusedtocustomizeaform.
OverviewoftheWindowscollection
OverviewoftheWindowobject
UsingtheWindowscollectionandtheWindowobject
![Page 66: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/66.jpg)
ShowAll
![Page 67: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/67.jpg)
Workingwithviews
WhenworkingwithaMicrosoftOfficeInfoPath2003form,youcanwritescriptingcodetoaccesstheform'sviews,andthenperformavarietyofactionsonthedatathattheviewscontain.TheInfoPathobjectmodelsupportsaccesstoaform'sviewsthroughtheuseoftheViewobject.
OverviewoftheViewobject
UsingtheViewobject
![Page 68: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/68.jpg)
ShowAll
![Page 69: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/69.jpg)
Aboutthedevelopersampleforms
TheMicrosoftOfficeInfoPath2003developersampleformsareasetofformsdesignedtodemonstratevariousdevelopmenttechniquesforcustomizingandimplementingInfoPathfeatures.Thefollowingtablelistseachofthedevelopersampleformsandthefeaturesthattheyillustrate.
Name Filename DescriptionDataValidation
D_VALID.XSN Demonstratesthewaysinwhichdatacanbevalidatedinaform.Methodscoveredincludeschema-based,custom,andscript-basedvalidation.
Events EVENTS.XSN Demonstratestheeventsthatcanbeusedinaform.Eventscoveredincludeformevents,datavalidationevents,andcontrolevents.
StructuralEditing
CD_EDIT.XSN DemonstratesthewaysinwhichthesourceXMLdocumentofaformmaybeedited,andhowtheeditingactionsthatareavailabletoauserarebasedoncontext.Methodscoveredincludefieldandstructuralediting,withexamplesofeditingusingcontrolsandscriptingcode.
UserInterface
UIBASICS.XSNDemonstratesthewaysinwhichtheInfoPathuserinterfacecanbecustomizedinaform.Methodscoveredincludemenuitems,toolbars,customtaskpanes,andcustomdialogboxes.
Usingthedevelopersampleforms
![Page 70: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/70.jpg)
ShowAll
![Page 71: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/71.jpg)
AbouttheDataValidationdevelopersampleform
TheDataValidationdevelopersampleformdemonstratesthevarietyofwaysinwhichdatacanbevalidatedinMicrosoftOfficeInfoPath2003.Thissampleformisdividedintothreesections,eachdemonstratingoneofthethreemethodsofdatavalidation:schema-basedvalidation,customvalidation,andscript-basedvalidation.
Totestthefeaturesofthesampleform,simplychooseanyfieldandenterdatathatdoesnotcomplywiththevalidationconstraintthatisassociatedwithit.Thevalidationconstraintscanbeviewedbyrestingthemousepointeroverthequestionmarkiconnexttoeachfield.Whenyoumovethecursoroutofthefield,youreceiveoneoftwopossibleerrorindications:aninlinealertoradialogboxalert.
NoteToseeallofthefilesthatmakeuptheDataValidationdevelopersampleform,opentheformandclickExtractFormFilesontheFilemenuwhileindesignmode.Thisextractsalloftheformfilesfromtheformtemplatefileandsavesthemtoaspecifiedfolderonyourharddisk.
TolearnhoweachofthedatavalidationmethodsisimplementedintheDataValidationdevelopersampleform,seethefollowingtopics:
Schema-basedvalidationintheDataValidationdevelopersampleform
CustomvalidationintheDataValidationdevelopersampleform
Script-basedvalidationintheDataValidationdevelopersampleform
![Page 72: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/72.jpg)
ShowAll
![Page 73: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/73.jpg)
Schema-basedvalidationintheDataValidationdevelopersampleform
Schema-baseddatavalidationinMicrosoftOfficeInfoPath2003isdeterminedbytheXMLSchemaassociatedwithaform.Schema-basedvalidationoccursbydefaultwheneverauserfillsoutaform.Aftertheuserentersdataintoafieldandmovesoutofthatfield,thedataisimmediatelycheckedagainsttheXMLSchema.
IntheDataValidationdevelopersampleform,schema-basedvalidationisusedtoverifythatanumberfallswithinacertainrange,verifythetypeofdatainafield,verifythatafieldcontainsdata,andlimitthenumberofrowsthatcanbeaddedtoatable.
NoteInfoPathsupportsthecreationofonlydatatypeandrequiredfieldconstraintsinXMLSchemasindesignmode.However,theuseofotherkindsofconstraintsintheschemaissupported.Tocreateotherkindsofschema-basedvalidation,youmustedityourXMLSchemafilesusingMicrosoftNotepadorsomeothertexteditor.
Rangecheckinganddata-typevalidationintheschema
Requiredfieldsintheschema
Structuralvalidationintheschema
![Page 74: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/74.jpg)
ShowAll
![Page 75: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/75.jpg)
CustomvalidationintheDataValidationdevelopersampleform
Custom(ordeclarative)validationinMicrosoftOfficeInfoPath2003isusedtocheckforrequiredfields,verifyarangeofvalues,andensuretheaccuracyofafield.YoucanusetheDataValidationdialogboxtocreatecomplexvalidationconstraintsthatperformcalculationsandvalidatethedatainotherfields.Validationerrorscanbedisplayedasinlinealertsordialogboxalerts.Ineithercase,youcanwriteerrormessagesthattelltheuserhowtofixtheinvalidentry.Aswithschema-basedvalidation,customvalidationconstraintsareattachedtofieldsintheform,andthevalidationisinvokedwhenauserchangesthedatainafield.
NoteTheDataValidationdialogboxisavailableviathePropertiesdialogboxforeachoftheOfficeInfoPath2003controls.
WhenyoucreateacustomdatavalidationconstraintintheDataValidationdialogbox,OfficeInfoPath2003createsanerrorConditionelementwithinthecustomValidationsectionoftheformdefinition(.xsf)file.Thefollowingisanexampleofthevalidationconstraintscreatedinthe.xsffileforthecostfieldintheDataValidationdevelopersampleform:
<xsf:customValidation><xsf:errorConditionmatch="/sampleData/travelExpenses/expense/cost"expressionContext="."expression=".<0or.>500"><xsf:errorMessagetype="modeless"shortMessage="Thecostoftheitemmustbemorethan$0.00andcannotgoover$500.00.">Thecostoftheitemmustbemorethan$0.00andcannotgoover$500.00.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 76: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/76.jpg)
ThematchattributeoftheerrorConditionelementspecifiestheXPathexpressionthatisusedtobindthecustomdatavalidationconstrainttothefield,andtheexpressionattributeisusedtospecifytheconstraint.
TheerrorMessageelementisnestedwithintheerrorConditionelementandisusedtospecifytheerrormessagethatappearswhenthevalueoftheassociatedfieldviolatestheconstraint.TheshortMessageattributeequatestotheScreenTipfieldintheDataValidationdialogbox,andthevalueoftheerrorMessageelementequatestotheMessagefieldintheDataValidationdialogbox.Thetypeattributeisusedtospecifyerrortype.
![Page 77: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/77.jpg)
ShowAll
![Page 78: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/78.jpg)
Script-basedvalidationintheDataValidationdevelopersampleform
Script-basedvalidationisspecifiedinthebusinesslogicscriptfileassociatedwithaMicrosoftOfficeInfoPath2003form,anditprovidesmoreflexibilitythancustomvalidationorschema-basedvalidation.Usingscript-basedvalidation,youcanspecifywhenafieldshouldbevalidated(forexample,whentheuserfirsttypesdataintoafield,aftertheuserleavesafield,orafterdataisvalidatedbytheschema).Youcanalsowritescriptthatrunswhenaformisopenedorwhentheuserswitchesviews.Thescriptyouwritecanperformavarietyoffunctions,includingcomparingfields,calculatingvalues,showingerrormessages,updatingvalues,andrevisingotherfields.
NoteInfoPathsupportswritingscriptinMicrosoftVBScriptandMicrosoftJScript.However,youcannotmixthescriptinglanguagesusedwithinasingleform.
Tocreatescript-baseddatavalidation,youuseInfoPathdesignmodetocreateaneventhandler(alsocalledaneventfunction),andthenyouwritescriptingcodefortheeventhandlerusingtheMicrosoftScriptEditor(MSE).Foreacheventhandlerthatyoucreate,InfoPathplacesanentryintheformdefinition(.xsf)filethatcontainsthenameoftheeventhandlerandtheXMLDocumentObjectModel(DOM)nodethattheeventhandlerisassociatedwith.
Becausetheeventhandlerisreferencedinthe.xsffile,youcannotcreateaneweventhandlerentirelyfromwithinMSE—youmustinitiallycreatetheeventhandlerinInfoPathdesignmode.SinceInfoPathisusedtocreatethedeclarationoftheeventhandler,youcannotmodifytheeventhandlernameoritsargumentsonceithasbeencreated.
Eventhandlersintheformdefinitionfile
Script-basedeventhandlersandfunctions
UsingtheDataDOMEventobject
![Page 79: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/79.jpg)
ShowAll
![Page 80: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/80.jpg)
AbouttheEventsdevelopersampleform
TheEventsdevelopersampleformdemonstratessomeoftheeventsthatmaybeusedinaMicrosoftOfficeInfoPath2003form.InInfoPath,eventsareusedtoimplementclient-sidebusinesslogic,whichmayincludedatavalidation,controllingthebehaviorofaform,respondingtotheactionsofcontrolsonaform,orsubmittingaform.
TheEventsdevelopersampleformisbasedonthescenarioofacustomercontactsystem.Itcontainsthreeviewsthatareusedtomanagecustomerinformation:
NewCustomerViewUsedtoenternewcustomerinformation.Customerinformationmustbeenteredinthisviewbeforetheotherviewscanbeused.
ContactCustomerViewUsedtosetthedatesonwhichthecustomershouldbecontactedandtorecordthatthecustomerhasbeencontacted.
ArchiveCustomerViewUsedtoshowcustomerinformation,recordnotesaboutthecustomer,andrecordthatthecustomerrecordhasbeenarchived.
Totestthefeaturesofthesampleform,entercustomerinformationinNewCustomerview,andthenclickSwitchToContactCustomerViewtoswitchviews.AfterenteringcustomercontactinformationinContactCustomerview,youcanclickSwitchToArchiveCustomerViewtoswitchtothelistofarchivedcustomercontactinformation.
NoteToseeallofthefilesthatmakeuptheEventsdevelopersampleform,opentheformandclickExtractFormFilesontheFilemenuwhileindesignmode.Thisextractsalloftheformfilesfromtheformtemplatefileandsavesthemtoaspecifiedfolderonyourharddisk.
TolearnhoweacheventisimplementedintheEventsdevelopersampleform,seethefollowingtopics:
FormeventsintheEventsdevelopersampleform
DatavalidationeventsintheEventsdevelopersampleform
ControleventsintheEventsdevelopersampleform
![Page 81: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/81.jpg)
ShowAll
![Page 82: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/82.jpg)
FormeventsintheEventsdevelopersampleform
TheEventsdevelopersampleformimplementsavarietyofMicrosoftOfficeInfoPath2003formeventsthatcanbeusedtorespondtospecificactivitiesthatoccurwhenaformisopenedandwhileitisbeingfilledout.Formeventscanoccurwhenaform'sversionnumberisvalidated,whenaformisopened,whenaformviewischanged,andafteraformhasbeenmergedwithanotherform.
ThefollowingtablelistseachoftheformeventsimplementedintheEventsdevelopersampleform,alongwithadescriptionofhowtheyareused.
Event DescriptionOnVersionUpgradeUsedtoverifythattheversionnumberoftheform
beingopenedmatchestheversionnumberoftheformwhenitwasoriginallydesigned.Iftheversionnumbersdonotmatch,thiseventoccursandscriptingcodecanbeusedtoupdatetheformordisplayanerrormessage.
OnLoad Usedtoinitializetheformasitisbeingopened.Whenthiseventoccurs,scriptingcodecanbeusedtosettheappropriateviewbasedondatacontainedintheform.
OnSwitchView Usedwhenchangingfromoneviewtoanother.Thiseventoccurswhenauserchangesviews,andscriptingcodecanbeusedtoinsertdataintotheform.
OnAfterImport Usedtoprovideadditionalprocessingafteraformhasbeenmergedwithanotherform.Thiseventoccursafterdataisimportedfromanotherform,andscriptingcodecanbeusedtosettheappropriateviewbasedonthemergeddatacontainedintheform.
NoteTheOnSubmitRequesteventisalsoaformevent,butitwasnotusedintheEventsdevelopersampleform.
![Page 83: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/83.jpg)
UsingtheOnVersionUpgradeevent
UsingtheOnLoadevent
UsingtheOnSwitchViewevent
UsingtheOnAfterImportevent
![Page 84: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/84.jpg)
ShowAll
![Page 85: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/85.jpg)
DatavalidationeventsintheEventsdevelopersampleform
TheEventsdevelopersampleformimplementsavarietyofMicrosoftOfficeInfoPath2003datavalidationeventsthatcanbeusedtovalidatedatathatisenteredintoaform.Datavalidationeventscanoccurafterachangehasbeenmadetoafieldorgroup,afterachangehasbeenmadetoafieldorgroupbutbeforethedataiscommitted,andafterachangehasbeenmadetoafieldorgroupandafterthedataiscommitted.
Touseoneofthedatavalidationevents,youmustfirstcreatetheeventintheFieldorGroupPropertiesdialogboxthatisavailablefromtheDataSourcetaskpane.Toaccessthisdialogbox,right-clickoneofthefieldsorgroupsinthetaskpane,andthenclickProperties.OntheValidationandScripttab,selecttheeventyouwishtocreate,andthenclickEdit;thisopensMicrosoftScriptEditor(MSE)anddisplaystheInfoPath-generatedeventhandler.
NoteEventhandlersinInfoPathmustbecreatedindesignmode.
ThefollowingtablelistseachofthedatavalidationeventsimplementedintheEventsdevelopersampleform,alongwithadescriptionofhowtheyareused.
Event DescriptionOnValidate Usedtovalidatethedatacontainedinthe
ContactDatesgroup.Whenthiseventoccurs,scriptingcodeisusedtoverifythatthedatesusedarewithinaspecifiedrange.
OnBeforeChange UsedtovalidatethedatacontainedintheEmailCampaignStart,PhoneContactStart,andRepresentativeVisitdatefields.Whenthiseventoccurs,scriptingcodeisusedtoimplementbusinesslogicthatchecksfortheexistenceofcertaindatesbeforeotherscanbeenteredorremoved.
OnAfterChange UsedtocallafunctionthatcalculatesthetotalcampaigncostsandupdatestheCampaignCost
![Page 86: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/86.jpg)
field.
UsingtheOnValidateevent
UsingtheOnBeforeChangeevent
UsingtheOnAfterChangeevent
![Page 87: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/87.jpg)
ShowAll
![Page 88: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/88.jpg)
ControleventsintheEventsdevelopersampleform
TheEventsdevelopersampleformimplementsasingleMicrosoftOfficeInfoPath2003controleventthatcanrespondtoabuttonclick;thisistheOnClickevent.TheOnClickeventoccursafterauserclicksabuttononaform.
NoteTheOnClickeventistheonlycontroleventsupportedbyInfoPath.
TousetheOnClickevent,youmustfirstcreatetheeventintheButtonPropertiesdialogboxthatisavailableontheshortcutmenuforthebuttoncontrol.OntheGeneraltab,setScriptastheAction,andthenclickMicrosoftScriptEditor.ThiswillopenMicrosoftScriptEditor(MSE)anddisplaytheInfoPath-generatedeventhandler.
NoteEventhandlersinInfoPathmustbecreatedindesignmode.
IntheEventsdevelopersampleform,theOnClickeventisimplementedforthethreebuttonsthatareusedtoswitchbetweenviews.ThefollowingexamplefromtheEventsdevelopersampleformshowstheOnClickeventhandlerfortheSwitchtoNewCustomerViewbutton:
functionbtnSwitchNew::OnClick(eventObj){XDocument.View.SwitchView("NewCustomer")}
NoteThenameofthebuttonusedintheeventhandlerdeclarationisdeterminedbythevaluesetfortheScriptIDboxintheButtonPropertiesdialogbox.
![Page 89: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/89.jpg)
ShowAll
![Page 90: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/90.jpg)
AbouttheStructuralEditingdevelopersampleform
TheStructuralEditingdevelopersampleformdemonstratessomeofthewaysinwhichtheunderlyingXMLdocumentofaMicrosoftOfficeInfoPath2003formmaybeeditedusingacombinationofcontrols,menuitems,toolbarbuttons,andscript.WhenfillingoutaforminInfoPath,usersareessentiallyeditinganXMLdocumentinaneasy-to-use,graphicalformat.AlthoughtheStructuralEditingdevelopersampleformisprimarilyintendedtodemonstratestructuralediting,itisusedtoillustratetwotypesofeditingthatcanoccurinaform:
FieldeditingEditingthatmodifiesthetextinafield(anelementorattributeintheform'sunderlyingXMLdocument).Forexample,enteringdatadirectlyintoatextboxcontrolchangestheunderlyingdataintheelementorattributethatthecontrolisboundto.
StructuraleditingEditingthatchangesthestructureoftheform'sunderlyingXMLdocument.StructuraleditingallowsfragmentsofXML(elementsandtheirassociatedchildelements,attributes,andcontent)tobeinserted,removed,orreplacedinasingleoperation.Forexample,addingitemstoarepeatingsection,repeatingtable,orlistcontrolcreatesnewelementsandattributeswithinthepartoftheXMLdocumentthatthecontrolisboundto.
BothfieldeditingandstructuraleditingareusuallyimplementedbyusingcontrolsthatconnectaformtoanunderlyingXMLdocument,allowinguserstoenterormodifythedatathattheXMLdocumentcontains.However,youmayalsoimplementfieldorstructuraleditingbyusingscriptingcodeinconjunctionwiththeInfoPathobjectmodel.
Inadditiontofieldandstructuralediting,InfoPathprovidestheconceptofeditingcontext,whichmeansthateditingactionscanbedependentonthecurrentselectionorinsertionpoint.Forexample,theAddPartBeforeCurrentbuttononthePartToolbarcustomtoolbaroftheStructuralEditingdevelopersampleforminsertsanewrowinthePartstableatapositionbasedonthecurrentcontext.Thebuttonisenabledonlyifthecurrentselectionisonorwithinoneoftherowsinthetable.
Totestthefeaturesofthesampleform,simplytypedatadirectlyintothefieldsontheform,orusetheInsertmenu,thePartCatalogcustomtask
![Page 91: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/91.jpg)
pane,theshortcutmenu,orthePartToolbarcustomtoolbartoinsertorremoverowsinthePartstable.
NoteToseeallofthefilesthatmakeuptheStructuralEditingdevelopersampleform,opentheformandclickExtractFormFilesontheFilemenuwhileindesignmode.Thisextractsalloftheformfilesfromtheformtemplatefileandsavesthemtoaspecifiedfolderonyourharddisk.
TolearnhoweditingfeaturesareimplementedintheStructuralEditingdevelopersampleform,seethefollowingtopics:
FieldeditingintheStructuralEditingdevelopersampleform
StructuraleditingintheStructuralEditingdevelopersampleform
EditingcontextintheStructuralEditingdevelopersampleform
![Page 92: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/92.jpg)
ShowAll
![Page 93: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/93.jpg)
FieldeditingintheStructuralEditingdevelopersampleform
FieldeditinginaMicrosoftOfficeInfoPath2003formoccurswhendataisentereddirectlyintoaformfield(usuallyatextboxcontrol)asauserfillsoutaform.ThedatathatisenteredisstoredasavalueoftheelementorattributeoftheXMLfield(elementorattribute)intheunderlyingXMLdocumentthatthecontrolisboundto.Forexample,intheStructuralEditingdevelopersampleform,textboxesareusedforeditingthedatacontainedinthePartNumber,Description,Quantity,andUnitPricefields.
Fieldeditingusuallyoccurswhenauserentersdatawithinacontrolonaform;thedatathattheuserentersisstoredintheform'sunderlyingXMLdocument.However,youcanalsousescriptingcodetomanipulatethedatacontainedintheform'sunderlyingXMLdocumentbymodifyingtheXMLdocumentitself.Iftheformincludesacontrolsuchasatextboxthatisboundtothemodifieddata,thedatadisplayedintheformwillbeupdatedautomatically.
Usingcontrolsforfieldediting
Usingscriptforfieldediting
![Page 94: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/94.jpg)
ShowAll
![Page 95: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/95.jpg)
StructuraleditingintheStructuralEditingdevelopersampleform
StructuraleditinginaMicrosoftOfficeInfoPath2003formoccurswhenauserisfillingoutaform,andthetypeofeditingactionsthattheuserperformsresultsinastructuralchangetotheform'sunderlyingXMLdocument.StructuralchangesinvolveinsertingorremovingelementsandattributesintheunderlyingXMLdocumentthattheformisboundto.Forexample,intheStructuralEditingdevelopersampleform,structuralchangesaremadewhenauserinsertsorremovesitemsfromthePartstableortheNotesbulletedlist.
StructuraleditingcontrolshavepredeterminededitingactionsthatcanbeassociatedwithtoolbarbuttonsandmenuitemsinInfoPathuserinterfaceareas.TheCommandsdialogboxthatisavailablefromastructuraleditingcontrol'sPropertiesdialogboxallowsyoutochoosewhicheditingactionsofthecontrolareavailabletousers,whichuserinterfaceareatheyappearin,andthelabelsthatareusedfortheassociatedbuttonormenuitems.Thestructuraleditingcontrolsusedinthissampleformincludearepeatingtableandabulletedlist.
StructuraleditingcanbeimplementedbyusinganInfoPathstructuraleditingcontrol,orbyusingscriptingcodetodirectlymanipulatethedatacontainedintheform'sunderlyingXMLdocument.Iftheformincludesacontrolsuchasarepeatingsectionthatisboundtothemodified(insertedordeleted)data,thedatadisplayedintheformwillbeupdatedautomatically.
Usingcontrolsforstructuralediting
Usingscriptforstructuralediting
![Page 96: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/96.jpg)
ShowAll
![Page 97: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/97.jpg)
EditingcontextintheStructuralEditingdevelopersampleform
EditingcontextinaMicrosoftOfficeInfoPath2003formisthedependenceofeditingactionsonthecurrentselectionorinsertionpoint.Forexample,ifarowintheStructuralEditingdevelopersampleformPartstableisselected,thebuttonsforaddingorremovingpartsonthePartToolbarcustomtoolbarareenabledandwillinsertorremoverowsinthePartstableatapositionbasedonthecurrentcontext.Ifcurrentselectionisnotonorwithinoneoftherowsinthetable,thebuttonsaredisabled.
NoteThePartToolbarcustomtoolbarwascreatedbymodifyingthedefaultFormtoolbar.
ThefollowingaresomeoftheareasintheInfoPathuserinterfaceinwhicheditingcontextisapplicable:
InsertmenuMenuitemsavailableontheInsertmenu.Thesetypicallyincludemenuitemsforinsertingitemsinatableorsection.
ShortcutmenuMenuitemsavailableontheshortcutmenu.Thesetypicallyincludemenuitemsforinsertingorremovingitemsinatable,section,orlist.
TablemenuMenuitemsavailableontheTablemenu.Thesetypicallyincludemenuitemsforinsertingorremovingitemsinatable.
CustomtoolbarButtonsandmenuitemsavailableonacustomtoolbar.Thesetypicallyincludebuttonsormenuitemsforinsertingorremovingitemsinatableorsection,orbuttonsthatcallscriptingcode.
IntheStructuralEditingdevelopersampleform,arepeatingtablecontrolisusedtoimplementatablethatallowsuserstoeditalistofpartsinaninvoice.WhenauserchoosestoeditthetableusingtheInsertmenu,thePartToolbarcustomtoolbar,ortheshortcutmenu,InfoPathdeterminesthecontrolbeingused,andbasedontheeditingactionssetindesignmodeforthatcontrol,performstheappropriateeditingofthesourceXMLdocument.
Thestructuraleditingcontrolshavepredeterminededitingactionsthat
![Page 98: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/98.jpg)
canbeassociatedwithtoolbarbuttonsandmenuitemsinInfoPathuserinterfaceareas.TheCommandsdialogboxthatisavailablefromastructuraleditingcontrol'sPropertiesdialogboxallowsyoutochoosewhicheditingactionsofthecontrolareavailabletousers,whichuserinterfaceareatheyappearin,andthelabelsthatareusedfortheassociatedbuttonsormenuitems.InthePartstableoftheStructuralEditingdevelopersampleform,thefollowingeditingactionsareenabled:
InsertEnabledontheInsertmenu.AllowsausertoinsertanewrowinthePartstable.
InsertAboveEnabledontheshortcutmenuandthePartToolbarcustomtoolbar.AllowsausertoinsertanewrowinthePartstablethatisabovethecurrentlyselectedrow.
InsertBelowEnabledontheshortcutmenuandthePartToolbarcustomtoolbar.AllowsausertoinsertanewrowinthePartstablethatisbelowthecurrentlyselectedrow.
RemoveEnabledontheshortcutmenuandthePartToolbarcustomtoolbar.Allowsausertoremovethecurrentlyselectedrow.
NoteOthereditingactionscanbeusedinarepeatingtablecontrolthatarenotimplementedintheStructuralEditingdevelopersampleform.
![Page 99: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/99.jpg)
ShowAll
![Page 100: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/100.jpg)
AbouttheUserInterfacedevelopersampleform
TheUserInterfacedevelopersampleformdemonstratesthevarietyofwaysinwhichtheuserinterfacecanbecustomizedinaMicrosoftOfficeInfoPath2003form.Theuserinterfacefeaturescustomizedinthissampleformincludemenuitemsonthemenubar,shortcutmenus,toolbarbuttonsontheFormtoolbar,andacustomtaskpane.
Totestthefeaturesofthesampleform,simplyadd,modify,orremoveCDsbyusingtheInsertmenu,theCDCollectionToolbar,ortheshortcutmenubuttonswhilefillingouttheform.YoucanswitchbetweenCDCollectionandAllTracksviewsbyusingtheViewmenuorthecustomtaskpane.
NoteToseeallofthefilesthatmakeuptheUserInterfacedevelopersampleform,opentheformandclickExtractFormFilesontheFilemenuwhileindesignmode.Thisextractsalloftheformfilesfromtheformtemplatefileandsavesthemtoaspecifiedfolderonyourharddisk.
TolearnhoweachoftheuserinterfacefeaturesisimplementedintheUserInterfacedevelopersampleform,seethefollowingtopics:
CustommenusintheUserInterfacedevelopersampleform
CustomtoolbarsintheUserInterfacedevelopersampleform
CustomtaskpanesintheUserInterfacedevelopersampleform
![Page 101: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/101.jpg)
ShowAll
![Page 102: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/102.jpg)
CustommenusintheUserInterfacedevelopersampleform
MicrosoftOfficeInfoPath2003providestheabilitytocontrolwhereandhowyouwantmenuitemstoappearwithintheuserinterface,primarilybyenablingordisablingthemonvariousbuilt-inmenususedwithaform.SomeofthemenusthatyoucancustomizeincludeView,Insert,andTable,aswellasshortcutmenusthataredisplayedwhenauserclickstheshortcutmenubuttonassociatedwithacertainrepeatingtable,repeatingsection,oroptionalsection.Menuscanbecustomizedforrepeatingtables,repeatingsections,optionalsections,andviews.
NoteManyoftheotherstandardInfoPathmenuscanalsobecustomized;theUserInterfacedevelopersampleformdemonstrateshowtocustomizeaselectfew.
SeveralcustommenusareimplementedintheUserInterfacedevelopersampleform.Thefollowingtableliststheviews,tables,andsectionsoftheUserInterfacedevelopersampleform,alongwiththecustommenuitemsthatwereimplementedforeachofthem.
Name Type CustommenuitemsCDCollection
View CDCollectionmenuitemontheViewmenu.
AllTracks View AllTracksmenuitemontheViewmenu.CD Repeating
sectionCDmenuitemontheSectionsubmenuoftheInsertmenu.
InsertCDabove,InsertCDbelow,andRemoveCDmenuitemsontheshortcutmenufortheCDtable.
Track Repeatingtable
TrackmenuitemontheSectionsubmenuoftheInsertmenu.
InsertTrackmenuitemontheshortcutmenufortheCDtable.
InsertTracksandRemoveTracksmenuitemson
![Page 103: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/103.jpg)
theTablemenu.
InsertTrackabove,InsertTrackbelow,andRemoveTrackmenuitemsontheshortcutmenufortheTracktable.
Label Optionalsection
LabelmenuitemontheSectionsubmenuoftheInsertmenu.
InsertLabelmenuitemontheshortcutmenufortheCDtable.
RemoveLabelmenuitemontheshortcutmenufortheLabelcontrol.
NoteWhenyoucustomizemenusinInfoPath,thosecustomizationsareappliedattheviewlevel.Thismeansthatthecustomizationsyoumakearenotgloballyappliedtoallviews.Toapplythesamecustommenustomorethanoneview,youmustmakethemenucustomizationsineachview.
CustomizingtheViewmenu
CustomizingtheInsertmenu
CustomizingtheTablemenu
Customizingshortcutmenus
![Page 104: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/104.jpg)
ShowAll
![Page 105: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/105.jpg)
CustomtoolbarsintheUserInterfacedevelopersampleform
TheUserInterfacedevelopersampleformimplementsasinglecustomtoolbar,theCDCollectionToolbar,thatallowsuserstoaddorremoveaCD,Track,orLabel.Bydefault,MicrosoftOfficeInfoPath2003hasonebuilt-incustomtoolbar,theFormtoolbar,thatcanbeusedtocreatecustommenuitemsthatuserscanclicktoperformvariousactionsonaform.
TocustomizetheFormtoolbarindesignmode,youusethePropertiesdialogboxfortheparticularrepeatingsection,repeatingtable,oroptionalsectionthatyouareworkingwith.ThePropertiesdialogboxisaccessedbyright-clickingthesectionortableandclickingthePropertiesmenuitemontheshortcutmenu.InthePropertiesdialogboxforrepeatingtablesandoptionalsections,youclickCustomizeCommandstoopentheCommandsdialogbox.Forrepeatingsections,theCustomizeCommandbuttonisavailableintheSectionPropertiesdialogboxthatopenswhenyouchoosetomodifythedefaultsettingsofasection.TheCommandsdialogboxallowsyoutoassociatecertaineditingactionswithvariouscommandlocationsavailableonthemenusandtoolbarsinanInfoPathform.Tocreateacustomtoolbar,youselecttheFormToolbarlocation.
NoteIntheUserInterfacedevelopersampleform,thecommandlocationistheCDCollectionToolbar,sincethedefaultnameoftheFormtoolbarwasmodified.Modificationstothedefaultnameofatoolbarcanbemademanuallyintheformdefinition(.xsf)filebychangingthevalueofthecaptionattributeofthetoolbarelement.
Whenyoucustomizeatoolbar,InfoPathcreatesentriesinthe.xsffileusingbuttonelementswithinthetoolbarelement.Thecaptionthatappearsasthenameofthetoolbarisdeterminedbythecaptionattributeofthetoolbarelement,andthecaptionthatappearsasthenameofabuttononthetoolbarisdeterminedbythecaptionattributeofabuttonelement.
AsyouassociateeditingactionswiththecustomtoolbarusingtheCommandsdialogbox,menuitemsareplaceddirectlyonthetoolbar.
![Page 106: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/106.jpg)
However,itispossibletocreatemenusonthetoolbarandthenaddmenuitemstothosemenus.Thisisaccomplishedbynestingthebuttonelementsofthetoolbarwithinamenuelementinthe.xsffile.
Thefollowingisasectionfromthe.xsffileoftheUserInterfacedevelopersampleformthatcontainsthetoolbarelement.Notetheuseofthemenuelementtocreateamenuonthetoolbar.
<xsf:toolbarcaption="CDCollectionToolbar"name="CDCollectionToolbar"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="NewCD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="NewTrack"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="NewLabel"showIf="always"></xsf:button><xsf:menucaption="Remove"><xsf:buttonaction="xCollection::remove"xmlToEdit="CD_10"caption="CD"
![Page 107: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/107.jpg)
showIf="always"></xsf:button><xsf:buttonaction="xCollection::remove"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::remove"xmlToEdit="Label_16"caption="Label"showIf="always"></xsf:button></xsf:menu></xsf:toolbar>
Notes
Addingmenustoatoolbarisafeatureofthe.xsffileandisnotavailablewhenusingtheCommandsdialogboxindesignmode.
WhileInfoPathimplementsasinglecustomtoolbar,youcanaddmultipletoolbarstoaformbycreatingadditionaltoolbarelementswithinthe.xsffile.Onceyouhavecreatedtheadditionaltoolbarsbymanuallyeditingthe.xsffile,thosetoolbarsareavailableintheCommandsdialogbox,andyoucanthenassociateeditingactionswiththem.
![Page 108: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/108.jpg)
ShowAll
![Page 109: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/109.jpg)
CustomtaskpanesintheUserInterfacedevelopersampleform
TheUserInterfacedevelopersampleformimplementsacustomtaskpanethatisusedtoswitchviewsandperformothergeneral-purposeoperations,suchassortingthelistofCDs.Customtaskpanesare.htmlfilesthataredisplayedintheMicrosoftOfficeInfoPath2003taskpaneasauserfillsoutaform.Therecanbeonlyonecustomtaskpaneassociatedwithaform.
Tocreateacustomtaskpane,youmustfirstcreatean.htmlfilebyusinganHTMLeditorsuchasMicrosoftFrontPage.Youassociatethis.htmlfilewithaformbyusingtheAdvancedtabintheFormOptionsdialogboxthatisavailableontheToolsmenuindesignmode.TheAdvancedtaballowsyoutoaddthe.htmlfileandanyothersupportingfiles,suchasacascadingstylesheet(.cssfile),usingtheResourceManager.(TheResourceManagercanalsobeaccessedbyclickingResourceManagerontheToolsmenuindesignmode.)Afterthe.htmlfilehasbeenaddedasaresource,youcanselecttheEnablecustomtaskpanecheckboxandsetthenameandlocationofyourcustomtaskpane.
NoteYoumustaddthe.htmlfiletotheformusingtheResourceManagerbeforeyoucanmakethefileacustomtaskpane.
Whenyouaddacustomtaskpanetoaform,InfoPathcreatesentriesintheformdefinition(.xsf)fileusingthetaskpaneelement.Thecaptionattributeofthetaskpaneelementisusedtostorethenameofthecustomtaskpane,whilethehrefattributeisusedtostorethe.htmlfilename.Thefollowingisasectionfromthe.xsffileoftheUserInterfacedevelopersampleformthatcontainsthetaskpaneelement:
<xsf:taskpanecaption="CustomTaskPane"href="taskpane.htm"></xsf:taskpane>
InadditiontousingstandardHTMLmarkup,youcanalsousescriptingcodewithinthetaskpanethatcallstheInfoPathobjectmodel.Inthe
![Page 110: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/110.jpg)
UserInterfacedevelopersampleform,theExtensionpropertyoftheXDocumentobjectisusedtogainaccesstothebusinesslogicfunctionscontainedintheform'sprimaryscriptfile.
Thefollowingisasectionfromthe.htmlfileusedasthecustomtaskpaneintheUserInterfacedevelopersampleform.ThecalltotheInfoPathobjectmodel'sExtensionpropertyisusedintheonClickeventfortheSortCDshyperlink.Whentheuserclicksthislink,theSortfunctionwithintheform'sprimaryscriptfileiscalled.TheSortfunctionthentakesthesourceXMLdocumentfortheformandsortsthecollectionofCDsalphabeticallyaccordingtoartistandtrack.
<divclass="action"><ahref=""onClick="gobjXDocument.Extension.Sort();returnfalse;">SortCDsbyartist/title</a></div>
NoteToviewthebusinesslogicfunctionsfortheUserInterfacedevelopersampleform,youcanopenMicrosoftScriptEditor(MSE)inInfoPathdesignmodebyclickingtheToolsmenu,pointingtoScript,andclickingMicrosoftScriptEditor,orbypressingALT+SHIFT+F11.
![Page 111: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/111.jpg)
InfoPathObjectModelDiagram
Application ActiveWindowWindowsWindowCommandBarsMailEnvelopeTaskPanesTaskPaneHTMLDocumentHTMLWindowWindowXDocument
XDocumentUserXDocumentsXDocumentDataObjectsDataObjectDOMQueryAdapterADOAdapterWebServiceAdapterXMLFileAdapter
DataAdaptersDAVAdapterEmailAdapterHWSAdapterSharePointListAdapter
Legend
Automationobject
ExternalApplication
Eventobjects
DataDOMEvent
DocActionEvent
DocContextChangeEvent
DocEvent
DocReturnEvent
MergeEvent
SaveEvent
SignEvent
VersionUpgradeEvent
General-purposecollection
XMLNodes
![Page 112: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/112.jpg)
WebServiceAdapterDOMErrorsError
ExtensionQueryAdapter
ADOAdapterWebServiceAdapterXMLFileAdapter
SignedDataBlocksSignedDataBlockSignaturesSignatureCertificate
SolutionDOM
UIUtil
DateMath
ViewWindow
ViewInfosViewInfo
![Page 113: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/113.jpg)
DataAdaptersCollection
ContainsadataadapterobjectcorrespondingtoeachdataconnectionusedwithinaMicrosoftOfficeInfoPath2003form.
![Page 114: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/114.jpg)
RemarksEachdataconnectionisusedtoretrievedata(insertedintothemaindatasourceorintoasecondarydatasource)ortosubmitdata.
Adataconnectionusedtoretrievedataforthemaindatasourcewillcorrespondtooneofthefollowingdataadapterobjecttypes:
WebServiceAdapter
ADOAdapter
NoteAnAdoAdapterobjectusedtoretrievedataforthemaindatasourcecanalsosubmitdata.
Adataconnectionusedtoretrievedataforasecondarydatasourcewillcorrespondtooneofthefollowingdataadapterobjecttypes:
ADOAdapter
SharepointListAdapter
WebServiceAdapter
XMLFileAdapter
Adataconnectionusedonlyforsubmittingdatawillcorrespondtooneofthefollowingdataadapterobjecttypes:
EmailAdapter
DAVAdapter
HWSAdapter
WebServiceAdapter
TheDataAdapterscollectioncanbeaccessedusingtheDataAdapterspropertyoftheXDocumentobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003Service
![Page 115: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/115.jpg)
Pack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 116: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/116.jpg)
ShowAll
![Page 117: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/117.jpg)
DataObjectsCollection
DataObjects DataObject
ContainsaDataObjectobjectforeachsecondarydatasourceusedwithinaMicrosoftOfficeInfoPath2003form.EachDataObjectobjectprovidesaccesstotheparticulardataadapterobjectthatwasusedtoconnecttotheexternaldatasource.
![Page 118: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/118.jpg)
RemarksTheDataObjectscollectionimplementspropertiesthatcanbeusedtoaccessaform'sassociatedDataObjectobjects,anditisaccessiblethroughtheDataObjectspropertyoftheXDocumentobject.
NoteTheDataObjectscollectioncanbeusedonlytogetthecountofDataObjectobjectsthatitcontainsortoreturnareferencetoaspecifiedDataObjectobject.Itcannotbeusedtocreate,add,orremoveDataObjectobjects.
![Page 119: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/119.jpg)
UsingtheDataObjectscollectionInthefollowingexample,implementedasanOnClickeventhandlerforabuttononaform,theDataObjectspropertyoftheXDocumentobjectisusedtosetareferencetotheDataObjectscollection.ThecodethenloopsthroughthecollectionanddisplaysthepositionalindexandnameofeachDataObjectobjectthatitcontains:
functionShowDataObjectNames::OnClick(eventObj){//SetareferencetotheDataObjectscollection.varobjDataObjects=XDocument.DataObjects;
//Loopthroughthecollectionanddisplaythename//ofeachDataObjectobjectthatitcontains.for(i=0;i<objDataObjects.Count;i++){XDocument.UI.Alert("Dataobject"+i+":"+objDataObjects(i).Name);}objDataObjects=null;}
FormoreinformationaboutusingtheDataObjectscollection,seeAccessingexternaldatasources.
![Page 120: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/120.jpg)
ErrorsCollection
Errors Error
ContainsanErrorobjectforeacherrorwithinaMicrosoftOfficeInfoPath2003form.AnErrorobjectcontainsinformationaboutanInfoPatherror,includingitsdetailedmessage,shortmessage,code,type,andtheXMLnodethatisassociatedwithit.
![Page 121: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/121.jpg)
RemarksTheErrorscollectionisafull-featuredcollection—itprovidespropertiesandmethodsforadding,deleting,andgainingaccesstotheErrorobjectsthatitcontains.
InadditiontomanagingtheerrorsgeneratedbyInfoPath,theErrorscollectioncanalsobeusedtocreatecustomerrorsusingtheAddmethod.
NoteCustomerrorscanalsobecreatedusingtheReportErrormethodoftheDataDOMEventobject.
![Page 122: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/122.jpg)
UsingtheErrorscollectionTheErrorscollectionisaccessedthroughtheErrorspropertyoftheXDocumentobject.TheErrorscollectionisassociatedwithaform'sunderlyingXMLdocumentsothatwhenanerroroccurs,itoccurswithintheXMLdocument.
Inthefollowingexample,theCountpropertyoftheErrorscollectionisusedgetthecountoferrorscurrentlycontainedinthecollection:
XDocument.UI.Alert("Countoferrors:"+XDocument.Errors.Count);
TodeleteaspecificerrorfromtheErrorscollection,usetheDeletemethod,passingtheXMLcodeandconditionnameasarguments:
XDocument.Errors.Delete(myXMLNode,"MyErrorName");
TodeletealloftheerrorsintheErrorscollection,usetheDeleteAllmethod:
XDocument.Errors.DeleteAll();
TosetareferencetoanerrorwithintheErrorscollection,usetheItemproperty:
varobjError;
objError=XDocument.Errors.Item(0);//Or...objError=XDocument.Errors(0);
FormoreinformationaboutusingtheErrorscollection,seeHandlingerrors.
![Page 123: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/123.jpg)
SignaturesCollection
ContainsacollectionofSignatureobjectsforeachsignatureintheMicrosoftOfficeInfoPath2003formorSignedDataBlockobject.
![Page 124: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/124.jpg)
RemarksTheSignaturescollectionimplementspropertiesandamethodthatcanbeusedtoaccessaform'sassociatedSignatureobjectsandtocreateasignature.ItisaccessiblethroughtheSignedDataBlockobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 125: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/125.jpg)
UsingtheSignaturescollectionWhenusingtheCreatemethod,thesignatureisnotwrittenuntiltheSignmethodiscalledontheSignatureobject.ThesemethodscanbecalledonlyfromtheOnSigneventhandler.
![Page 126: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/126.jpg)
ShowAll
![Page 127: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/127.jpg)
SignedDataBlocksCollection
ThecollectionoftheSignedDataBlockobjectsintheformtemplateasdefinedintheformdefinitionfile(.xsf).
![Page 128: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/128.jpg)
RemarksTheSignedDataBlockscollectionimplementspropertiesthatcanbeusedtoaccesstheSignedDataBlockobjectsassociatedwithaform.TheSignedDataBlockscollectionisaccessiblethroughtheSignedDataBlockspropertyoftheXDocumentobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 129: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/129.jpg)
ShowAll
![Page 130: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/130.jpg)
TaskPanesCollection
TaskPanes TaskPane
ContainsacollectionofTaskPaneobjectsthatrepresentthetaskpanesassociatedwithawindowinMicrosoftOfficeInfoPath2003.
![Page 131: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/131.jpg)
RemarksTheTaskPanescollectionprovidespropertiesthatcanbeusedtoaccessacollectionoftaskpaneobjects,anditisaccessedthroughtheTaskPanespropertyoftheWindowobject.
NoteTheTaskPanescollectioncanbeusedonlytogetthecountofTaskPaneobjectsthatitcontainsandtoreturnareferencetoaspecifiedTaskPaneobject.ItcannotbeusedtoaddorremoveTaskPaneobjects.
![Page 132: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/132.jpg)
UsingtheTaskPanescollectionInthefollowingexample,theTaskPanespropertyoftheWindowobjectisusedtosetareferencetotheTaskPanescollection:
varobjTaskPanes;
objTaskPanes=XDocument.View.Window.TaskPanes;
Inthefollowingexample,theItempropertyoftheTaskPanescollectionisusedtosetareferencetoaspecifiedTaskPaneobject.ThenthecodeusestheVisiblepropertyoftheTaskPaneobjecttomakethetaskpanevisible.
varobjTaskPane;
//Showthebuilt-inHelptaskpane.objTaskPane=XDocument.View.Window.TaskPanes(4);objTaskPane.Visible=true;
NoteTheItempropertyargumentisthetypeoftaskpanetoreturn,basedontheTypepropertyoftheTaskPaneobject,notthepositionoftheTaskPaneobjectintheTaskPanescollection.
![Page 133: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/133.jpg)
ShowAll
![Page 134: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/134.jpg)
ViewInfosCollection
ViewInfos ViewInfo
ContainsaViewInfoobjectforeachviewwithinaMicrosoftOfficeInfoPath2003form.ViewInfoobjectscontaindescriptiveinformationabouttheviewsthattheyareassociatedwith.
![Page 135: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/135.jpg)
RemarksTheViewInfoscollectionimplementspropertiesthatcanbeusedtoaccessaform'sassociatedViewInfoobjects,anditisaccessiblethroughtheViewInfospropertyoftheXDocumentobject.
NoteTheViewInfoscollectioncanbeusedonlytogetthecountofViewInfoobjectsthatitcontainsortoreturnareferencetoaspecifiedViewInfoobject.Itcannotbeusedtocreate,add,orremoveViewInfoobjects.
![Page 136: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/136.jpg)
UsingtheViewInfoscollectionInthefollowingexample,implementedasanOnClickeventhandlerforabuttononaform,theViewInfospropertyoftheXDocumentobjectisusedtosetareferencetotheViewInfoscollection.ThecodethenloopsthroughthecollectionanddisplaysthepositionalindexandnameofeachViewInfoobjectthatitcontains.
functionShowViewNames::OnClick(eventObj){//SetareferencetotheViewInfoscollection.varobjViewInfos=XDocument.ViewInfos;
//Loopthroughthecollectionanddisplaythename//ofeachViewInfoobjectthatitcontains.for(i=0;i<objViewInfos.Count;i++){XDocument.UI.Alert("Viewname"+i+":"+objViewInfos(i).Name);}objViewInfos=null;}
![Page 137: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/137.jpg)
ShowAll
![Page 138: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/138.jpg)
WindowsCollection
Windows Window
ContainsaWindowobjectforeachwindowwithinaMicrosoftOfficeInfoPath2003form.WindowobjectsrepresentthetwotypesofwindowsthatareusedintheInfoPathapplication:theeditingwindowthatisusedastheformareawhenauserfillsoutaform,andthedesigningwindowthatisusedasthedesignmodewhenauserdesignsaform.
![Page 139: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/139.jpg)
RemarksTheWindowscollectionimplementspropertiesthatcanbeusedtoaccessaform'sassociatedWindowobjects,anditisaccessiblethroughtheWindowspropertyoftheXDocumentobject.
NoteTheWindowscollectioncanbeusedonlytogetthecountofWindowobjectsthatitcontainsortoreturnareferencetoaspecifiedWindowobject.Itcannotbeusedtocreate,add,orremoveWindowobjects.
![Page 140: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/140.jpg)
UsingtheWindowscollectionInthefollowingexample,implementedasanOnClickeventhandlerforabuttononaform,theWindowspropertyoftheApplicationobjectisusedtosetareferencetotheWindowscollection.ThecodethenloopsthroughthecollectionanddisplaysthetypeofeachWindowobjectthatitcontains.
functionShowWindowTypes::OnClick(eventObj){//SetareferencetotheWindowscollection.varobjWindows=Application.Windows;varstrWindowType;
//Loopthroughthecollectionanddisplaythetype//ofeachWindowobjectthatitcontains.for(i=0;i<objWindows.Count;i++){switch(objWindows(i).Type){case0:strWindowType="Editingwindow";break;case1:strWindowType="Designingwindow";break;}
XDocument.UI.Alert("Windowtype"+i+":"+strWindowType);}objWindows=null;strWindowType=null;}
![Page 141: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/141.jpg)
FormoreinformationaboutusingtheWindowscollection,seeWorkingwithformwindows.
![Page 142: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/142.jpg)
XDocumentsCollection
XDocuments XDocument
ContainsanXDocumentobjectforeachMicrosoftOfficeInfoPath2003formthatiscurrentlyopen.TheXDocumentobjectrepresentsaform'sunderlyingXMLdocumentandcanbeusedtointeractwiththeXMLdatathataformcontains.
![Page 143: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/143.jpg)
RemarksTheXDocumentscollectionimplementsanumberofpropertiesandmethodsthatcanbeusedtoaccessaform'sassociatedXDocumentobject,ortocreateandopentheformsthemselves.TheXDocumentscollectionisaccessedthroughtheXDocumentspropertyoftheApplicationobject.
![Page 144: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/144.jpg)
UsingtheXDocumentscollectionInthefollowingexample,theOpenmethodoftheXDocumentscollectionisusedtoopenanexistingform:
Application.XDocuments.Open("C:\\MyForm.xml");
YoucanalsocreateanewformbasedonanexistingformusingtheNewmethod:
Application.XDocuments.New("C:\\MyForm.xml");
ToaccessanXDocumentobjectcontainedintheXDocumentscollection,youcanpassthepositionalindexorthelocationpathtotheItemmethod:
varobjXDoc;
objXDoc=Application.XDocuments(0);//or...objXDoc=Application.XDocuments("C:\\MyForm.xml");
FormoreinformationaboutusingtheXDocumentscollection,seeAccessingformdata.
![Page 145: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/145.jpg)
ShowAll
![Page 146: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/146.jpg)
XMLNodesCollection
XMLNodes
ContainsacollectionofXMLDocumentObjectModel(DOM)nodes.TheXMLNodescollectionisageneral-purposecollectionthatisusedbyanumberofMicrosoftOfficeInfoPath2003methods.
![Page 147: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/147.jpg)
RemarksTheXMLNodescollectionprovidespropertiesthatcanbeusedtoaccessacollectionofXMLDOMnodes,anditisreturnedbyboththeGetSelectedNodesandGetContextNodesmethodsoftheViewobject.
AfteryouhavesetareferencetooneoftheXMLDOMnodeobjectsthattheXMLNodescollectioncontains,youcanuseanyofthepropertiesandmethodsthattheXMLDOMprovidesforinteractingwithanXMLnodeobject.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 148: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/148.jpg)
UsingtheXMLNodescollectionInthefollowingexample,areferenceissettoacollectionofXMLDOMnodesreturnedbytheGetSelectedNodesmethodoftheViewobject.ThenthecodedisplaysthenameandsourceXMLofthefirstnodefoundinthecollectionusingamessagebox:
varobjXMLNodes;
objXMLNodes=XDocument.View.GetSelectedNodes();
if(objXMLNodes.Count>0){XDocument.UI.Alert(objXMLNodes(0).nodeName+"\n\n"+objXMLNodes(0).text);}
![Page 149: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/149.jpg)
ShowAll
![Page 150: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/150.jpg)
ADOAdapterObject
ADOAdapter
RepresentsaconnectiontoaMicrosoftActiveXDataObjects/OLEDBdatasource.TheADOAdapterobjectisatypeofMicrosoftOfficeInfoPath2003dataadapterthatcontainsalltheinformationnecessaryforretrievingandsubmittingdatatoanexternaldatasource.
![Page 151: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/151.jpg)
RemarksForsecondarydatasources,theADOAdapterobjectprovidespropertiesthatcanbeusedtogetandsetinformationaboutthedataadapter'sconnectionstring,SQLcommandtext,andtimeoutvalue.ItalsoprovidesamethodforcreatinganSQLcommandtextfragmentbasedonaspecifiedXMLnode.
IfanADO/OLEDBdatasourceisusedastheprimarydatasourceforaform,theADOAdapterobjectisaccessiblethroughtheQueryAdapterpropertyoftheXDocumentobject.
NoteTheADOAdapterobjectislimitedtoworkonlywithMicrosoftSQLServerandMicrosoftAccessdatabases.
![Page 152: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/152.jpg)
UsingtheADOAdapterobjectTheADOAdapterobjectisaccessiblethroughtheQueryAdapterpropertyoftheDataObjectobject,andDataObjectobjectsareaccessiblethroughtheDataObjectspropertyoftheXDocumentobject.
Inthefollowingexample,theTimeoutpropertyoftheADOAdapterobjectisusedtosetthetimeoutforaparticularqueryoperation,returningthetimeouttoitsoriginalvalueafterthequeryoperationiscomplete:
functionRunLongQuery(){
varobjADOAdapter;varintTimeout;//SetareferencetotheADOAdapterobject.objADOAdapter=XDocument.DataObjects("CityDropDownList").QueryAdapter;
//Savetheoriginaltimeoutvalue.intTimeout=objADOAdapter.Timeout;
//Setalongertimeoutvalueandthenrunthequery.objADOAdapter.Timeout=60;XDocument.DataObjects("CityDropDownList").Query();
//Restoretheoriginaltimeoutvalue.objADOAdapter.Timeout=intTimeout;objADOAdapter=null;intTimeout=null;}
FormoreinformationaboutusingtheADOAdapterobject,see
![Page 153: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/153.jpg)
Accessingexternaldatasources.
![Page 154: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/154.jpg)
ShowAll
![Page 155: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/155.jpg)
ApplicationObject
Application
RepresentstheMicrosoftOfficeInfoPath2003application.TheApplicationobjectincludespropertiesandmethodsthatreturnreferencestothehigh-levelobjectsoftheInfoPathobjectmodel.Forexample,theXDocumentspropertyreturnsareferencetoacollectionofXDocumentobjects.
![Page 156: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/156.jpg)
RemarksTheApplicationobjectisthetop-levelobjectintheInfoPathobjectmodel,anditprovidesanumberofpropertiesandmethodsthatcanbeusedtoaccesslower-levelcollectionsandobjectsintheobjectmodel,andtoperformavarietyofgeneralpurposefunctions.
![Page 157: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/157.jpg)
UsingtheApplicationobjectTheApplicationobjectcanbeuseddirectlyinscriptingcodeasinthefollowingMicrosoftJScriptexample,whichusestheAlertmethodoftheUIobject,accessedthroughtheXDocumentobject,todisplayamessageboxthatindicatestheversionnumberofthecurrentinstanceofInfoPath:
XDocument.UI.Alert("Applicationversion:"+Application.Version);
NotethattheXDocumentpropertywasnotqualifiedwiththenameoftheApplicationobject.ThisisbecauseboththeApplicationobjectandtheXDocumentobjectareembeddeddirectlyintheInfoPathscriptengine,andthereforetheydonothavetobeexplicitlydeclared.However,theydoneedtobedeclaredwhenusedinanexpressionorargument,astheexampleabovedemonstrates.
NoteTheApplicationobjectcontainsthefollowingmethodsthatcanbeusedwithinInfoPath:
Method DescriptionFormatString FormatsthespecifiedstringorXMLnode
accordingtothespecifiedcategoryandoptionsparameters.
IsDestinationReachable ReturnsaBooleanvalueindicatingwhetherthespecifiedUniformResourceLocator(URL),universalnamingconvention(UNC)path,orIPaddressofthedestinationcomputercanbeconnectedtofromtheclientcomputer.
NewADODBConnection CreatesandreturnsareferencetoanemptyActiveXDataObjects(ADO)Connectionobject.
NewADODBRecordset CreatesandreturnsareferencetoanemptyActiveXDataObjects(ADO)Recordsetobject.
NoteTheApplicationobjectcontainsthefollowingmethodsthatcanbe
![Page 158: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/158.jpg)
usedforexternalautomation:
Method DescriptionCacheSolution Examinestheformtemplateinthecacheand,if
necessary,updatesitfromthepublishedlocationoftheformtemplate.
Quit QuitstheMicrosoftOfficeInfoPath2003application.
RegisterSolution InstallsthespecifiedMicrosoftOfficeInfoPathformtemplate.
UnregisterSolutionUninstallsthespecifiedMicrosoftOfficeInfoPath2003formtemplate.
TheXDocumentscollectioncontainsthefollowingadditionalmethodsthatcanbeusedforexternalautomation:
Method DescriptionClose ClosesthespecifiedMicrosoftOffice
InfoPath2003form.New CreatesanewMicrosoftOfficeInfoPath
2003formbasedonthespecifiedform.NewFromSolution CreatesanewMicrosoftOfficeInfoPath
2003formbasedonthespecifiedformtemplate.
NewFromSolutionWithData CreatesanewMicrosoftOfficeInfoPath2003formusingthespecifiedXMLdataandformtemplate.
Open OpensthespecifiedMicrosoftOfficeInfoPath2003form.
AlthoughtheExternalApplicationobjectisdeprecatedinMicrosoftOfficeInfoPath2003ServicePack1,replacedwiththemethodsintheabovetables,ExternalApplicationmethodsarestillavailableforbackwardcompatibility.
FormoreinformationaboutusingtheApplicationobject,seeAccessingapplicationdata.
![Page 159: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/159.jpg)
ButtonObject
TheButtonobjectistheMicrosoftOfficeInfoPath2003objectthatisusedtoimplementtheOnClickeventthatisassociatedwithabuttononanInfoPathform.Thisobjectcannotbeuseddirectlyincode.
![Page 160: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/160.jpg)
ShowAll
![Page 161: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/161.jpg)
CertificateObject
RepresentstheX.509digitalcertificatethathasbeenusedtocreateasignature.
![Page 162: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/162.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 163: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/163.jpg)
UsingtheCertificateobjectUsetheCertificatepropertyoftheSignatureobjecttoreturnaCertificateobject.
TheCertificateobjectcontainsthefollowingproperties,whichcanbeusedtoreturninformationaboutadigitalcertificate:
Property DescriptionIssuedTo Returnstowhomthedigitalcertificateisissued.IssuedBy Returnstheissuerofthedigitalcertificate.ExpirationDateReturnstheexpirationdateofthedigitalcertificate.Status Returnsthestatusofthedigitalcertificate.
![Page 164: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/164.jpg)
ShowAll
![Page 165: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/165.jpg)
DataDOMObject
DataDOM
TheDataDOMobjectistheMicrosoftOfficeInfoPath2003objectthatisusedtoimplementthedatavalidationeventsthatareassociatedwiththeXDocumentobject.Thisobjectcannotbeuseddirectlyinscriptingcode.
![Page 166: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/166.jpg)
ShowAll
![Page 167: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/167.jpg)
DataDOMEventObject
DataDOMEvent
AneventobjectthatisusedduringMicrosoftOfficeInfoPath2003datavalidationevents.TheDataDOMEventobjectprovidesanumberofpropertiesandamethodthatcanbeusedwithinadatavalidationeventtoprogrammaticallyinteractwiththedatathatisbeingvalidatedandtoprovidearesponseifthedataisnotvalid.
![Page 168: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/168.jpg)
RemarksTheDataDOMEventobjectispassedasaparametertotheOnBeforeChange,OnValidate,andOnAfterChangeevents.
NoteTheOnValidateeventcanoccurwithoutachangeintheform'sunderlyingXMLdocument.
TheDataDOMEventobjectisusedtogetinformationabouttheXMLDocumentObjectModel(DOM)nodethatisbeingchanged,anditalsoprovidesapropertyforgettingareferencetoaform'sunderlyingXMLdocument.Inaddition,itprovidespropertiesforhandlingthechangeindata,includingrejectingthechangeandcreatinganerrormessage.
NoteTheDataDOMEventobjectispassedasanargumenttooneofthedatavalidationeventhandlers.Itspropertiesandmethodareonlyavailableduringtheeventthatitispassedto.
![Page 169: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/169.jpg)
UsingtheDataDOMEventobjectInthefollowingexamplefromtheDataValidationdevelopersampleform,theDataDOMEventobjectisusedtocheckthevalueofthenodeusingtheSiteproperty.Ifthedatavalidationfails,theReportErrormethodisusedtocreateacustomerror.
functionmsoxd__itemB_quantityListB::OnValidate(eventObj){if(parseInt(eventObj.Site.nodeTypedValue,10)>50)eventObj.ReportError(eventObj.Site,"Invalidquantity."+"Thetotalnumberofeachtypeofblockcannotexceed50.",false);
if(parseInt(eventObj.Site.nodeTypedValue,10)<0)eventObj.ReportError(eventObj.Site,"Invalidquantity."+"Thetotalnumberofeachtypeofblockcannotbelessthan0.",false);}
FormoreinformationaboutusingtheDataDOMEventobject,seeRespondingtoformevents.
![Page 170: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/170.jpg)
ShowAll
![Page 171: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/171.jpg)
DataObjectObject
DataObjects DataObject
Representsalinktothedataadapterofasecondarydatasource.TheDataObjectobjectactsasanintermediarybetweenaMicrosoftOfficeInfoPath2003formandthedataadapterobjectthatisusedtoaccessdatathatiscontainedinanexternaldatasource.
TheDataObjectobjectprovidespropertiesandmethodsthatcanbeusedtoprogrammaticallyinteractwithdataadapterobjects,includingretrievinginformationaboutthedataadapterobjectsandaccessingthedatathattheyconnectto.TheDataObjectobjectisaccessiblethroughtheDataObjectspropertyoftheXDocumentobject.
![Page 172: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/172.jpg)
RemarksAnexternaldatasourcecantaketheformofaMicrosoftAccessorMicrosoftSQLServerdatabase,an.xmlfile,oranXMLWebservice.Thetypeofdataadapterobjectusedtoaccesstheexternaldatasourcedependsonthetypeofdatasource.TheDataObjectobjectprovidesacommonsetofpropertiesandamethodthatcanbeusedforalltypesofdataadapterobjects,andeachofthedataadapterobjectsprovidesitsownsetofpropertiesandmethods.
MicrosoftOfficeInfoPath2003supportsthreetypesofdataadapters:
1. ActiveXDataObjectsRepresentedbytheADOAdapterobject.
2. WebservicesRepresentedbytheWebServiceAdapterobject.
3. XMLfileRepresentedbytheXMLFileAdapterobject.
![Page 173: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/173.jpg)
UsingtheDataObjectobjectInthefollowingcodesample,thenameofthesecondarydatasourceispassedtotheItempropertyoftheDataObjectscollection,whichreturnsareferencetotheDataObjectobject,which,inthiscase,isassociatedwithanADOAdapterdataadapterobject.UsingtheQueryAdapterpropertyoftheDataObjectobject,theADOAdapterdataadapterobject'sConnectionpropertyisusedtodisplaytheADOconnectionstringinamessagebox.
functionTestDataObjects(){varobjDataObject;//Setareferencetothespecifieddataobject.objDataObject=XDocument.DataObjects("CityList");//DisplaytheconnectioninformationfortheADOAdapterobject.XDocument.UI.Alert("DataAdapter:"+objDataObject.QueryAdapter.Connection);objDataObject=null;}
FormoreinformationaboutusingtheDataObjectobject,seeAccessingexternaldatasources.
![Page 174: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/174.jpg)
ShowAll
![Page 175: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/175.jpg)
DateObject
Providesseveraldate-relatedmethodsthatcanbeusedinMicrosoftOfficeInfoPath2003forms.
![Page 176: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/176.jpg)
RemarksUsetheDatepropertyoftheUtilobjecttoreturnaDateobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 177: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/177.jpg)
UsingtheDateobjectTheDateobjectcontainsthefollowingmethods:
Method DescriptionNow ReturnsaVariantthatrepresentsthecurrentsystemdateand
timeinISOformat.Today ReturnsaVariantcontainingthecurrentsystemdateinISO
format.
![Page 178: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/178.jpg)
ShowAll
![Page 179: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/179.jpg)
DAVAdapterObject
RepresentsaconnectiontosubmitforminformationtoaMicrosoftWindowsSharePointServicesserver,orotherserversthatsupportDAVconnections.
![Page 180: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/180.jpg)
RemarksUsetheItempropertyoftheDataAdapterscollectiontoreturnaDAVAdapterobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 181: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/181.jpg)
UsingtheDAVAdapterobjectTheDAVAdapterobjectcontainsthefollowingproperties:
Property DescriptionFileName ReturnsorsetsthefilenameforthecurrentMicrosoft
OfficeInfoPath2003formwhenitissubmittedbytheDAVAdapterobject.
FolderURL ReturnsorsetsthetheUniformResourceLocator(URL)towhichtheformwillbesubmittedbytheDAVAdapterobject.
Name ReturnsthenameofaDAVAdapterobject.QueryAllowed CorrespondstothequeryAllowedattributeintheform
definitionfile(.xsf).AlwaysreturnsFalsefortheDAVAdapterobject.
SubmitAllowed CorrespondstothesubmitAllowedattributeintheformdefinitionfile(.xsf).AlwaysreturnsTruefortheDAVAdapterobject.
TheDAVAdapterobjectcontainsthefollowingmethods:
Method DescriptionQuery BecausetheDAVAdapterobjectisavailableforsubmitting
dataonly,thismethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
Submit Executesthesubmitoperationontheassociatedadapter.SubmitData SubmitsthespecifiedDOMelementorDOMdocumenttoa
dataadapter.
![Page 182: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/182.jpg)
ShowAll
![Page 183: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/183.jpg)
DocActionEventObject
DocActionEvent
AneventobjectthatisusedduringaMicrosoftOfficeInfoPath2003buttonclickevent.TheDocActionEventobjectprovidesanumberofpropertiesthatcanbeusedwithinabuttonclickeventtoprogrammaticallyinteractwiththedatainaform'sunderlyingXMLdocumentandtocontrolthesuccessorfailureoftheevent.
![Page 184: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/184.jpg)
RemarksTheDocActionEventobjectispassedasaparametertotheOnClickeventbuttonthatiscontainedinaviewofanInfoPathform.ItspropertiesareavailableonlyduringtheOnClickevent.
![Page 185: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/185.jpg)
UsingtheDocActionEventobjectInthefollowingexample,theSourcepropertyoftheDocActionEventobjectisusedtodisplaythesourceXMLdataoftheinner-mostXMLDocumentObjectModel(DOM)nodeoftheform'sunderlyingXMLdocument,whichcontainsthebutton:
functionShowDocActionEventSource::OnClick(eventObj){XDocument.UI.Alert("Source:"+eventObj.Source.xml);}
FormoreinformationaboutusingtheDocActionEventobject,seeRespondingtoformevents.
![Page 186: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/186.jpg)
DocContextChangeEventObject
AneventobjectthatisusedduringaMicrosoftOfficeInfoPath2003contextchangeevent.TheDocContextChangeEventobjectprovidesanumberofpropertiesthatcanbeusedwithinacontextchangetoprogrammaticallyinteractwiththedatainaform'sunderlyingXMLdocument,toprovidecontextualfeedbacktotheuser,ortoperformactionsfortheuser.
![Page 187: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/187.jpg)
RemarksTheDocContextChangeEventobjectispassedasaparametertotheOnContextChangeevent.
TheDocContextChangeEventobjectisusedtogetinformationabouttheXMLDocumentObjectModel(DOM)nodethatisthecurrentcontextoftheform'sunderlyingXMLdocument.Inaddition,itprovidesinformationaboutthetypeofcontextchangeandwhetherthechangehappenedinresponsetoanundoorredooperationperformedbytheuser.
AsdescribedintheOnContextChangeeventtopic,theTypepropertyreturnsonlythevalue"ContextNode"forcontextchangesinMicrosoftInfoPath2003ServicePack1.Nevertheless,ifcodeinaneventhandlerperformsactionsthatdependoncurrentfunctionality,thatcodeshouldstillbedesignedtocheckthevalueoftheTypeproperty,becausefutureversionsofInfoPathmayusedifferentvaluesfordifferentcontextchanges.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 188: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/188.jpg)
UsingtheDocContextChangeEventobjectWhentheIsUndoRedopropertyoftheDocContextChangeEventobjectisTrue,thecontextchangewascausedbyanundoorredooperationratherthananexplicitusercontextchange.OperationsperformedintheOnContextChangeeventhandlerthatmodifytheXMLDOMshouldbeavoidedinresponsetoundoorredoactions,becausetheymayinterferewiththeuser'sintentiontorevertdatatoapreviousstate.
![Page 189: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/189.jpg)
ExampleInthefollowingexample,anodenamedlastChangedisupdatedinresponsetocontextchanges:
functionXDocument::OnContextChange(eventObj){if(eventObj.Type=="ContextNode"&&!eventObj.IsUndoRedo){varoContextNode=eventObj.Context;varoLastChangedNode=XDocument.DOM.selectSingleNode("my:lastChanged");oLastChangedNode.text=oContextNode.nodeName;}}
![Page 190: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/190.jpg)
DocEventObject
DocEvent
AneventobjectthatisusedduringaMicrosoftOfficeInfoPath2003mergeorviewswitchingevent.TheDocEventobjectprovidestheXDocumentpropertythatcanbeusedwithinamergeorviewswitchingeventtoprogrammaticallyinteractwiththedatainaform'sunderlyingXMLdocument.
![Page 191: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/191.jpg)
RemarksTheDocEventobjectispassedasaparametertotheOnSwitchViewandOnAfterChangeeventsofanInfoPathform.TheXDocumentpropertythatitprovidesisavailableonlyduringtheseevents.
![Page 192: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/192.jpg)
UsingtheDocEventobjectInthefollowingexample,theXDocumentpropertyoftheDocEventobjectisusedtodisplaythesourceXMLofaform'sunderlyingXMLdocumentusingtheDOMpropertyoftheXDocumentobject:
functionXDocument::OnSwitchView(eventObj){XDocument.UI.Alert("ThesourceXML:"+eventObj.XDocument.DOM.xml);}
FormoreinformationaboutusingtheDocEventobject,seeRespondingtoformevents.
![Page 193: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/193.jpg)
DocReturnEventObject
DocReturnEvent
AneventobjectthatisusedduringaMicrosoftOfficeInfoPath2003loadorsubmissionevent.TheDocReturnEventobjectprovidestheXDocumentpropertythatcanbeusedwithinaloadorsubmissioneventtoprogrammaticallyinteractwiththedatainaform'sunderlyingXMLdocument.ItalsoprovidestheReturnStatuspropertythatisusedtospecifywhethertheeventissuccessful.
![Page 194: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/194.jpg)
RemarksTheDocReturnEventobjectispassedasaparametertotheOnLoadandOnSubmitRequesteventsofanInfoPathform.Thepropertiesthatitprovidesareavailableonlyduringtheseevents.
![Page 195: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/195.jpg)
UsingtheDocReturnEventobjectInthefollowingexample,theXDocumentpropertyoftheDocReturnEventobjectisusedtodisplaythesourceXMLofaform'sunderlyingXMLdocumentusingtheDOMpropertyoftheXDocumentobject:
functionXDocument::OnLoad(eventObj){XDocument.UI.Alert("ThesourceXML:"+eventObj.XDocument.DOM.xml);eventObj.ReturnStatus=true;}
FormoreinformationaboutusingtheDocReturnEventobject,seeRespondingtoformevents.
![Page 196: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/196.jpg)
ShowAll
![Page 197: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/197.jpg)
EmailAdapterObject
Representsthedataadapterforsubmittingforminformationine-mailbyusingMicrosoftOfficeOutlook.
![Page 198: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/198.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 199: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/199.jpg)
UsingtheEmailAdapterobjectUsetheItempropertyoftheDataAdapterscollectiontoreturnanEmailAdapterobject.
Inthefollowingexample,areferencetotheEmailAdapterobjectissetbypassingthenameoftheEmailAdapterobjecttotheItempropertyoftheDataAdapterscollection:
varobjEmailAdapter;objEmailAdapter=XDocument.DataAdapters("MainSubmit");
Afterthereferencehasbeenset,youcanusethepropertiesoftheEmailAdapterobjectasshowninthefollowingexample,whichsetstheTopropertiesandtheSubjectproperty,thensubmitstheform.
objEmailAdapter.To="[email protected]";objEmailAdapter.Subject="StatusReport";objEmailAdapter.Submit();
TheEmailAdapterobjectcontainsthefollowingproperties:
Property DescriptionAttachmentFileNameReturnsorsetsthefilenametobeusedforthe
currentformwhenattachedtothee-mailmessageforanEmailAdapterobject.
BCC ReturnsorsetstheBCCrecipientsforanEmailAdapterobject.
CC ReturnsorsetstheCCrecipientsforanEmailAdapterobject.
Intro Returnsorsetstheintroductioninthebodyofthee-mailmessageforanEmailAdapterobject.
Name ReturnsthenameofanEmailAdapterobject.QueryAllowed CorrespondstothequeryAllowedattributeinthe
formdefinitionfile(.xsf).AlwaysreturnsFalsefortheEmailAdapterobject.
![Page 200: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/200.jpg)
Subject Returnsorsetsthesubjectofthee-mailmessageforthespecifiedEmailAdapterobject.
SubmitAllowed CorrespondstothesubmitAllowedattributeintheformdefinitionfile(.xsf).AlwaysreturnsTruefortheEmailAdapterobject.
To ReturnsorsetstheTorecipientsforthespecifiedEmailAdapterobject.
TheEmailAdapterobjectcontainsthefollowingmethods:
Method DescriptionQuery BecausetheEmailAdapterobjectisavailablefor
submittingdataonly,thismethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
Submit Executesthesubmitoperationontheassociateddataadapter.
SubmitData SubmitsthespecifiedDOMelementorDOMdocumenttoadataadapter.
![Page 201: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/201.jpg)
ShowAll
![Page 202: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/202.jpg)
ErrorObject
Errors Error
RepresentsanerrorinaMicrosoftOfficeInfoPath2003form.EachErrorobjectinInfoPathiseachassociatedwithanXMLDocumentObjectModel(DOM)nodefromaform'sunderlyingXMLdocument.WhendatavalidationfailsforaparticularXMLDOMnode,InfoPathcreatesanErrorobjectandplacesitintheErrorscollection.
![Page 203: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/203.jpg)
RemarksThatarethreetypesofdatavalidationerrorsthatcanoccurinanInfoPathform:
SCHEMA_VALIDATIONDatavalidationfailedasaresultofanXMLSchema–definedconstraint.
SYSTEM_GENERATEDDatavalidationfailedasaresultofconstraintsdefinedintheformdefinition(.xsf)fileorasaresultofscriptingcodecallingtheReportErrormethodoftheDataDOMEventobject.
USER_SPECIFIEDDatavalidationfailedasaresultofacustomscriptingerrorusingtheAddmethodoftheErrorscollection.
NoteTheTypepropertyoftheErrorobjectcanbeusedtodeterminethetypeofdatavalidationerrorthathasoccurred.
![Page 204: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/204.jpg)
UsingtheErrorObjectTheErrorobjectprovidesanumberofpropertiesthatcanbeusedtoprogrammaticallyinteractwithanInfoPathdatavalidationerror.TheErrorobjectisaccessedthroughtheErrorspropertyoftheXDocumentobject,whichreturnsareferencetotheErrorscollection.
Inthefollowingexample,theItempropertyoftheErrorscollectionisusedtosetareferencetoanErrorobject;thentheShortErrorMessagepropertyoftheErrorobjectisisusedtodisplaytheerrormessageinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errormessage:"+objError.ShortErrorMessage);
FormoreinformationaboutusingtheErrorobject,seeHandlingerrors.
![Page 205: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/205.jpg)
ShowAll
![Page 206: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/206.jpg)
ExternalApplicationObject
ExternalApplication
RepresentstheMicrosoftOfficeInfoPath2003application.TheExternalApplicationobjectimplementsalimitedsetofmethodsthatcanbeusedforautomatingInfoPathbyanexternalComponentObjectModel(COM)–basedprogramminglanguage.
![Page 207: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/207.jpg)
RemarksTheExternalApplicationobjectcanbeusedtoperformalimitedsetofInfoPathoperationssuchascreating,opening,orclosingaform;registeringorunregisteringaformtemplate;orsimplyquittingtheapplication.
![Page 208: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/208.jpg)
UsingtheExternalApplicationobjectTousetheExternalApplicationobject,youmustfirstcreateareferencetoitusingtheProgIDoftheInfoPathobjectmodelalongwiththenameoftheExternalApplicationobject.ThefollowingexampledemonstratescreatingareferencetotheExternalApplicationobjectusingtheVisualBasicforApplications(VBA)programminglanguage:
DimobjIPAsObjectSetobjIP=CreateObject("InfoPath.ExternalApplication")
NoteThisexampleuseslate-bindingforcreatingthereferencetotheExternalApplicationobject;youcanalsouseearly-bindingbysettingareferencetotheInfoPathobjectmodelinyourprogrammingenvironment.
AfteryouhavecreatedareferencetotheExternalApplicationobject,youcanthenusethemethodsthatitprovidestointeractwithInfoPath.Inthefollowingexample,writteninVBA,theOpenmethodoftheExternalApplicationobjectisusedtoopenaformbasedonthespecifiedUniformResourceIdentifier(URI):
PublicSubOpenForm()
DimobjIPAsObject
'CreatetheExternalApplicationobjectandopenaspecifiedform.SetobjIP=CreateObject("InfoPath.ExternalApplication")objIP.Open("C:\MyForms\Form1.xml")
SetobjIP=Nothing
EndSub
FormoreinformationaboutusingtheExternalApplicationobject,seeAutomatingInfoPath.
![Page 209: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/209.jpg)
ShowAll
![Page 210: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/210.jpg)
HTMLTaskPaneObject
HTMLTaskPane
RepresentsacustomtaskpaneinaMicrosoftOfficeInfoPath2003formthatisassociatedwithawindow.TheHTMLTaskPaneobjectprovidesanumberofpropertiesandmethodsforworkingwiththeInfoPathcustomtaskpane,anditprovidespropertiesandmethodstotheTaskPaneobjectasaninheritedobject.
![Page 211: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/211.jpg)
RemarksThepropertiesandmethodsthatareavailableforanInfoPathtaskpanearedeterminedbythetypeoftaskpanethatyouareworkingwith.IftheTypepropertyoftheTaskPaneobjectreturns0,thetaskpaneisacustomtaskpaneandthepropertiesandmethodsthatareavailableareprovidedbytheHTMLTaskPaneobject.IftheTypepropertyreturnsanyothervalue,thetaskpaneisabuilt-intaskpaneandthepropertiesareprovidedbytheTaskPaneobjectdirectly.
TheTypepropertyisbasedontheXdTaskPaneTypeenumeration.TheseenumeratedvaluesarealsousedasargumentstotheItempropertyoftheTaskPanescollectionforreturningareferencetoaspecifiedtypeoftaskpane.
NoteThepropertiesandmethodsoftheHTMLTaskPaneobjectcannotbecalledduringanOnLoadeventbecausetheviewisnotyetloadedwhenthiseventoccurs,andtaskpanesareassociatedwiththeview.
![Page 212: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/212.jpg)
UsingtheHTMLTaskPaneobjectInthefollowingexamplefromtheUserInterfacedevelopersampleform,theItempropertyoftheTaskPanescollectionisusedtosetaglobalreferencetotheTaskPaneobjectthatrepresentsthecustomtaskpane.ThecodethencallsascriptingfunctiondefinedintheHTMLcodeofthecustomtaskpaneusingtheHTMLDocumentpropertyoftheHTMLTaskPaneobject,whichisinheritedbytheTaskPaneobject.
functionSetTaskPaneState(){
//EnsureViewhasloadedbeforetryingtoaccessthetaskpane.if(XDocument.View){//Getareferencetothecustomtaskpane.Itisalwaysthe0-th//taskpaneintheTaskPanescollection.if(gobjTaskPane==null)gobjTaskPane=XDocument.View.Window.TaskPanes.Item(0);
//Ensurethatthetaskpaneiscompletelyloaded.if(gobjTaskPane.HTMLDocument.readyState=="complete"){varstrTaskPaneViewId="TP_"+XDocument.View.Name.replace(/\W+/g,"");
//CallascriptfunctiondefinedinthetaskpaneHTMLpage.gobjTaskPane.HTMLDocument.parentWindow.SelectView(strTaskPaneViewId);}}}
![Page 213: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/213.jpg)
ShowAll
![Page 214: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/214.jpg)
HTMLTaskPaneExternalObject
HTMLTaskPaneExternal
RepresentsalinktotheMicrosoftOfficeInfoPath2003objectmodel.TheHTMLTaskPaneExternalobjectisusedtoexposetheInfoPathobjectmodeltotheDynamicHTML(DHTML)scriptingcodeinacustomtaskpane.
TheHTMLTaskPaneExternalobjectprovidesanumberofpropertiesforaccessingcertainpartsoftheInfoPathobjectmodel,includingtheXDocumentobjectandtheWindowobject.
![Page 215: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/215.jpg)
RemarksTheHTMLTaskPaneExternalobjectfacilitatesusingtheInfoPathobjectmodelwithinthescriptingcodethatispartofacustomtaskpane.TheobjectisexposedthroughtheexternalpropertyoftheDHTMLwindowobject.
![Page 216: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/216.jpg)
UsingtheHTMLTaskPaneExternalobjectInthefollowingexample,theHTMLTaskPaneExternalobjectisusedthroughtheexternalpropertyoftheDHTMLwindowobjecttosetareferencetotheXDocumentobjectthatispartoftheInfoPathobjectmodel:
varobjXDoc;
objXDoc=window.external.XDocument;objXDoc.View.SwitchView("View2");
![Page 217: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/217.jpg)
ShowAll
![Page 218: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/218.jpg)
HWSAdapterObject
RepresentsaconnectiontosubmitforminformationtoaMicrosoftBiztalk2004HWS(HumanWorkflowServices)server.
![Page 219: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/219.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 220: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/220.jpg)
UsingtheHWSAdapterobjectTheHWSAdapterobjectcontainsthefollowingproperties:
Property DescriptionName ReturnsthenameofanHWSAdapterobject.QueryAllowed CorrespondstothequeryAllowedattributeintheform
definitionfile(.xsf).AlwaysreturnsFalsefortheHWSAdapterobject.
SubmitAllowed CorrespondstothesubmitAllowedattributeintheformdefinitionfile(.xsf).AlwaysreturnsTruefortheHWSAdapterobject.
TheHWSAdapterobjectcontainsthefollowingmethods:
Method DescriptionQuery BecausetheHWSAdapterobjectisavailableforsubmitting
dataonly,thismethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
Submit Executesthesubmitoperationontheassociatedadapter.
![Page 221: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/221.jpg)
InfoPathControlObject
DefinesmethodsusedfromtheimplementationofanActiveXcontrolforinitializing,uninitializing,enabling,disabling,andsavingthestateofacontrol.
![Page 222: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/222.jpg)
RemarksTheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 223: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/223.jpg)
UsingtheInfoPathControlObjectTheInfoPathControlobjectdefinesthefollowingmethodsthatmustbeimplementedbythedeveloperofanActiveXcontrolforuseonInfoPathforms.
Method DescriptionEnable DefinesamethodthatInfoPathcallswhenitneedstoenable
ordisableaninstanceofthecontrolinaview.Init Definesamethodthatperformsanyinitializationroutines
requiredwhenaninstanceofthecontrolisaddedtoanInfoPathform.
SaveState DefinesamethodthatInfoPathcallswhenitneedstosavethestateofaninstanceofthecontrolinaview.
Uninit Definesamethodthatperformsanycleanuproutinesrequiredbeforeaninstanceofthecontrolisremovedfromaview.
![Page 224: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/224.jpg)
InfoPathControlSiteObject
RepresentstheobjectthatInfoPathpassestoanActiveXcontrolwhenitisinitializedinanInfoPathview.TheInfoPathControlSiteobjectdefinestheXDocumentpropertyforaccessingtheXDocumentobjectassociatedwithaform,andtheNodepropertyforaccessingtheXMLnodetowhichthecontrolisbound.
![Page 225: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/225.jpg)
RemarksTheInfoPathControlSiteobjectshouldnotbeimplementedbythedeveloperofanActiveXcontrol.ItrepresentsaninterfacethatisimplementedbyInfoPathitself.
TheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 226: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/226.jpg)
MailEnvelopeObject
MailEnvelope
Representsacustome-mailmessageinaMicrosoftOfficeInfoPath2003form.TheMailEnvelopeobjectprovidesanumberofpropertiesthatcanbeusedtoprogrammaticallycreateacustome-mailmessagewithinthedefaulte-maileditor,anditattachesthecurrentlyopenInfoPathformtothemessage.
![Page 227: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/227.jpg)
RemarksAfterthee-mailmessageiscreated,thedefaulte-maileditorwilldisplaythee-mailmessage;userscantheninspectandeditthee-mailmessagebeforesendingit.
NoteTheMailEnvelopeobjectcannotbeusedtosendthee-mailmessagesitcreates;usersmustmanuallysendthee-mailmessages.
YoucanalsousetheShowMailItemmethodoftheUIobjecttoprogrammaticallycreatee-mailmessages.
![Page 228: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/228.jpg)
UsingtheMailEnvelopeobjectTheMailEnvelopeobjectisaccessedthroughtheMailEnvelopepropertyoftheWindowobject.
InthefollowingexamplefromtheMeetingAgendasampleform,theMailEnvelopepropertyoftheWindowobjectisusedtosetareferencetotheMailEnvelopeobjectthatisassociatedwiththecurrentlyactivewindow.ThecodethenusestheMailEnvelopeobjecttocreateacustome-mailmessage.
functionSendMeetingAgendaBtn::OnClick(oEvent){varrgRecipients=newArray();varxmlRecipients=getNodeList("/mtg:meetingAgenda/mtg:attendees/mtg:attendee/mtg:emailAddressPrimary");varxmlRecipient;
while(xmlRecipient=xmlRecipients.nextNode())rgRecipients.push(xmlRecipient.text);
try{varoEnvelope=Application.ActiveWindow.MailEnvelope; oEnvelope.Subject=getNode("/mtg:meetingAgenda/mtg:subject").text;oEnvelope.To=rgRecipients.join(";");oEnvelope.Visible=true;}catch(ex){XDocument.UI.Alert(ex.description);}}
![Page 229: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/229.jpg)
ShowAll
![Page 230: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/230.jpg)
MathObject
Providesseveralmath-relatedmethodsthatcanbeusedinMicrosoftOfficeInfoPath2003forms.
![Page 231: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/231.jpg)
RemarksUsetheMathpropertyoftheUtilobjecttoretunaMathobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 232: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/232.jpg)
UsingtheMathobjectTheMathobjectcontainsthefollowingmethods:
Function DescriptionAvg Returnstheaveragevalueofallthenumericalelementsina
nodeset.Eval Returnsthesetofresultscalculatedwhentheexpressionis
appliedtoeachsetofelementsinthecontext.Max Returnsthelargestvalueofallthenumericalelementsina
nodeset.Min Returnsthesmallestvalueofallthenumericalelementsina
nodeset.Nz Replacesemptyvaluesinthespecifiednodelistwith"0"
(zero).
![Page 233: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/233.jpg)
MergeEventObject
AneventobjectthatisusedduringanOnMergeRequestevent.TheMergeEventobjectprovidespropertiesandmethodsthatcanbeusedduringanOnMergeRequesteventtoprogrammaticallyinteractwithaform'sunderlyingXMLdocumentandtodeterminemergepropertiessuchasthenumberoffilesbeingmerged.
![Page 234: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/234.jpg)
RemarksDuringasinglemergeformsoperation,multipleOnMergeRequesteventswilloccur.OneOnMergeRequesteventwilloccurforeachfilebeingmerged.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 235: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/235.jpg)
UsingtheMergeEventobjectTheMergeEventobjectispassedasaparametertotheOnMergeRequesteventofanInfoPathform.Thepropertiesthatitprovidesareavailableonlyduringthisevent.
![Page 236: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/236.jpg)
ExampleInthefollowingexample,theDOMpropertyandReturnStatuspropertyoftheMergeEventobjectandtheImportDOMmethodoftheXDocumentobjectareusedtoimport(merge)aformfromtheOnMergeRequesteventhandler:
functionXDocument::OnMergeRequest(eventObj){XDocument.ImportDOM(eventObj.DOM);
eventObj.ReturnStatus=true;}
![Page 237: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/237.jpg)
SaveEventObject
AneventobjectthatisusedduringanOnSaveRequestevent.TheSaveEventobjectprovidesanumberofpropertiesandmethodsthatcanbeusedduringasaveoperationfromtheOnSaveRequesteventhandlertoprogrammaticallyinteractwithaform'sunderlyingXMLdocument,determinesaveproperties,andperformthesaveoperation.
![Page 238: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/238.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 239: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/239.jpg)
UsingtheSaveEventsobjectTheSaveEventobjectispassedasaparametertotheOnSaveRequesteventofanInfoPathform.Thepropertiesthatitprovidesareavailableonlyduringthisevent.Thisobjectexpireswhenthesaveeventexpiressoitmaynotbestoredandusedoutsideofthescopeofthesaveevent.
![Page 240: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/240.jpg)
ExampleInthefollowingexample,theReturnStatuspropertyandthePerformSaveOperationmethodoftheSaveEventobjectareusedtoperformastandardInfoPathsaveoperation:
functionXDocument::OnSaveRequest(eventObj){eventObj.PerformSaveOperation();eventObj.ReturnStatus=true;}
![Page 241: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/241.jpg)
ShowAll
![Page 242: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/242.jpg)
SharepointListAdapterObject
RepresentsaconnectiontoaSharePointlistordocumentlibrary.TheSharePointListAdapterobjectrepresentstheOfficeInfoPath2003dataadapterforretrievingdatafromaSharePointlistordocumentlibrary.
![Page 243: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/243.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 244: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/244.jpg)
UsingtheSharepointListAdapterObjectForasecondarydatasource,theSharePointListAdapterobjectisaccessiblethroughtheQueryAdapterpropertyofadataadapterobject.DataadapterobjectsareaccessiblethroughtheDataAdapterspropertyoftheXDocumentobject.
TheSharepointListAdapterobjectcontainsthefollowingproperties:
Property DescriptionName ReturnsthenameoftheSharepointListAdapter
object.QueryAllowed Aread-onlypropertyoftypeBooleanthatcorresponds
tothequeryAllowedattributeintheformdefinitionfile(.xsf).AlwaysreturnsTruefortheSharepointListAdapterobject.
SiteUrl Aread-onlypropertyreturningtheUniformResourceLocator(URL)oftheSharePointsitethatthisadaptercanqueryfrom.
SubmitAllowed CorrespondstothesubmitAllowedattributeintheformdefinitionfile(.xsf).AlwaysreturnsFalsefortheSharepointListAdapterobject.
TheSharepointListAdapterobjectcontainsthefollowingmethods:
Method DescriptionQuery ReadsdatafromtheSharepointListAdapterobject.Submit BecausetheSharepointListAdapterobjectisavailablefor
receivingdataonly,thismethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
![Page 245: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/245.jpg)
ExampleInthefollowingexample,areferencetotheSharePointListAdapterobjectisaccessedthroughtheQueryAdapterpropertyofadataadapterobjectbypassingthenameofthedataadapterobjecttotheItempropertyoftheDataAdapterscollection:
varobjSPLAdapter;objSPLAdapter=XDocument.DataAdapters("Announcements").QueryAdapter;
Afterthereferencehasbeenset,youcanusethemethodsoftheSharePointListAdapterobjectasshowninthefollowingexample,whichrequeriestheSharePointlistorlibrarytoupdatetheDOMpropertyofthedataadapterobject:
objSPLAdapter.Query();
![Page 246: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/246.jpg)
ShowAll
![Page 247: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/247.jpg)
SignatureObject
Representsadigitalsignaturethathasbeenaddedtoaformorsetofsigneddatainaform.
![Page 248: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/248.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 249: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/249.jpg)
UsingtheSignatureobjectUsetheItempropertyoftheSignaturescollectiontoreturnaSignatureobject.
TheSignatureobjectcontainsthefollowingproperties,whichcanbeusedtoreturninformationaboutadigitalsignature:
Property DescriptionComment Returnsthetextcommentthatwasaddedto
thedigitalsignature.Status Returnsthestatusofthespecifieddigital
signatureSignatureBlockXmlNode ReturnstheXMLnodecorrespondingthe
digitalsignature.Certificate ReturnstheCertificateobjectfortheX.509
digitalcertificatethatwasusedwhensigningaformorasetofsigneddata.
TheSignatureobjectcontainsthefollowingmethod:
Method DescriptionSign WritestheXMLdigitalsignatureblockandcomputesthe
cryptographichashforthesigneddata.
![Page 250: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/250.jpg)
ShowAll
![Page 251: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/251.jpg)
SignedDataBlockObject
RepresentsasetofsigneddatainaMicrosoftOfficeInfoPath2003form.TheSignedDataBlockobjectprovidesanumberofpropertiesandonemethodthatcanbeusedtoprogrammaticallyinteractwithasetofsigneddata.
![Page 252: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/252.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 253: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/253.jpg)
UsingtheSignedDataBlockobjectTheSignedDataBlockobjectcontainsthefollowingread-onlyproperties:
Property DescriptionXPath ReturnstheXPathexpressionofthe
setofsigneddatarepresentedbytheSignedDataBlockobject.
Name ReturnsthenameoftheSignedDataBlock.
Caption ReturnsthefriendlynameoftheSignedDataBlock.
SignatureRelation ReturnstherelationamongmultiplesignaturesontheSignedDataBlock.
Signatures ReturnsacollectionofthesignaturesofaSignedDataBlock.
XPathNamespaceDeclarations ReturnsthenamespacedefinitionsfortheSignedDataBlock.
SignatureContainer ReturnstherootXMLnodeofthesub-treethatcontainsthesignature(s).
TheSignedDataBlockobjectcontainsthefollowingmethod:
Method DescriptionSign InvokestheDigitalSignaturesdialogboxtoaddadigital
signaturetotheSignedDataBlocksectionoftheform.
![Page 254: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/254.jpg)
ShowAll
![Page 255: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/255.jpg)
SignEventObject
AneventobjectthatisusedduringtheOnSignevent.
![Page 256: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/256.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 257: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/257.jpg)
UsingtheSignEventobjectUsetheSignedDataBlockpropertyoftheSignEventObjectobjecttodeterminewhichsigneddatablockistriggeringtheOnSignevent.TheOnSigneventisraisedforafullytrustedformtemplateonly.
![Page 258: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/258.jpg)
ExampleInthefollowingexample,theSignEventobjectisusedtoaddasignatureandtimestamptoaSignedDataBlockobject:
[InfoPathEventHandler(EventType=InfoPathEventType.OnSign)]publicvoidOnSign(SignEvente){Signaturesignature=e.SignedDataBlock.Signatures.Create(); signature.Sign();
//Countersignthesignaturewithatrustedtimestamp.
//GettheXMLnodestoringthesignatureblock. IXMLDOMNodeoNodeSig=signature.SignatureBlockXmlNode; IXMLDOMNodeoNodeSigValue=oNodeSig.selectSingleNode(".//*[local-name(.)=’signatureValue’]"); //Gettimestampfromtimestampservice(fictitious). MyTrustedTimeStampingServices=newMyTrustedTimeStampingService(); stringstrVerifiedTimeStamp=s.AddTimeStamp(oNodeSigValue.text); //Addthevaluereturnedfromthetimestampingservicetothe //unsignedpartofthesignatureblock. IXMLDOMNodeoNodeObj=oNodeSig.selectSingleNode(".//*[local-name(.)=’Object’]"); IXMLDOMNodeoNode=oNodeObj.cloneNode(false); oNode.text=strVerifiedTimeStamp; oNodeObj.parentNode.appendChild(oNode);
e.ReturnStatus=true;}
![Page 259: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/259.jpg)
ShowAll
![Page 260: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/260.jpg)
SolutionObject
Solution
CorrespondstoaMicrosoftOfficeInfoPath2003formtemplate.TheSolutionobjectimplementspropertiesforgettinginformationaboutaformtemplate,includingitsversionnumber,theUniformResourceLocator(URL)ofitsextractedformfiles,theURLitwasloadedfrom,andanXMLDocumentObjectModel(DOM)containingitsformdefinition(.xsf)file.
![Page 261: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/261.jpg)
RemarksTheSolutionobjectisaccessedthroughtheSolutionpropertyoftheXDocumentobject.
![Page 262: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/262.jpg)
UsingtheSolutionobjectInthefollowingexample,areferenceissettotheSolutionobject,thenthecodegetsthenameofthepersonwhoauthoredtheformfromthe.xsfusingtheDOMpropertyoftheSolutionobject.Atestisthenmadetodetermineifthereisanauthorvalue,andtheresultsaredisplayedinamessagebox.
functionSolutionInfo::OnClick(eventObj){varobjSolution=XDocument.Solution;varstrSolutionVersion=objSolution.Version;varobjAuthorNode=objSolution.DOM.selectSingleNode("xsf:xDocumentClass/@author");varstrAuthorText;
if(objAuthorNode!=null)strAuthorText=objAuthorNode.text;elsestrAuthorText="Authornotavailable.";
XDocument.UI.Alert("Version:"+strSolutionVersion+"\nAuthor:"+strAuthorText);}
FormoreinformationaboutusingtheSolutionobject,seeAccessingapplicationdata.
![Page 263: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/263.jpg)
ShowAll
![Page 264: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/264.jpg)
TaskPaneObject
TaskPanes TaskPane
RepresentsataskpaneinaMicrosoftOfficeInfoPath2003formthatisassociatedwithawindow.TheTaskPaneobjectprovidesanumberofpropertiesforworkingwiththeInfoPathbuilt-intaskpanes,andtheHTMLTaskPaneobjectinheritsthosepropertiesandmethodsforworkingwithacustomtaskpane.
![Page 265: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/265.jpg)
RemarksThepropertiesandmethodsthatareavailableforanInfoPathtaskpanearedeterminedbythetypeoftaskpanethatyouareworkingwith.IftheTypepropertyoftheTaskPaneobjectreturns0,thetaskpaneisacustomtaskpaneandthepropertiesandmethodsthatareavailableareprovidedbytheHTMLTaskPaneobject.IftheTypepropertyreturnsanyothervalue,thetaskpaneisabuilt-intaskpaneandthepropertiesareprovidedbytheTaskPaneobjectdirectly.
NoteTheTypepropertyisbasedontheXdTaskPaneTypeenumeration.TheseenumeratedvaluesarealsousedasargumentstotheItempropertyoftheTaskPanescollectionforreturningareferencetoaspecifiedtypeoftaskpane.
![Page 266: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/266.jpg)
UsingtheTaskPaneobjectInthefollowingexamplefromtheUserInterfacedevelopersampleform,theItempropertyoftheTaskPanescollectionisusedtosetaglobalreferencetotheTaskPaneobjectthatrepresentsthecustomtaskpane.ThecodethencallsascriptingfunctiondefinedintheHTMLcodeofthecustomtaskpaneusingtheHTMLDocumentpropertyoftheHTMLTaskPaneobject,whichisinheritedbytheTaskPaneobject.
functionSetTaskPaneState(){
//EnsureViewhasloadedbeforetryingtoaccessthetaskpane.if(XDocument.View){//Getareferencetothecustomtaskpane.Itisalwaysthe0-th//taskpaneintheTaskPanescollection.if(gobjTaskPane==null)gobjTaskPane=XDocument.View.Window.TaskPanes.Item(0);
//Ensurethatthetaskpaneiscompletelyloaded.if(gobjTaskPane.HTMLDocument.readyState=="complete"){varstrTaskPaneViewId="TP_"+XDocument.View.Name.replace(/\W+/g,"");
//CallascriptfunctiondefinedinthetaskpaneHTMLpage.gobjTaskPane.HTMLDocument.parentWindow.SelectView(strTaskPaneViewId);}}}
![Page 267: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/267.jpg)
UIObject
UI
RepresentsvarioususerinterfacecomponentsthatcanbeusedinaMicrosoftOfficeInfoPath2003form.TheUI(userinterface)objectprovidesanumberofmethodsfordisplayingcustomandbuilt-indialogboxes.
![Page 268: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/268.jpg)
RemarksTheUIobjectisusedtoprogrammaticallydisplayvarioustypesofdialogboxestousersastheyfilloutaform.ItisnotusedformodifyingtheInfoPathuserinterface.
![Page 269: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/269.jpg)
UsingtheUIobjectTheUIobjectisaccessedthroughtheUIpropertyoftheXDocumentobject.
TheUIobjectprovidestheAlertmethod,whichisusedtodisplayasimplemessageboxwithsomecustomtext,asshowninthefollowingexample:
XDocument.UI.Alert("Custommessagetextgoeshere.");
Oneofthebuilt-inInfoPathdialogboxesthattheUIobjectcandisplayistheDigitalSignaturesdialogbox;thisdialogboxcanbedisplayedtotheuserbyusingtheShowSignatureDialogmethod,asfollows:
XDocument.UI.ShowSignatureDialog();
NoteTheShowSignatureDialogmethodcanbeusedonlyinformsthathavebeenenabledfordigitalsigning.Themethodwillreturnanerrorifusedinaformthatisnotenabledfordigitalsigning.
FormoreinformationaboutusingtheUIobject,seeDisplayingalertsanddialogboxes.
![Page 270: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/270.jpg)
UserObject
Providesmethodsthatcanbeusedtoreturninformationaboutthecurrentuser.
![Page 271: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/271.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 272: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/272.jpg)
UsingtheUserobjectUsetheUserpropertyoftheApplicationobjecttoreturnaUserobject.
TheUserobjectcontainsthefollowingmethods:
Method DescriptionIsCurrentUser ReturnsTrueifthecurrentusermatchesthespecified
username.IsUserMemberOfReturnsTrueifcurrentuserisamemberofthe
specifiedgroup.
![Page 273: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/273.jpg)
ShowAll
![Page 274: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/274.jpg)
UtilObject
ProvidesutilitymethodsthatcanbeusedwithMicrosoftOfficeInfoPath2003forms.
![Page 275: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/275.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 276: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/276.jpg)
UsingtheUtilobjectUsetheUtilpropertyoftheXDocumentobjecttocreateaUtilobject.
TheUtilobjectcontainsthefollowingproperties:
Property DescriptionDate UsethispropertytoreturnaDateobject,whichprovides
severaldate-relatedmethods.Math UsethispropertytoreturnaMathobject,whichprovides
severalmath-relatedmethods.
TheUtilobjectcontainsthefollowingmethod:
Method DescriptionMatch Indicateswhetherastringmatchesaspecifiedpattern.
![Page 277: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/277.jpg)
ShowAll
![Page 278: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/278.jpg)
VersionUpgradeEventObject
VersionUpgradeEvent
AneventobjectthatisusedduringaMicrosoftOfficeInfoPath2003versionupgradeevent.TheVersionUpgradeEventobjectprovidesanumberofpropertiesthatcanbeusedwithinaversionupgradeeventtoprogrammaticallyinteractwithaform'sunderlyingXMLdocument,determinetheversionnumbersoftheformandformtemplate,andprovidearesponseindicatingthesuccessoftheversionupgradeprocess.
![Page 279: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/279.jpg)
RemarksTheVersionUpgradeEventobjectispassedasaparametertotheOnVersionUpgradeeventofanInfoPathform.Thepropertiesthatitprovidesareavailableonlyduringthisevent.
![Page 280: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/280.jpg)
UsingtheVersionUpgradeEventobjectInthefollowingexample,theDocumentVersionandSolutionVersionpropertiesoftheVersionUpgradeEventobjectareusedtodisplaytheversionnumbersoftheformandformtemplate:
functionXDocument::OnVersionUpgrade(eventObj){XDocument.UI.Alert("Theformversion:"+eventObj.DocumentVersion+"\nTheformtemplateversion:"+eventObj.SolutionVersion);eventObj.ReturnStatus=true;}
FormoreinformationaboutusingtheVersionUpgradeEventobject,seeRespondingtoformevents.
![Page 281: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/281.jpg)
ViewObject
View
RepresentsaviewwithinaMicrosoftOfficeInfoPath2003form.TheViewobjectprovidesanumberofpropertiesandmethodsthatcanbeusedtoprogrammaticallyinteractwithanInfoPathview,includingmethodsforselectingdatacontainedintheview,switchingfromoneviewtoanother,synchronizingtheviewwithaform'sunderlyingXMLdocument,andexecutinganInfoPatheditingaction.
![Page 282: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/282.jpg)
RemarksInfoPathformscancontainoneormoreviews,andoneviewisalwaysdefinedasthedefaultview.WhenyouworkwithaviewusingtheViewobject,youareaccessingthecurrentlyactiveview.
NoteTheInfoPathobjectmodelalsoprovidestheViewInfoscollection,whichcanbeusedtogetinformationaboutalloftheviewsimplementedinaform.
![Page 283: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/283.jpg)
UsingtheViewobjectTheViewobjectisaccessedthroughtheViewpropertyoftheXDocumentobject.Forexample,thefollowingcodesetsareferencetoaform'scurrentlyactiveview:
varobjView;
objView=XDocument.View;
Tochangethecurrentlyactiveview,youcanusetheSwitchViewmethodoftheViewobjectasfollows:
XDocument.View.SwitchView("View2");
Toforceanupdateofaviewbasedonchangesinaform'sunderlyingXMLdocument,youcanusetheForceUpdatemethodoftheViewobject,asshownhere:
XDocument.View.ForceUpdate();
FormoreinformationaboutusingtheViewobject,seeWorkingwithviews.
![Page 284: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/284.jpg)
ViewInfoObject
ViewInfos ViewInfo
ContainsdescriptiveinformationaboutaviewwithinaMicrosoftOfficeInfoPath2003form.
![Page 285: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/285.jpg)
RemarksTheViewInfoobjectprovidespropertiesthatcanbeusedtogetthenameofaviewanddeterminewhetheraviewisthedefaultviewoftheform.TheViewInfoobjectisaccessiblethroughtheViewInfospropertyoftheXDocumentobject.
NoteToworkwiththeviewprogrammatically,usetheViewobject.
![Page 286: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/286.jpg)
UsingtheViewInfoobjectInthefollowingexample,theIsDefaultpropertyoftheViewInfoobjectisusedtodeterminewhetheraviewisthedefaultviewoftheform.ThenthecodeusestheNamepropertyoftheViewInfoobjecttodisplaythenameofthedefaultviewinamessagebox.
varobjViewInfos;
//SetareferencetotheViewInfoscollection.objViewInfos=XDocument.ViewInfos;
//Determinethedefaultviewanddisplaya//messageboxwithitsname.for(i=0;i<objViewInfos.Count;i++){if(objViewInfos(i).IsDefault)XDocument.UI.Alert("Thedefaultviewis:"+XDocument.ViewInfos(0).Name);}
![Page 287: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/287.jpg)
ShowAll
![Page 288: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/288.jpg)
WebServiceAdapterObject
WebServiceAdapter
RepresentsaconnectiontoanXMLWebservice.TheWebServiceAdapterobjectisatypeofMicrosoftOfficeInfoPath2003dataadapterthatcontainsalltheinformationnecessaryforretrievingdatafromandsubmittingdatatoanexternaldatasource.
![Page 289: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/289.jpg)
RemarksTheWebServiceAdapterobjectprovidespropertiesthatcanbeusedtogetandsetinformationaboutthedataadapter'sinputandoperationstrings.ItalsoprovidesapropertyforgettingtheUniformResourceLocator(URL)oftheWebServicesDescriptionLanguage(WSDL)fileoftheXMLWebservice.
![Page 290: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/290.jpg)
UsingtheWebServiceAdapterobjectForsecondarydatasources,theWebServiceAdapterobjectisaccessiblethroughtheQueryAdapterpropertyoftheDataObjectobject,andDataObjectobjectsareaccessiblethroughtheDataObjectspropertyoftheXDocumentobject.
IfaWebserviceisusedastheprimarydatasourceforaform,theWebServiceAdapterobjectisaccessiblethroughtheQueryAdapterpropertyoftheXDocumentobject.
Inthefollowingexample,areferencetotheWebServiceAdapterobjectissetbyusingtheQueryAdapterpropertyoftheDataObjectobjectbypassingthenameoftheDataObjectobjecttotheItempropertyoftheDataObjectscollection:
varobjWSAdapter;
objWSAdapter=XDocument.DataObjects("GetCityList").QueryAdapter;
Afterthereferencehasbeenset,youcanusethepropertiesoftheWebServiceAdapterobjectasshowninthefollowingexample,whichsetsareferencetotheXMLnodereturnedbytheInputproperty:
varobjInputNode;
objInputNode=XDocument.DataObjects("GetCityList").QueryAdapter.Input;
Notethatinthiscase,theQueryAdapterpropertywasusedtoaccesstheInputpropertyoftheWebServiceAdapterobject.
FormoreinformationaboutusingtheWebServiceAdapterobject,seeAccessingexternaldatasources.
TheWebServiceAdapterobjectcontainsthefollowingproperties:
Property Description
![Page 291: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/291.jpg)
ErrorsLocation ApropertyoftypeIXMLDOMNodethatsetsorretrievestheerrorsnodeunderwhichtheWebServiceAdapterobjectwillwritetheerrordetailsreturnedbytheWebservice.Theinitialvalueisnull.
Input SetsorretrievesastringthatcontainsthesourceXMLoftheinputelementcontainedintheformdefinitionfile(.xsf).
Name Aread-onlypropertyoftypeStringthatreturnsthenameoftheWebServiceAdapterobject.
Operation SetsorretrievesastringthatcontainsthesourceXMLoftheoperationelementcontainedintheformdefinition(.xsf)file.
OutputLocation ApropertyoftypeIXMLDOMNodethatsetsorretrievestheoutputnodeunderwhichtheWebServiceAdapterobjectwillcopythereturnedXML.
QueryAllowed Aread-onlypropertyoftypeBooleanthatcorrespondstothequeryAllowedattributeintheformdefinition(.xsf)file.
SubmitAllowed Aread-onlypropertyoftypeBooleanthatcorrespondstothesubmitAllowedattributeintheformdefinitionfile(.xsf).
Timeout ApropertyoftypeLongthatsetsorretrievesthelengthoftime,inseconds,fortheWebServiceAdapterobjecttotime-outonsubsequentrequests.Thedefaultvalueis30seconds.
WSDLURL Aread-onlypropertythatreturnsastringthatcontainstheUniformResourceLocator(URL)oftheWebServicesDescriptionLanguage(WSDL)filefortheWebserviceassociatedwiththeWebServiceAdapterobject.
TheWebServiceAdapterobjectcontainsthefollowingmethods:
Method PropertyGenerateDataSetDiffGram ReturnsanADO.NetDataSetcontainingan
inlineschemadescribingthedataandthe
![Page 292: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/292.jpg)
DiffGramoftheDataSet.TheDiffGramfortheinputdataDomisgenerated,usingthesiblingnodeOriginalDatatocomputethedifferencebetweentheOriginalDataandtheinputdataDom.
Query ExecutestheQuerymethodontheWebServiceAdapterobject.FailsiftheQueryAllowedpropertyisFalse.
Submit ExecutestheSubmitmethodontheWebServiceAdapterobject.FailsiftheSubmitAllowedpropertyisFalse.
![Page 293: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/293.jpg)
ShowAll
![Page 294: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/294.jpg)
WindowObject
Windows Window
RepresentsawindowthatisusedintheMicrosoftOfficeInfoPath2003application.WindowobjectsrepresentthetwotypesofwindowsthatareusedintheInfoPathapplication:theeditingwindowthatisusedastheformareawhenauserfillsoutaform,andthedesigningwindowthatisusedasthedesignmodewhenauserdesignsaform.
![Page 295: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/295.jpg)
RemarksTheWindowobjectprovidesanumberofpropertiesandmethodsthatcanbeusedtoprogrammaticallyinteractwithInfoPathwindows,includingtheabilitytoactivateorcloseawindowandtheabilitytointeractwiththetaskpanesandcommandbarsthattheycontain.TheWindowobjectalsoprovidesapropertyforaccessingtheform'sunderlyingXMLdocumentthatisassociatedwiththewindow.
NoteSomepropertiesoftheWindowobjectareonlyavailablewhenusingtheeditingwindowtype;theywillreturnanerrorifusedwiththedesigningwindowtype.
![Page 296: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/296.jpg)
UsingtheWindowobjectTheWindowobjectsofanInfoPathformareaccessedthroughtheItempropertyoftheWindowscollection.ThetypeofwindowcanbedeterminedbytheTypepropertyoftheWindowobject.
YoucanaccessthecurrentlyopenwindowdirectlybyusingtheActiveWindowpropertyoftheApplicationobject,withoutgoingthroughtheWindowscollection.YoucanalsoaccesstheWindowobjectthatisassociatedwithaviewbyusingtheWindowpropertyoftheViewobject.
Inthefollowingexample,implementedasanOnClickeventhandlerforabuttoncontrol,theActiveWindowpropertyisusedtosetareferencetothecurrentwindow.Thenthecodechecksthewindowtype;ifitistheeditingwindowtype,itdisplaysthenumberoftaskpanescontainedinthewindowinamessagebox.
functionWindowObject::OnClick(eventObj){
varobjWindow;//Setareferencetothecurrentwindow.objWindow=Application.ActiveWindow;//Checkthatthewindowisaneditingwindowtype.if(objWindow.Type==0){//Displaythenumberoftaskpanesinthewindow.XDocument.UI.Alert("Numberoftaskpanes:"+objWindow.TaskPanes.Count);}objWindow=null;}
![Page 297: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/297.jpg)
FormoreinformationaboutusingtheWindowobject,seeWorkingwithformwindows.
![Page 298: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/298.jpg)
ShowAll
![Page 299: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/299.jpg)
XDocumentObject
XDocuments XDocument
RepresentstheunderlyingXMLdocumentofaMicrosoftOfficeInfoPath2003form.
![Page 300: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/300.jpg)
RemarksTheXDocumentobjectisakeyobjectintheInfoPathobjectmodelthatprovidesproperties,methods,andeventsthatcanbeusedtoprogrammaticallyinteractwithandmanipulatethesourceXMLdataofaform.
NoteTheXDocumentobjectisembeddedintheInfoPathscriptengine.WhiletheXDocumentobjectcanbeaccessedusingtheXDocumentscollection,inmostcasesyouwillaccessitdirectly,withoutgoingthroughthecollection.
![Page 301: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/301.jpg)
UsingtheXDocumentobjectThesourceXMLdataofaformtakestheformofanXMLDocumentObjectModel(DOM),whichisaccessedthroughtheDOMpropertyoftheXDocumentobject.TheXDocumentobjectalsoprovidesanumberofpropertiesthatcanbeusedtogetinformationabouttheformanditsunderlyingXMLdocument.Forexample,thefollowingcodecheckstoseewhetherdataintheformhasbeenchangedbyusingtheIsDirtyproperty:
if(XDocument.IsDirty)XDocument.UI.Alert("Formhasbeenchanged.");elseXDocument.UI.Alert("Formhasnotbeenchanged.");
InadditiontoinformationabouttheformanditsunderlyingXMLdocument,theXDocumentobjectprovidesanumberofmethodsthatcanbeusedontheform,suchasprinting,saving,andsubmitting.Italsoprovidesanumberofeventsthatcanbeusedtorespondtovariousactionsthatoccurattheformlevel,suchasloadingofaform,switchingviews,oramergeoperation.
![Page 302: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/302.jpg)
AccessingtheXDocumentobjectTheXDocumentobjectcanbeaccessedinavarietyplaceswithintheInfoPathobjectmodel.ThefollowingtablesummarizesthelocationswheretheXDocumentobjectisavailable.
Name DescriptionXDocumentscollection
AccessedfromtheApplicationobject.ProvidestheItempropertyforaccessingthetheXDocumentobjectsthatitcontains.
DataDOMEventobject ProvidesanXDocumentpropertyforaccessingthesourceXMLdataduringanXMLDOMchange.
DocActionEventobject
ProvidesanXDocumentpropertyforaccessingthesourceXMLdataduringabuttonclickintheformarea.
DocEventobject ProvidesanXDocumentpropertyforaccessingthesourceXMLdataduringaswitchvieworformmergeoperation.
DocReturnEventobject
ProvidesanXDocumentpropertyforaccessingthesourceXMLduringtheloadingorsubmissionofaform.
VersionUpgradeEventobject
ProvidesanXDocumentpropertyforaccessingthesourceXMLduringduringtheversionupgradeoperation.
Windowobject ProvidesanXDocumentpropertyforaccessingtheXDocumentobjectassociatedwiththewindow.
NoteFormoreinformationaboutusingtheXDocumentobject,seeAccessingformdata.
![Page 303: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/303.jpg)
ShowAll
![Page 304: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/304.jpg)
XMLFileAdapterObject
XMLFileAdapter
RepresentsaconnectiontoanXMLfile.TheXMLFileAdapterobjectisatypeofMicrosoftOfficeInfoPath2003dataadapterthatcontainsalltheinformationnecessaryforretrievingandsubmittingdatatoanexternaldatasource.
![Page 305: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/305.jpg)
RemarksTheXMLFileAdapterobjectprovidestheFileURLproperty,whichcanbeusedgetorsettheUniformResourceLocator(URL)oftheXMLfilethatisbeingusedanexternaldatasource.
![Page 306: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/306.jpg)
UsingtheXMLFileAdapterobjectForsecondarydatasources,theXMLFileAdapterobjectisaccessiblethroughtheQueryAdapterpropertyoftheDataObjectobject,andDataObjectobjectsareaccessiblethroughtheDataObjectspropertyoftheXDocumentobject.
Inthefollowingexample,areferencetotheXMLFileAdapterobjectissetbyusingtheQueryAdapterpropertyoftheDataObjectobjectbypassingthenameoftheDataObjectobjecttotheItempropertyoftheDataObjectscollection:
varobjXMLFileAdapter;
objXMLFileAdapter=XDocument.DataObjects("GetXMLCityList").QueryAdapter;
FormoreinformationaboutusingtheXMLFileAdapterobject,seeAccessingexternaldatasources.
![Page 307: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/307.jpg)
ActiveProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetherthewindowassociatedwiththeWindowobjectistheactivewindow.
expression.Active
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 308: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/308.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 309: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/309.jpg)
RemarksTodesignateawindowastheactivewindow,usetheActivatemethodoftheWindowobject.
![Page 310: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/310.jpg)
ExampleInthefollowingexample,theActivepropertyoftheWindowobjectisusedtodeterminewhetherthefirstwindowcontainedintheWindowscollectionistheactivewindow:
if(Application.Windows(0).Active){XDocument.UI.Alert("Thewindowisactive.");}
![Page 311: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/311.jpg)
ActiveWindowProperty
Aread-onlypropertythatreturnsareferencetoaWindowobjectthatrepresentsthecurrentlyactivewindow.ThetypeofwindowreturnedisbasedontheXdWindowTypeenumeration.
expression.ActiveWindow
expressionRequired.AnexpressionthatreturnstheApplicationobject.
![Page 312: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/312.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 313: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/313.jpg)
RemarksUsingtheActiveWindowproperty,youcangainimmediateaccesstothewindowthatiscurrentlybeingviewedbytheuser,andthenusethepropertiesandmethodsoftheWindowobjectthatitreturns.
![Page 314: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/314.jpg)
ExampleInthefollowingexamplefromtheMeetingAgendasampleform,theActiveWindowpropertyisusedtogainaccesstotheMailEnvelopepropertyoftheWindowobjectthatreturnsaMailEnvelopeobject.
varoEnvelope=Application.ActiveWindow.MailEnvelope;
oEnvelope.Subject=getNode("/mtg:meetingAgenda/mtg:subject").text;oEnvelope.To=rgRecipients.join(";");oEnvelope.Visible=true;
![Page 315: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/315.jpg)
AttachmentFileNameProperty
Returnsorsetsastringthatrepresentsthefilenametobeusedforthecurrentformwhentheformisattachedtothee-mailmessageofanEmailAdapterobject.
expression.AttachmentFileName
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 316: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/316.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 317: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/317.jpg)
RemarksThe".xml"filenameextensionwillbeappendedtothestringifitisnotalreadyincluded.
IftheAttachmentFileNamepropertyissettonull,theformwillnotbeattachedtothee-mailmessage.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 318: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/318.jpg)
ExampleThisexampleshowshowtousetheAttachmentFileNamepropertyofaninstanceoftheEmailAdapterobjecttochangethenameoftheformwhenitisattachedtothee-mailmessagebeforetheEmailAdapterobjectissubmitted:
objEmailAdapter.AttachmentFileName=strName+"–"+strDate+".xml";
![Page 319: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/319.jpg)
BCCProperty(EmailAdapterObject)
ReturnsorsetsastringthatrepresentstheBCCrecipientsofane-mailmessageassociatedwithanEmailAdapterobject.
expression.BCC
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 320: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/320.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 321: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/321.jpg)
RemarksThevaluemustbeasemicolon-delimitedstringthatcanberesolvedintoalistofvalide-mailaddressesbytheuser'se-mailclient.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 322: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/322.jpg)
ExampleThisexampleshowshowtousetheBCCpropertyofaninstanceoftheEmailAdapterobjecttochangetheBCCrecipientsbeforetheEmailAdapterissubmitted:
objEmailAdapter.BCC=oEmailAdapter.BCC+";[email protected]";
![Page 323: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/323.jpg)
BCCProperty(Index)
TheBCCpropertysetsorretrievesastringcontainingtheblindcarboncopy(BCC)valueforane-mailmessage.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaBCCpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheBCCproperty.
BCCpropertyasitappliestotheEmailAdapterobject.
BCCpropertyasitappliestotheMailEnvelopeobject.
![Page 324: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/324.jpg)
BCCProperty(MailEnvelopeObject)
Setsorretrievesastringcontainingtheblindcarboncopy(BCC)valueusedintheMailEnvelopeobjectthatisassociatedwithaWindowobject.
expression.BCC
expressionRequired.AnexpressionthatreturnsareferencetotheMailEnvelopeobject.
![Page 325: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/325.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 326: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/326.jpg)
RemarksThevaluessetfortheBCCpropertyshouldbeastringofvalide-mailaddresses.Youcanspecifymultiplee-mailaddressesbyusing";"betweeneachofthem,asshowninthefollowingexample:
objEmail.BCC="[email protected];[email protected]"
![Page 327: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/327.jpg)
ExampleInthefollowingexample,theBCCpropertyoftheMailEnvelopeobjectisusedtosettheBCCvalueofacustome-mailmessage:
functionCreateMailEnvelope::OnClick(eventObj){varobjEmail;
objEmail=Application.ActiveWindow.MailEnvelope;objEmail.To="[email protected]";objEmail.CC="[email protected]";objEmail.BCC="[email protected]";objEmail.Subject="Teste-mailmessage";objEmail.Visible=true;objEmail=null;}
![Page 328: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/328.jpg)
CaptionProperty(Index)
ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaCaptionpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheCaptionproperty.
CaptionpropertyasitappliestotheSignedDataBlockobject.
CaptionpropertyasitappliestotheWindowobject.
![Page 329: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/329.jpg)
CaptionProperty(SignedDataBlockObject)
Aread-onlypropertythatreturnsthefriendlynameoftheSignedDataBlockobject.
expression.Caption
expressionRequired.AnexpressionthatreturnsareferencetotheSignedDataBlockobject.
![Page 330: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/330.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 331: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/331.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 332: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/332.jpg)
CaptionProperty(WindowObject)
Aread/writepropertythatreturnsorsetsthecaptiontextforthewindowrepresentedbytheWindowobject.
expression.Caption
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 333: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/333.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 334: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/334.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 335: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/335.jpg)
RemarksWhensettingthecaptiontextforawindow,thecaptionwillalwaysbefollowedby"-MicrosoftOfficeInfoPath2003".
![Page 336: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/336.jpg)
ExampleInthefollowingexample,theCaptionpropertyisusedtosetthecaptiontextoftheactivewindow.
varstrCaption="MyCaption";
Application.ActiveWindow.Caption=strCaption;
![Page 337: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/337.jpg)
CCProperty(EmailAdapterObject)
Returnsorsetsastringthatrepresentsthecarboncopy(CC)recipientsforthee-mailmessageassociatedwithanEmailAdapterobject.
expression.CC
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 338: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/338.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 339: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/339.jpg)
RemarksThevaluemustbeasemicolon-delimitedstringthatcanberesolvedintoalistofvalide-mailaddressesbytheuser'se-mailclient.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 340: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/340.jpg)
ExampleThisexampleshowshowtousetheCCpropertyofaninstanceoftheEmailAdapterobjecttochangetheCCrecipientsbeforetheEmailAdapterobjectissubmitted:
objEmailAdapter.CC=oEmailAdapter.CC+";[email protected]";
![Page 341: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/341.jpg)
CCProperty(MailEnvelopeObject)
Setsorretrievesastringcontainingthecarboncopy(CC)valueusedintheMailEnvelopeobjectthatisassociatedwithaWindowobject.
expression.CC
expressionRequired.AnexpressionthatreturnsareferencetotheMailEnvelopeobject.
![Page 342: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/342.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 343: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/343.jpg)
RemarksThevaluessetfortheCCpropertyshouldbeastringofvalide-mailaddresses.Youcanspecifymultiplee-mailaddressesbyusing";"betweeneachofthem,asshowninthefollowingexample:
objEmail.CC="[email protected];[email protected]"
![Page 344: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/344.jpg)
ExampleInthefollowingexample,theCCpropertyoftheMailEnvelopeobjectisusedtosettheCCvalueofacustome-mailmessage:
functionCreateMailEnvelope::OnClick(eventObj){varobjEmail;
objEmail=Application.ActiveWindow.MailEnvelope;objEmail.To="[email protected]";objEmail.CC="[email protected]";objEmail.BCC="[email protected]";objEmail.Subject="Teste-mailmessage";objEmail.Visible=true;objEmail=null;}
![Page 345: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/345.jpg)
CCPropety(Index)
TheCCpropertysetsorretrievesastringcontainingthecarboncopy(CC)valueforane-mailmessage.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaCCpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheCCproperty.
CCpropertyasitappliestotheEmailAdapterobject.
CCpropertyasitappliestotheMailEnvelopeobject.
![Page 346: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/346.jpg)
ShowAll
![Page 347: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/347.jpg)
CertificateProperty
Aread-onlypropertythatreturnstheCertificateobjectfortheX.509digitalcertificatethatwasusedtosignaformorasetofsigneddatainaform.
expression.Certificate
expressionRequired.AnexpressionthatreturnsaSignatureobject.
![Page 348: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/348.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 349: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/349.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 350: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/350.jpg)
ShowAll
![Page 351: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/351.jpg)
CommandProperty
SetsorretrievestheSQLcommandstringtextforanADOAdapterobject.
expression.Command
expressionRequired.AnexpressionthatreturnsareferencetotheADOAdapterobject.
![Page 352: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/352.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 353: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/353.jpg)
RemarksTheCommandpropertyoftheADOAdapterobjectcontainstheSQLcommandtextthatisusedbytheADOdataadaptertosubmitdatatoandretrievedatafromanActiveXDataObjects/OLEDBexternaldatasource.
NoteTheADOAdapterobjectislimitedtoworkonlywithMicrosoftSQLServerandMicrosoftAccessdatabases.
![Page 354: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/354.jpg)
ExampleInthefollowingexample,theCommandpropertyoftheADOAdapterobjectisusedtodisplaytheSQLcommandtextoftheADOdataadapterinamessagebox:
varobjADOAdapter;
objADOAdapter=XDocument.DataObjects("CityList").QueryAdapter;XDocument.UI.Alert("SQLcommandtext:"+objADOAdapter.Command
![Page 355: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/355.jpg)
CommandBarsProperty
Aread-onlypropertythatreturnsareferencetotheMicrosoftOfficeCommandBarscollectionobjectcontainedinthewindowthatisassociatedwiththeWindowobject.
expression.CommandBars
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 356: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/356.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 357: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/357.jpg)
RemarksTheCommandBarspropertycanbeusedonlybyfullytrustedforms.Ifusedbyaformthatisnotfullytrusted,theCommandBarspropertywillreturna"permissiondenied"error.
![Page 358: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/358.jpg)
ExampleInthefollowingexample,theCommandBarspropertyoftheWindowobjectisusedtosetareferencetotheCommandBarscollectionobject:
varobjCommandBars;objCommandBars=Application.ActiveWindow.CommandBars;
![Page 359: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/359.jpg)
ShowAll
![Page 360: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/360.jpg)
CommentProperty
Aread-onlypropertythatreturnsthetextcommentthatwasaddedtothedigitalsignatureassociatedwithaformorasectionofaform.
expression.Comment
expressionRequired.AnexpressionthatreturnsaSignatureobject.
![Page 361: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/361.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 362: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/362.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 363: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/363.jpg)
ConditionNameProperty
Aread-onlypropertythatreturnsastringvaluecontainingthenameoftheErrorobject.
expression.ConditionName
expressionRequired.AnexpressionthatreturnsareferencetotheErrorobject.
![Page 364: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/364.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 365: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/365.jpg)
RemarksTheConditionNamepropertyisusedonlyforcustomerrors;itisnotusedforschemavalidation–generatedorsystem-generatederrors.Ifthetypeoferrorisschemavalidationgeneratedorsystemgenerated,theConditionNamepropertywillreturnnull.
![Page 366: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/366.jpg)
ExampleInthefollowingexample,theConditionNamepropertyoftheErrorobjectisusedtodisplaythenameofacustomerrorinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errorname:"+objError.ConditionName);
![Page 367: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/367.jpg)
ShowAll
![Page 368: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/368.jpg)
ConnectionProperty
SetsorretrievestheconnectionstringusedforanADOAdapterobject.
expression.Connection
expressionRequired.AnexpressionthatreturnsareferencetotheADOAdapterobject.
![Page 369: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/369.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 370: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/370.jpg)
RemarksTheConnectionpropertyoftheADOAdapterobjectcontainstheconnectionstringthatisusedbytheADOdataadaptertoconnecttoanActiveXDataObjects/OLEDBexternaldatasource.
NoteTheADOAdapterobjectislimitedtoworkonlywithMicrosoftSQLServerandMicrosoftAccessdatabases.
![Page 371: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/371.jpg)
ExampleInthefollowingexample,theConnectionpropertyoftheADOAdapterobjectisusedtodisplaytheconnectionstringoftheADOdataadapterinamessagebox:
varobjADOAdapter;
objADOAdapter=XDocument.DataObjects("CityList").QueryAdapter;XDocument.UI.Alert("Connectionstring:"+objADOAdapter.Connection
![Page 372: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/372.jpg)
ContextProperty
Aread-onlypropertythatreturnsareferencetotheXMLDocumentObjectModel(DOM)nodethatisthenewcontextnodeprovidedbytheDocContextChangeEventobject.
expression.Context
expressionRequired.AnexpressionthatreturnsareferencetotheDocContextChangeEventobject.
![Page 373: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/373.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 374: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/374.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 375: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/375.jpg)
CountProperty(DataAdaptersCollection)
Aread-onlypropertythatreturnsthenumberofdataadaptersintheDataAdaptersCollectioncollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetoaDataAdaptersCollectioncollection.
![Page 376: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/376.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 377: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/377.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 378: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/378.jpg)
ShowAll
![Page 379: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/379.jpg)
CountProperty(DataObjectsCollection)
Aread-onlypropertythatreturnsacountofthenumberofDataObjectobjectscontainedintheDataObjectscollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetotheDataObjectscollection.
![Page 380: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/380.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 381: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/381.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 382: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/382.jpg)
ExampleInthefollowingexample,theCountpropertyisusedwithinaMicrosoftJScriptforlooptoiteratethroughthecollectionofDataObjectobjectsanddisplayamessageboxindicatingthenameofeachDataObjectobjectassociatedwiththeform:
for(i=0;i<XDocument.DataObjects.Count;i++){XDocument.UI.Alert("DataObjectname:"+XDocument.DataObjects(i).Name);}
![Page 383: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/383.jpg)
ShowAll
![Page 384: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/384.jpg)
CountProperty(ErrorsCollection)
Aread-onlypropertythatreturnsacountofthenumberofErrorobjectscontainedintheErrorscollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetotheErrorscollection.
![Page 385: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/385.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 386: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/386.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 387: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/387.jpg)
ExampleInthefollowingexample,theCountpropertyisusedwithinaMicrosoftJScriptforlooptoiteratethroughthecollectionofErrorobjectsanddisplayamessageboxindicatingtheshorterrormessageofeacherror:
for(i=0;i<XDocument.Errors.Count;i++){XDocument.UI.Alert("Errormessage:"+XDocument.Errors(i).ShortErrorMessage);}
![Page 388: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/388.jpg)
CountProperty(Index)
TheCountpropertyreturnsacountofthenumberofobjectscontainedinacollection.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaCountpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheCountproperty.
CountpropertyasitappliestotheDataAdapterscollection.
CountpropertyasitappliestotheDataObjectscollection.
CountpropertyasitappliestotheErrorscollection.
CountpropertyasitappliestotheMergeEventobject.
CountpropertyasitappliestotheSignaturescollection.
CountpropertyasitappliestotheSignedDataBlockscollection.
CountpropertyasitappliestotheTaskPanescollection.
CountpropertyasitappliestotheViewInfoscollection.
CountpropertyasitappliestotheWindowscollection.
CountpropertyasitappliestotheXDocumentscollection.
CountpropertyasitappliestotheXMLNodescollection.
![Page 389: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/389.jpg)
CountProperty(MergeEventObject)
Aread-onlypropertythatreturnsacountofthenumberofformsbeingmergedinamergingoperation.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetoaMergeEventobject.
![Page 390: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/390.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 391: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/391.jpg)
RemarksTheCountpropertycanbeusedincombinationwiththeIndexpropertyoftheMergeEventobjecttodeterminewhenthelastformwasmerged.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 392: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/392.jpg)
ExampleThisexampleshowshowtousetheIndexpropertyalongwiththeCountpropertyofaninstanceoftheMergeEventobjecttodetermineifthecurrentformisthelastformbeingmerged:
varfLast=eventObj.Index+1==eventObj.Count;
![Page 393: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/393.jpg)
CountProperty(SignaturesCollection)
Aread-onlypropertythatreturnsthenumberofSignatureobjectsintheSignaturescollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetoaSignaturescollection.
![Page 394: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/394.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 395: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/395.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 396: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/396.jpg)
ShowAll
![Page 397: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/397.jpg)
CountProperty(SignedDataBlocksCollection)
Aread-onlypropertythatreturnsthenumberofSignedDataBlockobjectsintheformtemplate.
expression.Count
expressionRequired.AnexpressionthatreturnsaSignedDataBlockscollection.
![Page 398: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/398.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 399: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/399.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 400: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/400.jpg)
ShowAll
![Page 401: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/401.jpg)
CountProperty(TaskPanesCollection)
Aread-onlypropertythatreturnsacountofthenumberofTaskPaneobjectscontainedintheTaskPanescollection.
expression.Count
expressionRequired.ReturnsareferencetotheTaskPanescollection.
![Page 402: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/402.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 403: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/403.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 404: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/404.jpg)
ExampleInthefollowingexample,theCountpropertyisusedwithinaMicrosoftJScriptforlooptoiteratethroughthecollectionofTaskPaneobjects.ItcheckstheVisiblepropertyofeachTaskPaneobjectandifitisTrue,setsittoFalse.
varobjTaskPanes;
objTaskPanes=XDocument.View.Window.TaskPanes;
for(i=0;i<objTaskPanes.Count;i++){if(objTaskPanes(i).Visible=true)objTaskPanes(i).Visible=false;}
![Page 405: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/405.jpg)
ShowAll
![Page 406: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/406.jpg)
CountProperty(ViewInfosCollection)
Aread-onlypropertythatreturnsacountofthenumberofViewInfoobjectscontainedintheViewInfoscollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetotheViewInfoscollection.
![Page 407: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/407.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 408: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/408.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 409: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/409.jpg)
ExampleInthefollowingexample,theCountpropertyisusedwithinaMicrosoftJScriptforlooptoiteratethroughthecollectionofViewInfoobjectsanddisplayamessageboxindicatingthenameofeachviewimplementedintheform:
for(i=0;i<XDocument.ViewInfos.Count;i++){XDocument.UI.Alert("Viewname:"+XDocument.ViewInfos(i).Name);}
![Page 410: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/410.jpg)
ShowAll
![Page 411: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/411.jpg)
CountProperty(WindowsCollection)
Aread-onlypropertythatreturnsacountofthenumberofWindowobjectscontainedintheWindowscollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetotheWindowscollection.
![Page 412: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/412.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 413: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/413.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 414: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/414.jpg)
ExampleInthefollowingexample,theCountpropertyisusedwithinaMicrosoftJScriptforlooptoiteratethroughthecollectionofWindowobjectsanddisplayamessageboxindicatingthewindowtypevalue:
for(i=0;i<Application.Windows.Count;i++){XDocument.UI.Alert("Windowtype:"+Application.Windows(i).Type);}
![Page 415: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/415.jpg)
ShowAll
![Page 416: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/416.jpg)
CountProperty(XDocumentsCollection)
Aread-onlypropertythatreturnsacountofthenumberofXDocumentobjectscontainedintheXDocumentscollection.
expression.Count
expressionRequired.AnexpressionthatreturnsareferencetotheXDocumentscollection.
![Page 417: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/417.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 418: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/418.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 419: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/419.jpg)
ExampleInthefollowingexample,theCountpropertyoftheXDocumentscollectionisusedwithinaJScriptforlooptoiteratethroughthecollectionofXDocumentobjectsanddisplayamessageboxindicatingtheUniformResourceIdentifier(URI)locationforeachcurrentlyopenform:
for(i=0;i<Application.XDocuments.Count;i++){XDocument.UI.Alert("XDocumentURI:"+Application.XDocuments(i).URI);}
![Page 420: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/420.jpg)
ShowAll
![Page 421: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/421.jpg)
CountProperty(XMLNodesCollection)
Aread-onlypropertythatreturnsacountofthenumberofXMLDocumentObjectModel(DOM)nodeobjectscontainedintheXMLNodescollection.
expression.Count
expressionRequired.ReturnsareferencetotheXMLNodescollection.
![Page 422: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/422.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 423: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/423.jpg)
RemarksTheCountpropertyreturnsalongintegervalue.
![Page 424: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/424.jpg)
ExampleInthefollowingexample,theCountpropertyisusedwithinaMicrosoftJScriptforlooptoiteratethroughthecollectionofXMLDOMnodeobjectsreturnedbytheGetSelectedNodesmethodoftheViewobjectanddisplayamessageboxindicatingthenameofeachXMLDOMnodethatiscontainedintheXMLNodescollection:
varobjXMLNodes;
objXMLNodes=XDocument.View.GetSelectedNodes();
for(i=0;i<objXMLNodes.Count;i++){XDocument.UI.Alert("XMLDOMnodename:"+objXMLNodes(i).nodeName);}
![Page 425: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/425.jpg)
DataAdaptersProperty
Aread-onlypropertythatreturnsareferencetotheDataAdapterscollectionthatisassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.DataAdapters
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 426: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/426.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 427: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/427.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 428: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/428.jpg)
ExampleInthefollowingexample,theDataAdapterspropertyoftheXDocumentobjectisusedtosetareferencetoadataadaptercalled"Mainquery":
varobjDataAdapter;objDataAdapter=XDocument.DataAdapters("Mainquery");
![Page 429: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/429.jpg)
ShowAll
![Page 430: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/430.jpg)
DataObjectsProperty
Aread-onlypropertythatreturnsareferencetotheDataObjectscollectionthatisassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.DataObjects
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 431: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/431.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 432: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/432.jpg)
RemarksTheDataObjectscollectionprovidesprogrammaticaccesstoaform'ssecondarydatasources.EachsecondarydatasourceiscontainedinaDataObjectobjectwithintheDataObjectscollection.
![Page 433: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/433.jpg)
ExampleInthefollowingexample,theDataObjectspropertyoftheXDocumentobjectisusedtosetareferencetotheCityListsecondarydatasource:
varobjDataObject;objDataObject=XDocument.DataObjects("CityList");
![Page 434: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/434.jpg)
DateProperty
Aread-onlypropertythatreturnsareferencetotheDateobject.
expression.Date
expressionRequired.AnexpressionthatreturnsareferencetotheUtilobject.
![Page 435: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/435.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 436: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/436.jpg)
RemarksYoucanaccessallofthemethodsthattheDateobjectprovidesbyusingtheDateproperty.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 437: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/437.jpg)
DetailedErrorMessageProperty
SetsorretrievesthestringvaluecontainingthedetailederrormessageofanErrorobject.
expression.DetailedErrorMessage
expressionRequired.AnexpressionthatreturnsareferencetotheErrorobject.
![Page 438: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/438.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 439: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/439.jpg)
RemarksThedetailederrormessageisthelongererrormessagethatuserscanchoosetoviewwhendatavalidationfailsintheirforms.
![Page 440: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/440.jpg)
ExampleInthefollowingexample,theDetailedErrorMessagepropertyoftheErrorobjectisusedtodisplaythedetailedmessageofanerrorinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errorname:"+objError.DetailedErrorMessage
![Page 441: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/441.jpg)
DocumentVersionProperty
Aread-onlypropertythatreturnsastringcontainingtheversionnumberofaMicrosoftOfficeInfoPath2003form.
expression.DocumentVersion
expressionRequired.AnexpressionthatreturnsareferencetotheVersionUpgradeEventobject.
![Page 442: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/442.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 443: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/443.jpg)
RemarksThispropertycanbeusedonlyduringtheOnVersionUpgradeevent.
![Page 444: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/444.jpg)
ExampleInthefollowingexample,theDocumentVersionpropertyoftheVersionUpgradeEventobjectisusedtodisplaytheversionnumberofanInfoPathforminamessagebox:
functionXDocument::OnVersionUpgrade(eventObj){XDocument.UI.Alert("Theformversion:"+eventObj.DocumentVersion"\nTheformtemplateversion:"+eventObj.SolutionVersion);eventObj.ReturnStatus=true;}
![Page 445: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/445.jpg)
ShowAll
![Page 446: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/446.jpg)
DOMProperty(DataObjectObject)
Aread-onlypropertythatreturnsareferencetoanXMLDocumentObjectModel(DOM)thatisassociatedwithaDataObjectobject.
expression.DOM
expressionRequired.AnexpressionthatreturnsareferencetotheDataObjectobject.
![Page 447: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/447.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 448: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/448.jpg)
RemarksTheDOMpropertyallowsyoutoprogrammaticallyaccessandmanipulatethesourceXMLofasecondarydatasourcethatisrepresentedbytheDataObjectobject.AfteryouhavesetareferencetotheXMLDOM,whichcontainsthesourceXMLdataofasecondarydatasource,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 449: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/449.jpg)
ExampleInthefollowingexample,theDOMpropertyoftheDataObjectobjectisusedtoreturnallofthecontentsofaform'ssecondarydatasourceusingthexmlpropertyoftheXMLDOM:
varstrXML;strXML=XDocument.DataObjects("CityList").DOM.xml;
![Page 450: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/450.jpg)
ShowAll
![Page 451: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/451.jpg)
DOMProperty(Index)
TheDOMpropertyreturnsareferencetotheDocumentObjectModel(DOM).ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaDOMpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheDOMproperty.
DOMpropertyasitappliestotheDataObjectobject.
DOMpropertyasitappliestotheMergeEventobject.
DOMpropertyasitappliestotheSolutionobject.
DOMpropertyasitappliestotheXDocumentobject.
![Page 452: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/452.jpg)
ShowAll
![Page 453: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/453.jpg)
DOMProperty(MergeEventObject)
Aread-onlypropertythatreturnsareferencetoaform'sunderlyingXMLdocumentasanXMLDocumentObjectModel(DOM)constructionforthecurrentforminvolvedinamergingoperation.
expression.DOM
expressionRequired.AnexpressionthatreturnsareferencetoaMergeEventobject.
![Page 454: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/454.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 455: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/455.jpg)
RemarksTheDOMpropertyallowsyoutoaccessandmanipulatethesourceXMLofaformprogrammatically.AfteryouhavesetareferencetotheXMLDOM,whichcontainsthesourceXMLdataofaform,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
NoteTolearnmoreabouttheXMLDOMandthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 456: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/456.jpg)
ExampleThisexampleshowshowtousetheDOMpropertyofaninstanceoftheMergeEventobjecttomergethedataintothecurrentform:
XDocument.ImportDOM(eventObj.DOM);
![Page 457: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/457.jpg)
ShowAll
![Page 458: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/458.jpg)
DOMProperty(SolutionObject)
Aread-onlypropertythatreturnsareferencetoanXMLDocumentObjectModel(DOM)thatcontainsthesourceXMLoftheformdefinition(.xsf)file.
expression.DOM
expressionRequired.AnexpressionthatreturnsareferencetoaSolutionobject.
![Page 459: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/459.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 460: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/460.jpg)
RemarksTheDOMpropertyoftheSolutionobjectallowsyoutoprogrammaticallyaccessandmanipulatethesourceXMLofthe.xsffile.AfteryouhavesetareferencetotheXMLDOM,whichcontainsthesourceXMLdataofthe.xsffile,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 461: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/461.jpg)
ExampleInthefollowingexample,theDOMpropertyoftheSolutionobjectisusedtoreturnallofthecontentsofaform's.xsffileusingthexmlpropertyoftheXMLDOM:
varstrXML;
strXML=XDocument.Solution.DOM.xml;
![Page 462: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/462.jpg)
ShowAll
![Page 463: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/463.jpg)
DOMProperty(XDocumentObject)
Aread-onlypropertythatreturnsareferencetoaform'sunderlyingXMLdocumentintheformofanXMLDocumentObjectModel(DOM).
expression.DOM
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 464: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/464.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 465: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/465.jpg)
RemarksAkeypropertyoftheXDocumentobject,theDOMpropertyallowsyoutoprogrammaticallyaccessandmanipulatethesourceXMLofaform.AfteryouhavesetareferencetotheXMLDOM,whichcontainsthesourceXMLdataofaform,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 466: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/466.jpg)
ExampleInthefollowingexample,theDOMpropertyoftheXDocumentobjectisusedtoreturnallofthecontentsofaform'sunderlyingXMLdocumentusingthexmlpropertyoftheXMLDOM:
varstrXML;strXML=XDocument.DOM.xml;
![Page 467: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/467.jpg)
ErrorCodeProperty
SetsorretrievestheerrorcodeofanErrorobject.
expression.ErrorCode
expressionRequired.AnexpressionthatreturnsareferencetotheErrorobject.
![Page 468: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/468.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 469: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/469.jpg)
RemarksTheErrorCodepropertyisimplementedasalonginteger.
![Page 470: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/470.jpg)
ExampleInthefollowingexample,theErrorCodepropertyoftheErrorobjectisusedtodisplaytheerrorcodenumberofanerrorinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errorname:"+objError.ErrorCode);
![Page 471: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/471.jpg)
ErrorsProperty
Aread-onlypropertythatreturnsareferencetotheErrorscollectionthatisassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.Errors
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 472: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/472.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 473: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/473.jpg)
RemarksTheErrorscollectionisassociatedwithaform'sunderlyingXMLdocumentsothatwhenanerroroccurs,itoccurswithintheXMLdocument.AfteryousetareferencetotheErrorscollection,youcanaccessallofitspropertiesandmethodsformanagingtheerrorswithinanInfoPathform.
![Page 474: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/474.jpg)
ExampleInthefollowingexample,theErrorspropertyoftheXDocumentobjectisusedtoreturnthecountofthenumberorerrorsandthendisplaythatvalueinamessagebox:
varintErrors;
intErrors=XDocument.Errors.Count;XDocument.UI.Alert("Totalnumberoferrors:"+intErrors);
![Page 475: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/475.jpg)
ShowAll
![Page 476: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/476.jpg)
ErrorsLocationProperty
Aread/writepropertythatspecifiestheXMLDocumentObjectModel(DOM)nodeunderwhichtheadapterwillcopyreturnederrorsasXML.
expression.ErrorsLocation
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 477: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/477.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 478: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/478.jpg)
RemarksTheinitialvalueoftheErrorsLocationpropertyisnull.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 479: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/479.jpg)
ShowAll
![Page 480: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/480.jpg)
ExpirationDateProperty
Aread-onlypropertythatreturnstheexpirationdateofadigitalcertificateinthelocalized'SHORTDATE'format.
expression.ExpirationDate
expressionRequired.AnexpressionthatreturnsaCertificateobject.
![Page 481: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/481.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 482: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/482.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 483: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/483.jpg)
ShowAll
![Page 484: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/484.jpg)
ExtensionProperty
Aread-onlypropertythatreturnsareferencetotheglobalscriptingobject,whichexposesthefunctionsandglobalvariablescontainedinaMicrosoftOfficeInfoPath2003form'sprimaryscriptingfile.
expression.Extension
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 485: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/485.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 486: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/486.jpg)
RemarksTheExtensionpropertyfacilitatesusingthefunctionsandglobalvariablesimplementedinanInfoPathform'sscriptingfile.Usually,itisusedfromacustomtaskpane,fromacustomdialogbox,orintheXSLTransformation(XSLT)ofaviewwheredirectaccesstothefunctionsandvariablesmaybeneeded.
Forexample,ifyouweretodeclareaglobalvariableinyourscriptingfilesuchasthefollowing,
varconstCity="Redmond";
YoucouldaccessthatvalueinthecodeofyourcustomtaskpaneordialogboxbyusingtheExtensionproperty,asshownhere:
XDocument.Extension.constCity;
TousetheExtensionpropertywithinacustomtaskpane,youmustfirstsetareferencetotheXDocumentobjectbyusingtheDynamicHTML(DHTML)externalpropertyoftheDHTMLwindowobject,asshowninthisexample:
objXDocument=window.external.XDocument;
![Page 487: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/487.jpg)
ExampleInthefollowingexample,theExtensionpropertyoftheXDocumentobjectisusedtoaccessacustomfunction:
objXDocument=window.external.XDocument;objXDocument.Extension.MyCustomFunction();
![Page 488: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/488.jpg)
FileNameProperty(DAVAdapterObject)
ReturnsorsetsastringthatrepresentsthefilenamethatthecurrentMicrosoftOfficeInfoPath2003formwillbegivenwhentheformissubmittedbytheDAVAdapterobject.
expression.FileName
expressionRequired.AnexpressionthatreturnsareferencetotheDAVAdapterobject
![Page 489: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/489.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 490: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/490.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 491: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/491.jpg)
RemarksThe".xml"filenameextensionwillbeappendedtothestringifitisnotalreadyincluded.IftheFileNamepropertyissettonull,theformisgiventhename"Form.xml"whenitissubmitted.
![Page 492: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/492.jpg)
ExampleThefollowingexampleshowshowtousetheFileNamepropertyofaninstanceoftheDAVAdapterobjecttosetthefilenameofthesubmittedform:
objDAVAdapter.FileName=strName+"–"+strDate+".xml";
![Page 493: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/493.jpg)
FileNameProperty(Index)
ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaFileNamepropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheFileNameproperty.
FileNamepropertyasitappliestotheDAVAdapterobject.
FileNamepropertyasitappliestotheSaveEventobject.
![Page 494: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/494.jpg)
FileNameProperty(SaveEventObject)
Aread-onlypropertythatreturnsastringthatrepresentsthefilenametobeusedintheOnSaveRequestevent.
expression.FileName
expressionRequired.AnexpressionthatreturnsareferencetoaSaveEventobject.
![Page 495: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/495.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 496: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/496.jpg)
RemarksIftheIsSaveAspropertyoftheSaveEventobjectistrue,andasaveoperationhasnotyetoccurred,theFileNamepropertyreturnsanemptystring.IftheIsSaveAspropertyistrueandasaveoperationhasalreadyoccurred,thevaluereturnedbytheFileNamepropertyisthefilenameunderwhichtheformwassaved.IftheSaveEventobjectrepresentsasaveoperation(thatis,theIsSaveAspropertyoftheSaveEventobjectisfalse),theFileNamepropertyreturnsthesamevalueastheURIpropertyoftheXDocumentobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 497: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/497.jpg)
ExampleInthefollowingexample,theFileNamepropertyoftheSaveEventobjectisusedinanotificationtotheuserbeforeasaveoperation:
XDocument.UI.Alert("Youareabouttosavethefollowingfile:"+eventObj.
![Page 498: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/498.jpg)
ShowAll
![Page 499: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/499.jpg)
FileURLProperty
SetsorretrievestheUniformResourceLocator(URL)oftheXMLfilethatisassociatedwiththeXMLFileAdapterobject.
expression.FileURL
expressionRequired.AnexpressionthatreturnsareferencetotheXMLFileAdapterobject.
![Page 500: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/500.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 501: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/501.jpg)
RemarksTheFileURLpropertysetsandretrievesastringvalue.
![Page 502: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/502.jpg)
ExampleInthefollowingexample,theFileURLpropertyoftheXMLFileAdapterobject,accessedthroughtheQueryAdapterpropertyoftheXDocumentobject,isusedtodisplaytheURLoftheXMLfileinamessagebox:
XDocument.UI.Alert("XMLfileURL:"+XDocument.QueryAdapter.
![Page 503: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/503.jpg)
FolderURLProperty
ApropertythatreturnsorsetsastringthatrepresentstheUniformResourceLocator(URL)towhichtheformwillbesubmittedbytheDAVAdapterobject.
expression.FolderURL
expressionRequired.AnexpressionthatreturnsareferencetotheDAVAdapterobject.
![Page 504: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/504.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 505: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/505.jpg)
RemarksTheSubmitmethodoftheDAVAdapterobjectwillfailifthevalueoftheFolderURLpropertydoesnotbeginwitheitherthe"http:"orthe"https:"prefix.TheSubmitmethodwillalsofailifthesitespecifiedbytheFolderURLpropertyisnotavailable,oriftheURLisnotinthesamesecuritydomainastheformtemplate.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 506: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/506.jpg)
ExampleThisexampleshowshowtousetheFolderURLpropertyofaninstanceoftheDavAdapterobjecttochangethefoldertowhichtheformdatawillbesubmitted:
objDavAdapter.FolderURL=objDavAdapter.FolderURL+"data/";
![Page 507: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/507.jpg)
HeightProperty
Aread/writepropertyoftypelongintegerthatspecifiestheheightofthethewindowrepresentedbytheWindowobject,measuredinpoints.
expression.Height
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 508: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/508.jpg)
RemarksThispropertywillreturnanerrorifitissetonawindowthatisminimizedormaximized.
Thispropertycan'tbesettoavaluethatislargerthanthevaluereturnedbytheUsableHeightproperty.
![Page 509: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/509.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 510: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/510.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 511: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/511.jpg)
ShowAll
![Page 512: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/512.jpg)
HTMLDocumentProperty
ReturnsareferencetoanHTMLdocumentobjectoftheMicrosoftOfficeInfoPath2003customtaskpane.
expression.HTMLDocument
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLdocumentobject.
![Page 513: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/513.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 514: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/514.jpg)
RemarksTheHTMLDocumentpropertyoftheHTMLTaskPaneobjectisoneofthepropertiesinheritedbytheTaskPaneobjectwhenthetypeofthetaskpaneis0,whichmeansthatitisthecustomtaskpane.
UsingtheHTMLDocumentmethod,youcancallscriptingfunctionscontainedintheHTMLcodeofthetaskpanefromtheprimaryscriptingfileofaform,andyoucanalsodirectlymanipulatetheHTMLcodeofthetaskpaneusinganyofthepropertiesandmethodsthattheHTMLdocumentobjectprovides.
![Page 515: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/515.jpg)
ExampleInthefollowingexample,theHTMLDocumentpropertyoftheHTMLTaskPaneobjectisusedtosetareferencetotheHTMLdocumentobjectofthecustomtaskpane.ThenthecodecallstheTaskPaneSwitchViewcustomfunctionthatisdefinedintheHTMLcodeofthecustomtaskpane.
varobjHTMLDoc;
objHTMLDoc=XDocument.View.Window.TaskPanes(0).HTMLDocumentobjHTMLDoc.parentWindow.TaskPaneSwitchView();
![Page 516: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/516.jpg)
ShowAll
![Page 517: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/517.jpg)
HTMLWindowProperty
ReturnsareferencetoanHTMLwindowobjectoftheMicrosoftOfficeInfoPath2003customtaskpane.
expression.HTMLWindow
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLwindowobject.
![Page 518: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/518.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 519: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/519.jpg)
RemarksTheHTMLWindowpropertyoftheHTMLTaskPaneobjectisoneofthepropertiesinheritedbytheTaskPaneobjectwhenthetypeofthetaskpaneis0,whichmeansthatitisthecustomtaskpane.
UsingtheHTMLWindowproperty,youcancallscriptingfunctionscontainedintheHTMLcodeofthetaskpanefromtheprimaryscriptingfileofaform,andyoucanalsodirectlymanipulatetheHTMLcodeofthetaskpaneusinganyofthepropertiesandmethodsthattheHTMLdocumentobjectprovides.
NoteTheHTMLWindowpropertyprovidesthesamefunctionalityastheHTMLDocumentproperty,butitisonlyavailablewhenusingfullytrustedforms.Iftheformisnotfullytrusted,youcanusetheHTMLDocumentproperty.
![Page 520: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/520.jpg)
ExampleInthefollowingexample,theHTMLWindowpropertyoftheHTMLTaskPaneobjectisusedtosetareferencetotheHTMLwindowobjectofthecustomtaskpaneofafullytrustedform.ThenthecodecallstheTaskPaneSwitchViewcustomfunctionthatisdefinedintheHTMLcodeofthecustomtaskpane.
varobjHTMLDoc;
objHTMLDoc=XDocument.View.Window.TaskPanes(0).HTMLWindowobjHTMLDoc.parentWindow.TaskPaneSwitchView();
![Page 521: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/521.jpg)
IndexProperty
Aread-onlypropertythatreturnsthe0-basedindexoftheformthatiscurrentlybeingmerged.
expression.Index
expressionRequired.AnexpressionthatreturnsareferencetoaMergeEventobject.
![Page 522: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/522.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 523: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/523.jpg)
RemarksThevalueoftheIndexpropertyoftheMergeEventobjectincreasesfrom0toCount-1foreachmergeeventthatoccurswhenformsaremerged.
WhenusedincombinationwiththeCountpropertyoftheMergeEventobject,theIndexpropertycanbeusedtodeterminewhenthelastformhasbeenmerged.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 524: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/524.jpg)
ExampleThisexampleshowshowtousetheIndexpropertyalongwiththeCountpropertyofaninstanceoftheMergeEventobjecttodetermineifthecurrentformisthelastformtobemerged:
varfLast=eventObj.Index+1==eventObj.Count;
![Page 525: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/525.jpg)
ShowAll
![Page 526: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/526.jpg)
InputProperty
SetsorretrievesastringvaluethatcontainsthesourceXMLoftheinputelementcontainedintheformdefinition(.xsf)file.
expression.Input
expressionRequired.AnexpressionthatreturnsareferencetotheWebServiceAdapterobject.
![Page 527: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/527.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 528: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/528.jpg)
RemarksTheinputelementofthe.xsffilecontainsinformationaboutthepartsoftheinputSimpleObjectAccessProtocol(SOAP)messagethatareusedtocommunicatewiththeWebservice.SpecificpartsintheSOAPmessagearereplacedbyMicrosoftOfficeInfoPath2003withdatafromwithintheform.ItisusedwhenasecondarydatasourceispopulatedwithdatafromaWebservice,andInfoPathneedstopassargumentstotheWebservicetoretrievethedatathatitprovides.
![Page 529: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/529.jpg)
ExampleInthefollowingexample,theInputpropertyoftheWebServiceAdapterobjectisusedtodisplaytheinputstringoftheWebservicedataadapterinamessagebox:
varobjWSAdapter;
objWSAdapter=XDocument.DataObjects("WebCityList").QueryAdapter;XDocument.UI.Alert("Inputstring:"+objWSAdapter.Input);
![Page 530: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/530.jpg)
IntroProperty
Returnsorsetsastringthatrepresentstheintroductioninthebodyofthee-mailmessageforanEmailAdapterobject.
expression.Intro
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 531: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/531.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 532: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/532.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 533: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/533.jpg)
ExampleThisexampleshowshowtousetheIntropropertyofaninstanceoftheEmailAdapterobjecttochangetheintroductionofthebodyofthee-mailmessagebeforetheEmailAdapterissubmitted:
objEmailAdapter.Intro="Hereismystatusreportfortheweek.";
![Page 534: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/534.jpg)
IsCancelledProperty
Aread/writepropertythatprovidesadditionalinformationforuseintheOnSaveRequesteventinconjunctionwiththeReturnStatusproperty.
expression.IsCancelled
expressionRequired.AnexpressionthatreturnsareferencetoaSaveEventobject.
![Page 535: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/535.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 536: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/536.jpg)
RemarksWhenclosingInfoPath,theuserispromptedtosavethedocumentiftheIsDirtypropertyoftheXDocumentobjectistrue.IftheIsCancelledpropertyistrue,InfoPathwillbepreventedfromclosingifthesaveoperationfails(thatis,theReturnStatuspropertyisfalse).
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 537: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/537.jpg)
ExampleInthefollowingexample,theIsCancelledpropertyoftheSaveEventobjectisusedtoensurethatthedocumentdoesnotcloseifthesaveoperationwascancelled:
eventObj.IsCancelled=eventObj.PerformSaveOperation();if(eventObj.IsCancelled)return;eventObj.ReturnStatus=true;
![Page 538: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/538.jpg)
IsDefaultProperty
SetsorretrievesaBooleanvaluethatindicateswhethertheviewisdefinedasthedefaultviewinaMicrosoftOfficeInfoPath2003form.
expression.IsDefault
expressionRequired.AnexpressionthatreturnsareferencetotheViewInfoobject.
![Page 539: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/539.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 540: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/540.jpg)
RemarksTheIsDefaultpropertyoftheViewInfoobjectcanbeusedtodeterminewhetheraviewisthedefaultview,anditcanbeusedtoprogrammaticallychangethedefaultviewbeforethefirstviewisloaded.
![Page 541: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/541.jpg)
ExampleInthefollowingexample,theIsDefaultpropertyisusedtomakethesecondviewcontainedintheViewInfoscollectionthedefaultview:
XDocument.ViewInfos(1).IsDefault=true;
![Page 542: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/542.jpg)
IsDirtyProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetherthedatainaMicrosoftOfficeInfoPath2003formhasbeenmodifiedsinceitwaslastsaved.
expression.IsDirty
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 543: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/543.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 544: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/544.jpg)
RemarksIftheIsDirtypropertyisTrue,dataintheform'sunderlyingXMLdocumenthasbeenchangedsinceitwaslastsaved.IfFalse,nochangeshaveoccurred.
NoteChangesthatoccurduringtheOnLoadeventwillnotresultintheIsDirtypropertybeingsettoTrue.
![Page 545: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/545.jpg)
ExampleInthefollowingexample,theIsDirtypropertyoftheXDocumentobjectisusedtodeterminewhetherdataintheformhasbeenchanged:
if(XDocument.IsDirty)XDocument.UI.Alert("Datahasbeenchanged.");elseXDocument.UI.Alert("Datahasnotbeenchanged.");
![Page 546: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/546.jpg)
ShowAll
![Page 547: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/547.jpg)
IsDOMReadOnlyProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetherthedataintheunderlyingXMLdocumentofaMicrosoftOfficeInfoPath2003formhasbeenplacedinaread-onlystate.
expression.IsDOMReadOnly
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 548: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/548.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 549: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/549.jpg)
RemarksIftheIsDOMReadOnlypropertyisTrue,dataintheform'sunderlyingXMLdocumentisinaread-onlystateandcannotbechanged.IfFalse,thedataintheform'sunderlyingXMLdocumentcanbechanged.
Todeterminewhethertheformhasbeenplacedinaread-onlystate,usetheIsReadOnlypropertyoftheXDocumentobject.
Thedatainaform'sXMLdocumentwillbeplacedinaread-onlystateinthefollowingscenarios:
Theformisdigitallysigned
TheformisinReducedFunctionalityMode(RFM)mode
DuringtheOnBeforeChangeevent
DuringtheOnValidateevent
Duringanundoorredooperation
![Page 550: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/550.jpg)
ExampleInthefollowingexample,theIsDOMReadOnlypropertyoftheXDocumentobjectisusedtodeterminewhetherdataintheform'sunderlyingXMLdocumenthasbeenplacedinaread-onlystate.Ifithas,areturnstatementisusedtoexittheeventhandler.
functionmsoxd__item::OnAfterChange(objEvent){
//DeterminewhethertheXMLDOMisread-only.if(XDocument.IsDOMReadOnly)return;
//Continuenormalprocessing...
}
![Page 551: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/551.jpg)
IsNewProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetheranewlycreatedMicrosoftOfficeInfoPath2003formhasbeensaved.
expression.IsNew
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 552: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/552.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 553: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/553.jpg)
RemarksIftheIsNewpropertyisTrue,dataintheform'sunderlyingXMLdocumenthasnotbeensavedsincetheformwasinitiallycreated.IfFalse,thedatainthenewform'sunderlyingXMLdocumenthasbeensaved.
![Page 554: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/554.jpg)
ExampleInthefollowingexample,theIsNewpropertyoftheXDocumentobjectisusedtodeterminewhetherthedatainanewformhasbeensaved:
if(XDocument.IsNew)XDocument.UI.Alert("Pleasesaveyourform.");elsereturn;
![Page 555: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/555.jpg)
IsReadOnlyProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetheraMicrosoftOfficeInfoPath2003formisinread-onlymode.
expression.IsReadOnly
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 556: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/556.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 557: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/557.jpg)
RemarksIftheIsReadOnlypropertyisTrue,theformhasbeenplacedinaread-onlystate.Changescanstillbemadetotheform,butitcannotbesavedusingasaveoperation,itmustbesavedusingasave-asoperation.
Todeterminewhethertheform'sunderlyingXMLdocumenthasbeenplacedinaread-onlystate,usetheIsDOMReadOnlypropertyoftheXDocumentobject.
![Page 558: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/558.jpg)
ExampleInthefollowingexample,theIsReadOnlypropertyoftheXDocumentobjectisusedtodeterminewhethertheformisinaread-onlystate:
if(XDocument.IsReadOnly)XDocument.UI.Alert("Theformcannotbemodified.");elsereturn;
![Page 559: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/559.jpg)
IsRecoveredProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetheraMicrosoftOfficeInfoPath2003formwaslastsavedbyanAutoRecoversaveoperation.
expression.IsRecovered
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 560: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/560.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 561: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/561.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 562: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/562.jpg)
ExampleThefollowingexampleshowshowtousetheIsRecoveredpropertytoindicate,whentheformisopened,whethertheformwaslastsavedbyanAutoRecoversaveoperation:
functionXDocument::OnLoad(eventObj){XDocument.UI.Alert("LastsavedbyanAutoRecoversaveoperation:"+XDocument.}
![Page 563: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/563.jpg)
IsSaveAsProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetherthePerformSaveOperationmethodoftheSaveEventobjectwillbeperformedasa"save"operationorasa"saveas"operation.
expression.IsSaveAs
expressionRequired.AnexpressionthatreturnsareferencetoaSaveEventobject.
![Page 564: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/564.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 565: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/565.jpg)
RemarksTheIsSaveAspropertyreturnstruewhentheeventwastriggeredbyacalltotheSaveAsmethod,orbyacalltotheSavemethodwhenthedocumentisnew,orbyacalltoeithermethodwhenthedocumentisread-only.Otherwise,theIsSaveAspropertyreturnsFalse.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 566: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/566.jpg)
ExampleInthefollowingexample,theIsSaveAspropertyoftheSaveEventobjectisusedtodetermineiftheuserwillbepresentedwithaSaveAsdialogbox;otherwise,itwillinformtheuserthattheformwillsimplybesaved.
if(!eventObj.IsSaveAs){XDocument.UI.Alert(“Abouttosavethisform.”);}eventObj.PerformSaveOperation();
![Page 567: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/567.jpg)
ShowAll
![Page 568: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/568.jpg)
IsSignedProperty
Aread-onlypropertythatreturnsaBooleanvaluethatindicateswhetheraMicrosoftOfficeInfoPath2003formhasbeendigitallysignedusingdigitalsignatures.
expression.IsSigned
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 569: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/569.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 570: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/570.jpg)
RemarksIftheIsSignedpropertyisTrue,theformhasbeendigitallysigned.IfFalse,theformhasnotbeendigitallysigned.
InfoPathusesXMLSignaturestodigitallysignforms.
NoteIfaformhasbeendigitallysigned,itsunderlyingXMLdocumentisplacedinaread-onlystate.
![Page 571: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/571.jpg)
ExampleInthefollowingexample,theIsSignedpropertyoftheXDocumentobjectisusedtodeterminewhetheraformhasbeendigitallysigned:
if(XDocument.IsSigned)XDocument.UI.Alert("Thisformcontainsdigitalsignatures.");elsereturn;
![Page 572: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/572.jpg)
ShowAll
![Page 573: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/573.jpg)
IssuedByProperty
Aread-onlypropertythatreturnstheissuerofthedigitalcertificate.
expression.IssuedBy
expressionRequired.AnexpressionthatreturnsaCertificateobject.
![Page 574: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/574.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 575: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/575.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 576: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/576.jpg)
ShowAll
![Page 577: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/577.jpg)
IssuedToProperty
Aread-onlypropertythatreturnsastringrepresentingtowhomthedigitalcertificateisissued.
expression.IssuedTo
expressionRequired.AnexpressionthatreturnsaCertificateobject.
![Page 578: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/578.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 579: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/579.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 580: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/580.jpg)
ShowAll
![Page 581: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/581.jpg)
IsUndoRedoProperty(DataDOMEventObject)
Aread-onlypropertythatreturnsaBooleanvalueindicatingwhetherthedatavalidationeventoccursduringanundooperationoraredooperation.
expression.IsUndoRedo
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 582: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/582.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 583: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/583.jpg)
RemarksWhenanundooraredooperationtakesplace,theform'sunderlyingXMLdocumentisplacedinaread-onlystateandcannotbemodified.ThiscansometimesoccurduringanOnAfterChangeevent;whenitdoes,theIsUndoRedopropertyisusedtobypassthescript-baseddatavalidationthatitcontains.
![Page 584: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/584.jpg)
ExampleInthefollowingexamplefromtheDataValidationdevelopersampleform,theIsUndoRedopropertyisusedtodeterminewhethertheeventisoccurringduringanundoorredooperation.Ifitis,theeventhandlerisexitedusingthereturn;statement.
functionmsoxd__itemB_quantityListB::OnAfterChange(eventObj){if(eventObj.IsUndoRedo){//AnundoorredooperationhasoccurredandtheDOMisread-only.return;}XDocument.DOM.selectSingleNode("/sampleData/listB/total").text=GetTotal("/sampleData/listB/itemB/quantityListB");}
![Page 585: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/585.jpg)
IsUndoRedoProperty(DocContextChangeEventObject)
Aread-onlypropertythatreturnsaBooleanvalueindicatingwhetherthecontextchangeeventoccurredinresponsetoundoingoperationorredoinganoperation.
expression.IsUndoRedo
expressionRequired.ReturnsareferencetoaDocContextChangeEventobject.
![Page 586: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/586.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 587: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/587.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 588: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/588.jpg)
IsUndoRedoProperty(Index)
ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickanIsUndoRedopropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheIsUndoRedoproperty.
IsUndoRedopropertyasitappliestotheDataDOMEventobject.
IsUndoRedopropertyasitappliestotheDocContextChangeEventobject.
![Page 589: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/589.jpg)
ShowAll
![Page 590: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/590.jpg)
ItemProperty(DataAdaptersCollection)
Aread-onlypropertythatreturnsareferencetothespecifieddataadapterobjectfromtheDataAdaptersCollectioncollection,basedonpositionorname.
expression.Item(ByValvarIndexAsVariant)AsObject
expressionRequired.AnexpressionthatreturnsareferencetotheDataAdapterscollection.
varIndexRequiredVariant.AnexpressionthatspecifiesthepositionofamemberoftheDataAdapterscollection.Iftheargumentisanumericexpression,itmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.Iftheargumentisastringexpression,itmustbethenameofamemberofthecollection.
returnsAreferencetoadataadapterobject.
![Page 591: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/591.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 592: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/592.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 593: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/593.jpg)
ExampleInthefollowingexample,theItempropertyoftheDataAdapterscollectionisusedtoreturnareferencetoadataadapterinthecollection:
varobjDataAdapter;objDataAdapter=XDocument.DataAdapters.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheDataAdapterscollection,itcanalsobeusedasfollows:
varobjDataAdapter;objDataAdapter=XDocument.DataAdapters(0);
YoucanalsousethenameofadataadapterastheargumenttotheItemmethod,asshowninthefollowingexample:
varobjDataAdapter;objDataAdapter=XDocument.DataAdapters("MyDataAdapter");
![Page 594: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/594.jpg)
ShowAll
![Page 595: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/595.jpg)
ItemProperty(DataObjectsCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedDataObjectobjectfromtheDataObjectscollection.
expression.Item(ByValvarIndexAsVariant)AsDataObject
expressionRequired.AnexpressionthatreturnsareferencetotheDataObjectscollection.
varIndexRequiredVariant.AnexpressionthatspecifiesthepositionofamemberoftheDataObjectscollection.Ifanumericexpression,theargumentmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.Ifastringexpression,theargumentmustbethenameofamemberofthecollection.
returnsAreferencetoaDataObjectobject.
![Page 596: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/596.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 597: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/597.jpg)
RemarksIfthevalueprovidedforthevarIndexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheDataObjectobjectthattheItempropertyreturns,youcanaccessanyofitspropertiesormethods.
![Page 598: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/598.jpg)
ExampleInthefollowingexample,theItempropertyoftheDataObjectscollectionisusedtoreturnareferencetoaDataObjectobject:
varobjDataObject;objDataObject=XDocument.DataObjects.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheDataObjectscollection,itcanalsobeusedasfollows:
varobjDataObject;objDataObject=XDocument.DataObjects(0);
YoucanalsousethenameoftheDataObjectobjectastheargumenttotheItemmethod,asshowninthefollowingexample:
varobjDataObject;objDataObject=XDocument.DataObjects("MyDataObject");
![Page 599: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/599.jpg)
ItemProperty(ErrorsCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedErrorobjectfromtheErrorscollection.
expression.Item(ByValindexAsLong)AsError
expressionRequired.AnexpressionthatreturnsareferencetotheErrorscollection.
indexRequiredLongInteger.AnexpressionthatspecifiesthepositionofamemberoftheErrorscollection.Theargumentmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.
returnsAreferencetoanErrorobject.
![Page 600: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/600.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 601: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/601.jpg)
RemarksIfthevalueprovidedfortheindexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheErrorobjectthattheItempropertyreturns,youcanaccessanyofitspropertiesormethods.
![Page 602: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/602.jpg)
ExampleInthefollowingexample,theItempropertyoftheErrorscollectionisusedtoreturnareferencetoanErrorobject:
varobjError;objError=XDocument.Errors.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheErrorscollection,itcanalsobeusedasfollows:
varobjError;objError=XDocument.Errors(0);
![Page 603: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/603.jpg)
ItemProperty(Index)
TheItempropertyreturnsareferencetoanobjectcontainedinacollection.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickanItempropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheItemproperty.
ItempropertyasitappliestotheDataAdapterscollection.
ItempropertyasitappliestotheDataObjectscollection.
ItempropertyasitappliestotheErrorscollection.
ItempropertyasitappliestotheSignaturescollection.
ItempropertyasitappliestotheSignedDataBlockscollection.
ItempropertyasitappliestotheTaskPanescollection.
ItempropertyasitappliestotheViewInfoscollection.
ItempropertyasitappliestotheWindowscollection.
ItempropertyasitappliestotheXDocumentscollection.
ItempropertyasitappliestotheXMLNodescollection.
![Page 604: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/604.jpg)
ShowAll
![Page 605: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/605.jpg)
ItemProperty(SignaturesCollection)
Aread-onlypropertythatreturnsareferencetothespecifieddigitalsignaturefromtheSignaturescollection.
expression.Item(ByValvarIndexAsVariant)AsSignature
expressionRequired.AnexpressionthatreturnsareferencetotheSignaturescollection.
varIndexRequiredVariant.AnumericexpressionthatspecifiesthepositionofamemberoftheSignaturescollection.Theargumentmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.
returnsAreferencetoadigitalsignature.
![Page 606: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/606.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 607: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/607.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 608: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/608.jpg)
ItemProperty(SignedDataBlocksCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedSignedDataBlockobjectfromtheSignedDataBlockscollection,basedonpositionorname.
expression.Item(ByValvarIndexAsVariant)AsSignedDataBlock
expressionRequired.AnexpressionthatreturnsaSignedDataBlockscollection.
varIndexRequiredVariant.AnexpressionthatspecifiesthepositionofamemberoftheSignedDataBlockscollection.Ifthisargumentisanumericexpression,itmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.Ifthisargumentisastringexpression,itmustbethenameofamemberofthecollection.
returnsAreferencetoaSignedDataBlockobject.
![Page 609: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/609.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 610: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/610.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 611: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/611.jpg)
ShowAll
![Page 612: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/612.jpg)
ItemProperty(TaskPanesCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedTaskPaneobjectfromtheTaskPanescollection.
expression.Item(ByValvarIndexAsVariant)AsTaskPane
expressionRequired.ReturnsareferencetotheTaskPanescollection.
varIndexRequiredVariant.Anumericexpressionthatspecifiesthetypeoftaskpane.BasedontheXdTaskPaneTypeenumeration.
returnsAreferencetoaTaskPaneobject.
![Page 613: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/613.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 614: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/614.jpg)
RemarksIfthevalueprovidedforthevarIndexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheTaskPaneobjectthattheItempropertyreturns,youcanaccessanyofitspropertiesandmethods.
![Page 615: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/615.jpg)
ExampleInthefollowingexample,theItempropertyoftheTaskPanescollectionisusedtoreturnareferencetoaspecifiedTaskPaneobject:
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes.Item(4);
BecausetheItempropertyisthedefaultpropertyoftheTaskPanescollection,itcanalsobeusedasfollows:
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes(4);
![Page 616: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/616.jpg)
ShowAll
![Page 617: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/617.jpg)
ItemProperty(ViewInfosCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedViewInfoobjectfromtheViewInfoscollection.
expression.Item(ByValvarIndexAsVariant)AsViewInfo
expressionRequired.AnexpressionthatreturnsareferencetotheViewInfoscollection.
varIndexRequiredVariant.AnexpressionthatspecifiesthepositionofamemberoftheViewInfoscollection.Ifanumericexpression,theargumentmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.Ifastringexpression,theargumentmustbethenameofamemberofthecollection.
returnsAreferencetoaViewInfoobject.
![Page 618: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/618.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 619: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/619.jpg)
RemarksIfthevalueprovidedforthevarIndexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheViewInfoobjectthattheItempropertyreturns,youcanaccessanyofitsproperties.
![Page 620: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/620.jpg)
ExampleInthefollowingexample,theItempropertyoftheViewInfoscollectionisusedtoreturnareferencetoaViewInfoobject:
varobjViewInfo;objViewInfo=XDocument.ViewInfos.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheViewInfoscollection,itcanalsobeusedasfollows:
varobjViewInfo;objViewInfo=XDocument.ViewInfos(0);
YoucanalsousethenameoftheViewInfoobject,whichisthenameofaview,astheargumenttotheItemmethod,asshowninthefollowingexample:
varobjViewInfo;objViewInfo=XDocument.ViewInfos("MyView");
![Page 621: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/621.jpg)
ItemProperty(WindowsCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedWindowobjectfromtheWindowscollection.
expression.Item(ByValvarIndexAsVariant)AsWindow
expressionRequired.AnexpressionthatreturnsareferencetotheWindowscollection.
varIndexRequiredVariant.AnexpressionthatspecifiesthepositionofamemberoftheWindowscollection.Theargumentmustbeanumberfrom0tothevalueofthecollection'scountpropertyminus1.
returnsAreferencetoaWindowobject.
![Page 622: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/622.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 623: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/623.jpg)
RemarksIfthevalueprovidedforthevarIndexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheWindowobjectthattheItempropertyreturns,youcanaccessanyofitspropertiesandmethods.
![Page 624: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/624.jpg)
ExampleInthefollowingexample,theItempropertyoftheWindowscollectionisusedtoreturnareferencetoaWindowobject:
varobjWindow;objWindow=Application.Windows.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheWindowscollection,itcanalsobeusedasfollows:
varobjWindow;objWindow=Application.Windows(0);
![Page 625: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/625.jpg)
ShowAll
![Page 626: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/626.jpg)
ItemProperty(XDocumentsCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedXDocumentobjectfromtheXDocumentscollection.
expression.Item(ByValvarIndexAsVariant)AsXDocument
expressionRequired.AnexpressionthatreturnsareferencetotheXDocumentscollection.
varIndexRequiredVariant.AnexpressionthatspecifiesthepositionofamemberoftheXDocumentscollection.Ifanumericexpression,theargumentmustbeanumberfrom0tothevalueofthecollection'sCountpropertyminus1.Ifastringexpression,theargumentmustbetheUniformResourceLocator(URL)pathofamemberofthecollection.
returnsAreferencetoanXDocumentobject.
![Page 627: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/627.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 628: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/628.jpg)
RemarksIfthevalueprovidedforthevarIndexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheXDocumentobjectthattheItempropertyreturns,youcanaccessanyofitspropertiesormethods.
![Page 629: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/629.jpg)
ExampleInthefollowingexample,theItempropertyoftheXDocumentscollectionisusedtoreturnareferencetoanXDocumentobject:
varobjXDoc;objXDoc=Application.XDocuments.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheXDocumentscollection,itcanalsobeusedasfollows:
varobjXDoc;objXDoc=Application.XDocuments(0);
YoucanalsousethenameoftheXDocumentastheargumenttotheItemmethod,asshowninthefollowingexample:
varobjXDoc;objXDoc=Application.XDocuments("MyForm");
![Page 630: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/630.jpg)
ShowAll
![Page 631: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/631.jpg)
ItemProperty(XMLNodesCollection)
Aread-onlypropertythatreturnsareferencetothespecifiedXMLDocumentObjectModel(DOM)nodefromtheXMLNodescollection.
expression.Item(ByValvarIndexAsVariant)AsIXMLDOMNode
expressionRequired.ReturnsareferencetotheXMLNodescollection.
varIndexRequiredVariant.AnumericexpressionthatspecifiesthepositionofamemberoftheXMLNodescollection.Theargumentmustbeanumberfrom0tothevalueofthecollection'scountpropertyminus1.
returnsAreferencetoanXMLDOMnodeobject.
![Page 632: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/632.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 633: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/633.jpg)
RemarksIfthevalueprovidedforthevarIndexargumentdoesnotmatchanyexistingmemberofthecollection,anerroroccurs.
AfteryouhavesetareferencetotheXMLDOMnodeobjectthattheItempropertyreturns,youcanaccessanyofitspropertiesandmethods.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 634: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/634.jpg)
ExampleInthefollowingexample,theItempropertyoftheXMLNodescollectionisusedtoreturnareferencetoanXMLDOMnodeobject:
varobjXMLNodes;varobjXMLNode;
objXMLNodes=XDocument.View.GetContextNodes();objXMLNode=objXMLNodes.Item(0);
BecausetheItempropertyisthedefaultpropertyoftheXMLNodescollection,itcanalsobeusedasfollows:
varobjXMLNodes;varobjXMLNode;
objXMLNodes=XDocument.View.GetContextNodes();objXMLNode=objXMLNodes(0);
![Page 635: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/635.jpg)
LanguageProperty
SetsorretrievesaMicrosoftOfficeInfoPath2003form'sdefaultlanguagecode.
expression.Language
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 636: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/636.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 637: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/637.jpg)
RemarksThelanguagesettingsforanInfoPathformcanalsobeaccessedusingtheLanguageSettingspropertyoftheApplicationobject.
![Page 638: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/638.jpg)
ExampleInthefollowingexample,theLanguagepropertyoftheXDocumentobjectisusedtodisplayaform'scurrentlanguagesettinginamessagebox:
XDocument.UI.Alert("Thecurrentlanguageis:"+XDocument.Language
![Page 639: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/639.jpg)
ShowAll
![Page 640: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/640.jpg)
LanguageSettingsProperty
Aread-onlypropertythatreturnsareferencetotheMicrosoftOfficeLanguageSettingsobject.
expression.LanguageSettings
expressionAnexpressionthatreturnsareferencetotheApplicationobject.
![Page 641: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/641.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 642: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/642.jpg)
RemarksTheLanguageSettingspropertyisavailableonlywhenusingscriptingcode.
AfteryouestablishareferencetotheLanguageSettingsobject,youcanaccessallthepropertiesandmethodsoftheobject.
![Page 643: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/643.jpg)
ExampleThefollowingexampleusestheLanguageIDpropertyoftheLanguageSettingsobjecttoreturntheLCIDvalue(afour-digitnumber)forthelanguagethatiscurrentlybeingusedfortheOfficehelpsystem:
Application.LanguageSettings.LanguageID(3);
NoteBecauseMicrosoftOfficeInfoPath2003usesscriptingcodeinsteadofVisualBasicforApplications(VBA),youcannotusethenamesofenumeratedvalues;youmustusethenumericalvaluesoftheenumerations,asinthepreviousexample(msoLanguageIDHelp=3).
![Page 644: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/644.jpg)
LeftProperty
Aread/writepropertyoftypelongintegerthatspecifiesthehorizontalpositionofthewindowrepresentedbytheWindowobject,measuredinpoints.
expression.Left
expressionRequired.AnexpressionthatreturnsareferencetoaWindowobject.
![Page 645: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/645.jpg)
RemarksThispropertywillreturnanerrorifitissetonawindowthatisminimizedormaximized.
Settingthispropertytoapositionthatisoffthescreen,willactuallycausethewindowtobedisplayedonthescreen.
![Page 646: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/646.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 647: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/647.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 648: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/648.jpg)
MachineOnlineStateProperty
Aread-onlypropertyoftypeXdMachineOnlineStatethatreturnsthecurrentconnectionstateoftheclientcomputer.
expression.MachineOnlineState
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
![Page 649: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/649.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 650: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/650.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 651: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/651.jpg)
ShowAll
![Page 652: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/652.jpg)
MailEnvelopeProperty
Aread-onlypropertythatreturnsareferencetotheMailEnvelopeobjectassociatedwiththewindowthatisrepresentedbytheWindowobject.
expression.MailEnvelope
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 653: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/653.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 654: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/654.jpg)
RemarksTheMailEnvelopepropertycanbeusedonlywiththeeditingwindowtypes;ifusedwithadesigningwindowtype,itwillreturnanerror.Itwillalsoreturnanerrorifnoformisopenintheformarea.
![Page 655: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/655.jpg)
ExampleInthefollowingexample,theMailEnvelopepropertyoftheWindowobjectisusedtosetareferencetotheMailEnvelopeobject,whichisthenusedtocreateanddisplayacustome-mailmessage:
varobjEmail;
objEmail=Application.ActiveWindow.MailEnvelope;objEmail.Subject="Teste-mailmessage";objEmail.Visible=true;
![Page 656: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/656.jpg)
ShowAll
![Page 657: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/657.jpg)
MatchExpressionProperty
Aread-onlypropertythatreturnsastringvaluecontainingtheXPathexpressionfortheXMLDocumentObjectModel(DOM)nodeforwhichtheeventiscurrentlybeingprocessed.
expression.MatchExpression
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 658: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/658.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 659: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/659.jpg)
RemarksTheXPathexpressionthattheMatchExpressionpropertycontainspointstoanXMLDOMnodeintheform'sunderlyingXMLdocument.Thisisthenodethatiscurrentlybeingvalidatedbythedatavalidationeventhandler.
![Page 660: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/660.jpg)
ExampleInthefollowingexample,theMatchExpressionpropertyoftheDataDOMEventobjectisusedtodisplaytheXPathexpressionoftheXMLDOMnodethatiscurrentlybeingvalidated:
XDocument.UI.Alert("Matchexpression:"+eventObj.MatchExpression
![Page 661: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/661.jpg)
MathProperty
Aread-onlypropertythatreturnsareferencetotheMathobject.
expression.Math
expressionRequired.AnexpressionthatreturnsareferencetotheUtilobject.
![Page 662: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/662.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 663: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/663.jpg)
RemarksUsingtheMathproperty,youcanaccessallofthemethodsthattheMathobjectprovides.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 664: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/664.jpg)
NameProperty(ADOAdapterObject)
Aread-onlypropertythatreturnsthenameofanADOAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoanADOAdapterobject.
![Page 665: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/665.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 666: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/666.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 667: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/667.jpg)
NameProperty(ApplicationObject)
Aread-onlypropertythatreturnsastringcontainingthenameoftheMicrosoftOfficeInfoPath2003application.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
![Page 668: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/668.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 669: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/669.jpg)
RemarksThenameoftheapplicationdoesnotcontaintheversionnumber.Toobtaintheversionnumberofanapplication,usetheVersionpropertyoftheApplicationobject.
![Page 670: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/670.jpg)
ExampleInthefollowingexample,theAlertmethodoftheUIobject,accessedthroughtheXDocumentobject,isusedtodisplayamessageboxthatindicatesthenameoftheapplication:
XDocument.UI.Alert("Applicationname:"+Application.Name);
![Page 671: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/671.jpg)
ShowAll
![Page 672: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/672.jpg)
NameProperty(DataObjectObject)
Aread-onlypropertythatreturnsastringvalueindicatingthenameoftheassociatedDataObjectobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetotheDataObjectobject.
![Page 673: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/673.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 674: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/674.jpg)
RemarksThenameoftheDataObjectobjectisthesameasthenameofthesecondarydatasourcethatitrepresents.ThenameoftheDataObjectobjectcanalsobeusedastheargumenttotheItempropertyoftheDataObjectscollection.
![Page 675: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/675.jpg)
ExampleInthefollowingexample,theNamepropertyoftheDataObjectobjectisusedtotodisplaythenameoftheDataObjectobjectinamessagebox:
varobjDataObject;
objDataObject=XDocument.DataObjects(0);XDocument.UI.Alert("DataObjectname:"+objDataObject.Name);
![Page 676: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/676.jpg)
NameProperty(DAVAdapterObject)
Aread-onlypropertythatreturnsthenameofaDAVAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoaDAVAdapterobject.
![Page 677: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/677.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 678: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/678.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 679: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/679.jpg)
NameProperty(EmailAdapterObject)
Aread-onlypropertythatreturnsthenameofanEmailAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 680: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/680.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 681: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/681.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 682: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/682.jpg)
NameProperty(HWSAdapterObject)
Aread-onlypropertythatreturnsthenameofanHWSAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoaHWSAdapterobject.
![Page 683: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/683.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 684: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/684.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 685: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/685.jpg)
NameProperty(Index)
TheNamepropertyreturnsastringthatspecifiesthenameofanobject.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaNamepropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheNameproperty.
NamepropertyasitappliestotheADOAdapterobject.
NamepropertyasitappliestotheApplicationobject.
NamepropertyasitappliestotheDataObjectobject.
NamepropertyasitappliestotheDAVAdapterobject.
NamepropertyasitappliestotheEmailAdapterobject.
NamepropertyasitappliestotheHWSAdapterobject.
NamepropertyasitappliestotheSharepointListAdapterobject.
NamepropertyasitappliestotheSignedDataBlockobject.
NamepropertyasitappliestotheViewobject.
NamepropertyasitappliestotheViewInfoobject.
NamepropertyasitappliestotheWebServiceAdapterobject.
NamepropertyasitappliestotheXMLFileAdapterobject.
![Page 686: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/686.jpg)
NameProperty(SharePointListAdapterObject)
Aread-onlypropertythatreturnsthenameofaSharepointListAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoaSharePointListAdapterobject
![Page 687: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/687.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 688: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/688.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 689: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/689.jpg)
NameProperty(SignedDataBlockObject)
Aread-onlypropertythatreturnsthenameofaSignedDataBlockobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoaSignedDataBlockobject.
![Page 690: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/690.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 691: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/691.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 692: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/692.jpg)
NameProperty(ViewObject)
Aread-onlypropertythatreturnsastringcontainingthenameoftheviewthatisrepresentedbytheViewobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
![Page 693: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/693.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 694: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/694.jpg)
RemarksTodeterminewhetheraviewisthedefaultview,usetheViewInfoobject.
![Page 695: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/695.jpg)
ExampleInthefollowingexamplefromtheEventsdevelopersampleform,theNamepropertyoftheViewobjectisusedtodeterminewhichviewtheuserhasswitchedto.IftheviewistheArchiveCustomerview,anotevalueisaddedtotheform'sunderlyingXMLdocument:
functionXDocument::OnSwitchView(eventObj){varoDate=newDate();
if(XDocument.View.Name=="ArchiveCustomer"){varoNotesNode=XDocument.DOM.selectSingleNode("/Customers/CustomerInfo/Notes");varoDivNode=XDocument.DOM.createNode(1,"div","http://www.w3.org/1999/xhtml");
oDivNode.text="Noterecorded"+oDate.toString();oNotesNode.appendChild(oDivNode);}}
![Page 696: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/696.jpg)
NameProperty(ViewInfoObject)
Aread-onlypropertythatreturnsastringvalueindicatingthenameoftheviewthatisassociatedwiththeViewInfoobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetotheViewInfoobject.
![Page 697: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/697.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 698: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/698.jpg)
RemarksThenameoftheViewInfoobjectisthesameasthenameoftheviewthatitrepresents.ThenameoftheViewInfoobjectcanalsobeusedastheargumenttotheItempropertyoftheViewInfoscollection.
![Page 699: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/699.jpg)
ExampleInthefollowingexample,theNamepropertyoftheViewInfoobjectisusedtotodisplaythenameofaviewinamessagebox:
varobjViewInfo;
objViewInfo=XDocument.ViewInfos(0);XDocument.UI.Alert("Viewname:"+objViewInfo.Name);
![Page 700: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/700.jpg)
NameProperty(WebServiceAdapterObject)
Aread-onlypropertythatreturnsthenameofaWebServiceAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 701: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/701.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 702: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/702.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 703: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/703.jpg)
NameProperty(XMLFileAdapterObject)
Aread-onlypropertythatreturnsthenameofanXMLFileAdapterobject.
expression.Name
expressionRequired.AnexpressionthatreturnsareferencetoanXMLFileAdapterobject.
![Page 704: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/704.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 705: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/705.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 706: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/706.jpg)
ShowAll
![Page 707: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/707.jpg)
NewValueProperty
Aread-onlypropertythatreturnsastringvalueindicatingthevalueofanXMLDocumentObjectModel(DOM)nodethatisbeingupdatedorinsertedduringadatavalidationevent.
expression.NewValue
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 708: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/708.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 709: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/709.jpg)
RemarksTheNewValuepropertycontainsthevalueoftheXMLDOMnodethatwillreplacetheexistingvalue.TogettheoriginalvalueoftheXMLDOMnode,usetheOldValuepropertyoftheDataDOMEventobject.
![Page 710: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/710.jpg)
ExampleInthefollowingexamplefromtheADO(ActiveXDataObjects)developersampleform,theNewValuepropertyoftheDataDOMEventobjectisusedtodeterminewhetherthenewvalueoftheXMLDOMnodeisanemptystring.Ifitisnot,thecodesetsotherfieldstobeemptystrings.
functionmsoxd__Employees_EmployeeID_attr::OnAfterChange(eventObj){if(eventObj.IsUndoRedo){//AnundoorredooperationhasoccurredandtheDOMisread-only.return;}if(eventObj.NewValue=="")return;
if(XDocument.DOM.selectSingleNode('/dfs:myFields/dfs:queryFields/q:Employees/@FirstName').text!="")XDocument.DOM.selectSingleNode('/dfs:myFields/dfs:queryFields/q:Employees/@FirstName').text="";
if(XDocument.DOM.selectSingleNode('/dfs:myFields/dfs:queryFields/q:Employees/@LastName').text!="")XDocument.DOM.selectSingleNode('/dfs:myFields/dfs:queryFields/q:Employees/@LastName').text="";}
![Page 711: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/711.jpg)
ShowAll
![Page 712: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/712.jpg)
NodeProperty(ErrorObject)
Aread-onlypropertythatreturnsareferencetotheXMLDocumentObjectModel(DOM)nodeofaform'sunderlyingXMLdocumentthatisassociatedwithanErrorobject.
expression.Node
expressionRequired.AnexpressionthatreturnsareferencetotheErrorobject.
![Page 713: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/713.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 714: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/714.jpg)
RemarksUsingtheNodeproperty,youcanaccessallofthepropertiesandmethodsthattheXMLDOMnodeobjectprovides.
![Page 715: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/715.jpg)
ExampleInthefollowingexample,theNodepropertyoftheErrorobjectisusedtodisplaytheXMLnodeofanerrorinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errorname:"+objError.Node.xml);
![Page 716: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/716.jpg)
ShowAll
![Page 717: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/717.jpg)
NodeProperty(Index)
TheNodepropertyreturnsareferencetotheXMLDocumentObjectModel(DOM)nodeofaform'sunderlyingXMLdocumentthatisassociatedwithaparticularobject.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaNodepropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheNodeproperty.
NodepropertyasitappliestotheErrorobject.
NodepropertyasitappliestotheInfoPathControlSiteobject.
![Page 718: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/718.jpg)
NodeProperty(InfoPathControlSiteObject)
RetrievesareferencetotheXMLnodetowhichtheActiveXcontrolisbound.
expression.Node
expressionRequired.AnexpressionthatreturnsareferencetotheInfoPathControlSiteobject.
![Page 719: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/719.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 720: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/720.jpg)
RemarksTheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 721: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/721.jpg)
ShowAll
![Page 722: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/722.jpg)
OldValueProperty
Aread-onlypropertythatreturnsastringvalueindicatingtheoriginalvalueofanXMLDocumentObjectModel(DOM)nodethatisbeingupdatedordeletedduringadatavalidationevent.
expression.OldValue
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 723: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/723.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 724: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/724.jpg)
RemarksTheOldValuepropertycontainstheoriginalvalueoftheXMLDOMnodethatwillbereplacedwithanewvalueordeleted.TogetthenewvalueoftheXMLDOMnode,usetheNewValuepropertyoftheDataDOMEventobject.
![Page 725: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/725.jpg)
ExampleInthefollowingexample,theOldValuepropertyoftheDataDOMEventobjectisusedtodisplaytheoriginalvalueofanXMLDOMnode,alongwithitsnewvalue:
XDocument.UI.Alert("Originalvalue:"+eventObj.OldValue+"\nNewvalue:"+eventObj.NewValue);
![Page 726: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/726.jpg)
ShowAll
![Page 727: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/727.jpg)
OperationProperty(DataDOMEventObject)
Aread-onlypropertythatreturnsastringvalueindicatingthetypeofactionthatisappliedtoanXMLDocumentObjectModel(DOM)nodeduringadatavalidationevent.
expression.Operation
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 728: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/728.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 729: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/729.jpg)
RemarksThevaluesthattheOperationpropertyreturnsincludeInsert,Update,andDelete.
![Page 730: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/730.jpg)
ExampleInthefollowingexamplefromtheStructuralEditingdevelopersampleform,theOperationpropertyoftheDataDOMEventobjectisusedtocheckthetypeofactionthatisoccurring;ifitisadeleteaction,thecodecallsacustomfunction:
functionmsoxd__item::OnAfterChange(eventObj){if(!eventObj.IsUndoRedo&&eventObj.Operation=="Delete"&&eventObj.Site.nodeName=="item"&&eventObj.Source.nodeName=="item"){Calculate();}}
![Page 731: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/731.jpg)
OperationProperty(Index)
TheOperationpropertyeitherspecifiesorreturnsastringthatrepresentsaWebservicecommandstring,orreturnsthenameofaneventaction.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickanOperationpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheOperationproperty.
OperationpropertyasitappliestotheDataDOMEventobject.
OperationpropertyasitappliestotheWebServiceAdapterobject.
![Page 732: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/732.jpg)
ShowAll
![Page 733: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/733.jpg)
OperationProperty(WebServiceAdapterObject)
SetsorretrievesastringvaluethatcontainsthesourceXMLoftheoperationelementcontainedintheformdefinition(.xsf)file.
expression.Operation
expressionRequired.AnexpressionthatreturnsareferencetotheWebServiceAdapterobject.
![Page 734: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/734.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 735: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/735.jpg)
RemarksTheoperationelementofthe.xsffilecontainsinformationabouttheWebservice,includingitsname,themethodusedforretrievingandsubmittingdata,anditsUniformResourceLocator(URL).
![Page 736: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/736.jpg)
ExampleInthefollowingexample,theOperationpropertyoftheWebServiceAdapterobjectisusedtodisplaytheoperationstringoftheWebservicedataadapterinamessagebox:
varobjWSAdapter;
objWSAdapter=XDocument.DataObjects("WebCityList").QueryAdapter;XDocument.UI.Alert("Operationstring:"+objWSAdapter.Operation
![Page 737: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/737.jpg)
ShowAll
![Page 738: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/738.jpg)
OutputLocationProperty
Aread/writepropertythatspecifiestheXMLDocumentObjectModel(DOM)nodeunderwhichtheadapterwillcopytheXMLreturnedbytheXMLWebservice.
expression.OutputLocation
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 739: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/739.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 740: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/740.jpg)
RemarksIfthevalueoftheOutputLocationpropertyisnotsetonaqueryadapter,itwillcorrespondtothedataFieldselementinthedatasourceassociatedwiththedataconnection.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 741: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/741.jpg)
ShowAll
![Page 742: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/742.jpg)
PackageURLProperty
Aread-onlypropertythatreturnsastringcontainingtheUniformResourceLocator(URL)ofthecachefolderthatcontainsaMicrosoftOfficeInfoPath2003form'sextractedformfiles.
expression.PackageURL
expressionRequired.AnexpressionthatreturnsareferencetoaSolutionobject.
![Page 743: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/743.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 744: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/744.jpg)
RemarksThePackageURLpropertyissetatruntime,andtheURLitcontainspointstothefolderwheretheformtemplate'sfilesarecached.
![Page 745: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/745.jpg)
ExampleInthefollowingexample,thePackageURLpropertyoftheSolutionobjectisusedtodisplaythefolder'sURLinamessagebox:
XDocument.UI.Alert("PackageURL:"+XDocument.Solution.PackageURL
![Page 746: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/746.jpg)
ShowAll
![Page 747: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/747.jpg)
ParentProperty
Aread-onlypropertythatreturnsareferencetotheXMLDocumentObjectModel(DOM)nodeoftheparentoftheXMLDOMnodebeingchangedduringadatavalidationevent.
expression.Parent
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 748: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/748.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 749: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/749.jpg)
RemarksAfteryouhavesetareferencetotheXMLDOMnodethattheParentpropertyreturns,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.Thiscanbeespeciallyusefulduringdeleteoperations,becausetheParentpropertymapstothelocationoftheXMLDOMnodethatwasremoved.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 750: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/750.jpg)
ExampleInthefollowingpartialexamplefromtheDataValidationdevelopersampleform,theParentpropertyoftheDataDOMEventobjectisusedtocheckthenameoftheparentnode;ifitmatchescertaincriteria,anerrormessageisdisplayed:
functionmsoxd__shippingDates::OnBeforeChange(eventObj){varobjOrderDate=newDate(XDocument.DOM.selectSingleNode('/sampleData/shippingDates/orderDate').text.replace(/(.*)-(.*)-(.*)/,"$2-$3-$1"));varobjShipDate=newDate(XDocument.DOM.selectSingleNode('/sampleData/shippingDates/shipDate').text.replace(/(.*)-(.*)-(.*)/,"$2-$3-$1"));...
if(objShipDate.toString()!="NaN"&&objOrderDate.toString()=="NaN"){eventObj.ReturnMessage="TheShipDateisinvalidwithoutanorderdate.";
if(eventObj.Parent.nodeName=="orderDate")eventObj.ReturnMessage+="YoumustdeletetheShipDate"+"beforedeletingtheOrderDate.";
eventObj.ReturnStatus=false;return;}...}
![Page 751: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/751.jpg)
ShowAll
![Page 752: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/752.jpg)
QueryAdapterProperty(DataObjectObject)
Aread-onlypropertythatreturnsareferencetothedataadapterobjectthatisusedforasecondarydatasource.
expression.QueryAdapter
expressionRequired.AnexpressionthatreturnsareferencetotheDataObjectobject.
![Page 753: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/753.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 754: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/754.jpg)
RemarksAfteryouhavesetareferencetothedataadapterobjectthattheQueryAdapterpropertyreturns,youcanusethepropertiesandmethodsthattheparticulardataadapterobjectcontains.
MicrosoftOfficeInfoPath2003supportsthreetypesofdataadapters:
1. ActiveXDataObjectsRepresentedbytheADOAdapterobject.
2. WebservicesRepresentedbytheWebServiceAdapterobject.
3. XMLfileRepresentedbytheXMLFileAdapterobject.
![Page 755: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/755.jpg)
ExampleInthefollowingexample,theQueryAdapterpropertyoftheDataObjectobjectisusedtoreturnareferencetothedataadapterthatisassociatedwiththeDataObjectobject,which,inthiscase,isanADOAdapterdataadapterobject.ThecodethenusestheCommandpropertyoftheADOAdapterobjecttodisplaytheSQLcommandtextinamessagebox:
varobjDataAdapter;
objDataAdapter=XDocument.DataObjects("CityList").QueryAdapterXDocument.UI.Alert("SQLcommandtext:"+objDataAdapter.Command);
![Page 756: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/756.jpg)
QueryAdapterProperty(Index)
TheQueryAdapterpropertyreturnsareferencetoatypeofdataadapterobjectsuchastheADOAdapter,WebServiceAdapter,orXMLFileAdapterobject.ThispropertyisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaQueryAdapterpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheQueryAdapterproperty.
QueryAdapterpropertyasitappliestotheDataObjectobject.
QueryAdapterpropertyasitappliestotheXDocumentobject.
![Page 757: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/757.jpg)
ShowAll
![Page 758: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/758.jpg)
QueryAdapterProperty(XDocumentObject)
Aread-onlypropertythatreturnsareferencetothedataadapterobjectthatisassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.QueryAdapter
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 759: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/759.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 760: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/760.jpg)
RemarksDataadapterobjectsprovidedifferentpropertiesandmethodsthatretrieveandsubmitdatatoexternaldatasources;thedataadapterthatisassociatedwithaformisdependentonthetypeofdatasourcethatwasusedwhentheformwasinitiallycreated.
TheQueryAdapterpropertyallowsyoutoaccessanInfoPathform'sprimarydatasource.Toaccessthedataadapterobjectsusedforaform'ssecondarydatasources,usetheDataObjectspropertyoftheXDocumentobject.
MicrosoftOfficeInfoPath2003supportsthreetypesofdataadapters:
1. ActiveXDataObjectsRepresentedbytheADOAdapterobject.
2. WebservicesRepresentedbytheWebServiceAdapterobject.
3. XMLfileRepresentedbytheXMLFileAdapterobject.
NoteTheXMLFileAdapterobjectcannotbeusedwiththeQueryAdapterpropertyoftheXDocumentobject,itisonlyusedforsecondarydatasources.Toaccessaform'sunderlyingXMLdocument,usetheDOMpropertyoftheXDocumentobject.
![Page 761: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/761.jpg)
ExampleInthefollowingexample,theQueryAdapterpropertyoftheXDocumentobjectisusedtosetareferencetotheADOAdapterdataadapterobject;thentheCommandpropertyoftheADOAdapterobjectisusedtodisplaytheSQLcommandtextinamessagebox:
varobjADOAdapter;
objADOAdapter=XDocument.QueryAdapter;XDocument.UI.Alert("SQLcommandtext:"+objADOAdapter.Command);
![Page 762: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/762.jpg)
ShowAll
![Page 763: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/763.jpg)
QueryAllowedProperty(ADOAdapterObject)
Aread-onlypropertyoftypeBooleanthatalwaysreturnsTrue,correspondingtothequeryAllowedattributeintheformdefinitionfile(.xsf).
expression.QueryAllowed
expressionAnexpressionthatreturnsanADOAdapterobject.
![Page 764: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/764.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 765: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/765.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 766: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/766.jpg)
ShowAll
![Page 767: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/767.jpg)
QueryAllowedProperty(DAVAdapterObject)
Aread-onlypropertyoftypeBooleanthatalwaysreturnsFalse,correspondingtothequeryAllowedattributeintheformdefinitionfile(.xsf).
expression.QueryAllowed
expressionAnexpressionthatreturnsaDAVAdapterobject.
![Page 768: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/768.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 769: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/769.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 770: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/770.jpg)
ShowAll
![Page 771: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/771.jpg)
QueryAllowedProperty(EmailAdapterObject)
Aread-onlypropertyoftypeBooleanthatalwaysreturnsFalse,correspondingtothequeryAllowedattributeintheformdefinitionfile(.xsf).
expression.QueryAllowed
expressionAnexpressionthatreturnsanEmailAdapterobject.
![Page 772: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/772.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 773: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/773.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 774: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/774.jpg)
ShowAll
![Page 775: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/775.jpg)
QueryAllowedProperty(HWSAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluethatisalwaysFalse,correspondingtothequeryAllowedattributeintheformdefinitionfile(.xsf).
expression.QueryAllowed
expressionAnexpressionthatreturnsanHWSAdapterobject.
![Page 776: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/776.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 777: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/777.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 778: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/778.jpg)
ShowAll
![Page 779: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/779.jpg)
QueryAllowedProperty(Index)
TheQueryAllowedpropertyreturnsavaluethatcorrespondstothequeryAllowedattributeintheformdefinitionfile(.xsf).ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaQueryAllowedpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheQueryAllowedproperty.
QueryAllowedpropertyasitappliestotheADOAdapterobject.
QueryAllowedpropertyasitappliestotheDAVAdapterobject.
QueryAllowedpropertyasitappliestotheEmailAdapterobject.
QueryAllowedpropertyasitappliestotheHWSAdapterobject.
QueryAllowedpropertyasitappliestotheSharepointListAdapterobject.
QueryAllowedpropertyasitappliestotheWebServiceAdapterobject.
QueryAllowedpropertyasitappliestotheXMLFileAdapterobject.
![Page 780: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/780.jpg)
ShowAll
![Page 781: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/781.jpg)
QueryAllowedProperty(SharePointListAdapterObject)
Aread-onlypropertyoftypeBooleanthatalwaysreturnsTrue,correspondingtothequeryAllowedattributeintheformdefinitionfile(.xsf).
expression.QueryAllowed
expressionAnexpressionthatreturnsaSharepointListAdapterObjectobject.
![Page 782: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/782.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 783: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/783.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 784: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/784.jpg)
ShowAll
![Page 785: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/785.jpg)
QueryAllowedProperty(WebServiceAdapterObject)
Aread-onlypropertyoftypeBooleanthatcorrespondstothequeryAllowedattributeintheformdefinitionfile(.xsf).ThedefaultvalueisFalse.
expression.QueryAllowed
expressionAnexpressionthatreturnsaWebServiceAdapterobject.
![Page 786: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/786.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 787: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/787.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 788: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/788.jpg)
ShowAll
![Page 789: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/789.jpg)
QueryAllowedProperty(XMLFileAdapterObject)
Aread-onlypropertyoftypeBooleanthatalwaysreturnsTrue,correspondingtothequeryAllowedattributeintheformdefinitionfile(.xsf).
expression.QueryAllowed
expressionAnexpressionthatreturnsanXMLFileAdapterobject.
![Page 790: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/790.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 791: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/791.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 792: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/792.jpg)
ShowAll
![Page 793: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/793.jpg)
ReturnMessageProperty
Setsorretrievesastringvalueindicatingtheerrormessagethatwillbereturnedifthedatavalidationeventisnotsuccessful.
expression.ReturnMessage
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 794: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/794.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 795: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/795.jpg)
RemarksUsedinconjunctionwiththeReturnStatuspropertyoftheDataDOMEventobject,theReturnStatuspropertydisplaysamessageboxtotheuserwiththespecifiedtextmessage.
![Page 796: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/796.jpg)
ExampleInthefollowingexample,theReturnMessagepropertyoftheDataDOMEventobjectisusedtodisplayamessagetotheuserifthedatavalidationfortheXMLDOMnodefails:
functionmsoxd__id_attr::OnBeforeChange(eventObj){if(eventObj.NewValue==""){eventObj.ReturnMessage="Youmustsupplyavalueforthisfield.";eventObj.ReturnStatus=false;return;}}
![Page 797: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/797.jpg)
ShowAll
![Page 798: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/798.jpg)
ReturnStatusProperty(DataDOMEventObject)
SetsorretrievesaBooleanvalueindicatingthereturnstatusofthedatavalidationevent.
expression.ReturnStatus
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 799: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/799.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 800: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/800.jpg)
RemarksIftheReturnStatuspropertyissettoFalse,thechangestotheXMLDocumentObjectModel(DOM)nodearenotacceptedandthedatavalidationeventfails.IfsettoTrue,nodatavalidationerrorhasoccurredandthedatavalidationeventissuccessful.
![Page 801: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/801.jpg)
ExampleInthefollowingexample,theReturnStatuspropertyoftheDataDOMEventobjectisusedtoindicatethatthedatavalidationeventwasnotsuccessful.ThecodealsousestheReturnMessagepropertyoftheDataDOMEventobjecttodisplayamessagetotheuser.
functionmsoxd__id_attr::OnBeforeChange(eventObj){if(eventObj.NewValue==""){eventObj.ReturnMessage="Youmustsupplyavalueforthisfield.";eventObj.ReturnStatus=false;return;}}
![Page 802: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/802.jpg)
ReturnStatusProperty(DocActionEventObject)
SetsorretrievesaBooleanvalueindicatingthereturnstatusoftheOnClickevent.
expression.ReturnStatus
expressionRequired.ReturnsareferencetotheDocActionEventobject.
![Page 803: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/803.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 804: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/804.jpg)
RemarksIftheReturnStatuspropertyissettoFalse,theOnClickeventfails.IfsettoTrue,theOnClickeventissuccessful.ThedefaultvalueisTrue.
NoteSettingtheReturnStatuspropertytofalsewillcauseamessageboxtobedisplayedwhichindicateswhathasfailed.
![Page 805: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/805.jpg)
ExampleInthefollowingexample,theReturnStatuspropertyoftheDocActionEventobjectisusedtoindicatethattheOnClickeventwasnotsuccessful:
functionDocActionEventCancel::OnClick(eventObj){//Canceltheevent.eventObj.ReturnStatus=false;}
![Page 806: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/806.jpg)
ReturnStatusProperty(DocReturnEventObject)
SetsorretrievesaBooleanvalueindicatingthereturnstatusoftheOnLoadandOnSubmitRequestevents.
expression.ReturnStatus
expressionRequired.ReturnsareferencetotheDocReturnEventobject.
![Page 807: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/807.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 808: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/808.jpg)
RemarksIftheReturnStatuspropertyissettoFalse,theOnLoadandOnSubmitRequesteventsfail.IfsettoTrue,theOnLoadandOnSubmitRequesteventsaresuccessful.ThedefaultvaluefortheOnLoadeventisTrue,andthedefaultvaluefortheOnSubmitRequesteventisFalse.
![Page 809: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/809.jpg)
ExampleInthefollowingexample,theReturnStatuspropertyoftheDocReturnEventobjectisusedtoindicatethattheOnLoadeventwasnotsuccessful:
functionXDocument::OnLoad(eventObj){//Canceltheevent.eventObj.ReturnStatus=false;}
![Page 810: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/810.jpg)
ReturnStatusProperty(Index)
TheReturnStatuspropertyreturnsaBooleanvalueindicatingwhetherthechangesthatoccurredduringtheeventareacceptedorrejected.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaReturnStatuspropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheReturnStatusproperty.
ReturnStatuspropertyasitappliestotheDataDOMEventobject.
ReturnStatuspropertyasitappliestotheDocActionEventobject.
ReturnStatuspropertyasitappliestotheDocReturnEventobject.
ReturnStatuspropertyasitappliestotheMergeEventobject.
ReturnStatuspropertyasitappliestotheSaveEventobject.
ReturnStatuspropertyasitappliestotheVersionUpgradeEventobject.
![Page 811: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/811.jpg)
ReturnStatusProperty(MergeEventObject)
Aread-writepropertythatsetsorretrievesaBooleanvalueindicatingthereturnstatusoftheOnMergeRequestevent.
expression.ReturnStatus
expressionRequired.AnexpressionthatreturnsareferencetoaMergeEventobject.
![Page 812: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/812.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 813: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/813.jpg)
RemarksThedefaultvalueoftheReturnStatuspropertyoftheMergeEventobjectisFalse.IfthispropertyisnotsettoTrue,theeventhandlerfortheOnMergeRequesteventwillfail.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 814: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/814.jpg)
ReturnStatusProperty(SaveEventObject)
SetsorretrievesaBooleanvalueindicatingthereturnstatusoftheOnSaveRequestevent.
expression.ReturnStatus
expressionRequired.AnexpressionthatreturnsareferencetoaSaveEventobject.
![Page 815: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/815.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 816: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/816.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 817: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/817.jpg)
ReturnStatusProperty(SignEventObject)
SetsorretrievesaBooleanvalueindicatingthereturnstatusoftheOnSignevent.
expression.ReturnStatus
expressionRequired.AnexpressionthatreturnsareferencetoaSignEventobject.
![Page 818: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/818.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 819: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/819.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 820: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/820.jpg)
ReturnStatusProperty(VersionUpgradeEventObject)
SetsorretrievesaBooleanvalueindicatingthereturnstatusoftheOnVersionUpgradeevent.
expression.ReturnStatus
expressionRequired.ReturnsareferencetotheVersionUpgradeEventobject.
![Page 821: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/821.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 822: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/822.jpg)
RemarksIftheReturnStatuspropertyissettoFalse,theOnVersionUpgradeeventfailsandtheformisnotopened.IfsettoTrue,theOnVersionUpgradeeventissuccessful.
![Page 823: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/823.jpg)
ExampleInthefollowingexample,theReturnStatuspropertyoftheVersionUpgradeEventobjectisusedtoindicatethattheOnVersionUpgradeeventwasnotsuccessful:
functionXDocument::OnVersionUpgrade(eventObj){//Canceltheevent.eventObj.ReturnStatus=false;}
![Page 824: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/824.jpg)
RoleProperty
Setsorretrievestheuser'scurrentrole.
expression.Role
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 825: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/825.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 826: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/826.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 827: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/827.jpg)
ExampleInthefollowingexample,theRolepropertyisusedtodeterminethecurrentuser'srole.
varstrCurrentRole=XDocument.Role;
![Page 828: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/828.jpg)
RollBackProperty(MergeEventobject)
Aread/writepropertythatprovidesadditionalinformationtotheOnMergeRequesteventalongwiththeReturnStatuspropertyflag.
expression.RollBack
expressionRequired.AnexpressionthatreturnsareferencetoaMergeEventobject.
![Page 829: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/829.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 830: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/830.jpg)
RemarksIftheReturnStatuspropertyoftheMergeEventobjectissettoTrue,thispropertyisignored.
IftheReturnStatuspropertyisFalseandtheRollBackpropertyisTrue,theentiremergingoperationwillbecancelledandrolledbacktothestatebeforetheoperationwasinitiated.IftheRollBackpropertyisFalse,mergingthecurrentformwillfail,butthemergingoperationwillcontinuewiththenextform.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 831: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/831.jpg)
ExampleInthefollowingexample,theRollBackpropertyoftheMergeEventobjectisusedtorollbacktheentireoperationifamergefails.
try{XDocument.ImportDOM(eventObj.DOM)}catch(ex){eventObj.ReturnStatus=false;eventObj.RollBack=true;}
![Page 832: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/832.jpg)
ShortErrorMessageProperty
SetsorretrievesthestringvaluecontainingtheshorterrormessageofanErrorobject.
expression.ShortErrorMessage
expressionRequired.AnexpressionthatreturnsareferencetotheErrorobject.
![Page 833: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/833.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 834: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/834.jpg)
RemarksTheshorterrormessageistheToolTipthatusersviewwhendatavalidationfailsintheirforms.
![Page 835: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/835.jpg)
ExampleInthefollowingexample,theShortErrorMessagepropertyoftheErrorobjectisusedtodisplaytheshortmessageofanerrorinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errorname:"+objError.ShortErrorMessage);
![Page 836: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/836.jpg)
ShowAll
![Page 837: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/837.jpg)
SignatureBlockXmlNodeProperty
Aread-onlypropertythatreturnstheXMLnodecorrespondingadigitalsignature.
expression.SignatureBlockXmlNode
expressionRequired.AnexpressionthatreturnsaSignatureobject.
![Page 838: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/838.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 839: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/839.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 840: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/840.jpg)
SignatureContainerProperty
Aread-onlypropertythatreturnstherootXMLnodeofthesubtreecontainingthesignaturesintheSignedDataBlockobject.
expression.SignatureContainer
expressionRequired.AnexpressionthatreturnsareferencetotheSignedDataBlockobject.
![Page 841: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/841.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 842: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/842.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 843: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/843.jpg)
SignatureRelationProperty
Aread-onlypropertythatreturnstherelationamongmultiplesignaturesoftheSignedDataBlockobject,expressedasXdSignatureRelationenumeratedconstants.
expression.SignatureRelation
expressionRequired.AnexpressionthatreturnsareferencetotheSignedDataBlockobject.
![Page 844: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/844.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 845: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/845.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 846: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/846.jpg)
SignaturesProperty
Aread-onlypropertythatreturnsareferencetotheSignaturescollectionassociatedwiththeSignedDataBlockobject.
expression.Signatures
expressionRequired.AnexpressionthatreturnsareferencetotheSignedDataBlockobject.
![Page 847: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/847.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 848: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/848.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 849: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/849.jpg)
SignedDataBlockProperty
Aread-onlypropertythatreturnsthesigneddatablockthattriggerstheOnSignevent.
expression.SignedDataBlock
expressionRequired.AnexpressionthatreturnsaSignEventobject.
![Page 850: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/850.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 851: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/851.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 852: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/852.jpg)
SignedDataBlocksProperty
Aread-onlypropertythatreturnsareferencetotheSignedDataBlockscollectionthatisassociatedwithanXDocumentobject.
expression.SignedDataBlocks
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 853: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/853.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 854: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/854.jpg)
RemarksTheSignedDataBlockspropertyisusedtoobtainareferencetotheSignedDataBlockscollection.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 855: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/855.jpg)
ShowAll
![Page 856: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/856.jpg)
SiteProperty
Aread-onlypropertythatreturnsareferencetotheXMLDocumentObjectModel(DOM)nodewherethedatavalidationeventiscurrentlybeingprocessed.
expression.Site
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 857: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/857.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 858: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/858.jpg)
RemarksAfteryouhavesetareferencetotheXMLDOMnodethattheSitepropertyreturns,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 859: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/859.jpg)
ExampleInthefollowingexamplefromtheDataValidationdevelopersampleform,theSitepropertyoftheDataDOMEventobjectisusedtocheckthevalueoftheXMLDOMnode;ifitmatchescertaincriteria,anerroriscreated:
functionmsoxd__itemB_quantityListB::OnValidate(eventObj){if(parseInt(eventObj.Site.nodeTypedValue,10)>50)eventObj.ReportError(eventObj.Site,"Invalidquantity."+"Thetotalnumberofeachtypeofblockcannotexceed50.",false);
if(parseInt(eventObj.Site.nodeTypedValue,10)<0)eventObj.ReportError(eventObj.Site,"Invalidquantity."+"Thetotalnumberofeachtypeofblockcannotbelessthan0.",false);}
![Page 860: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/860.jpg)
ShowAll
![Page 861: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/861.jpg)
SiteUrlProperty
Aread-onlypropertyreturningtheUniformResourceLocator(URL)oftheWindowsSharePointServicessitethattheSharepointListAdapterwillquery.
expression.SiteUrl
expressionRequired.AnexpressionthatreturnsareferencetoaSharePointListAdapterobject.
![Page 862: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/862.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 863: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/863.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 864: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/864.jpg)
ExampleThefollowingexampleshowshowtousetheSiteUrlpropertyofaSharePointListAdapterobjecttostoretheURLlocationinalocalvariable:
varstrSiteURL=XDocument.DataAdapters["Announcements"].SiteUrl
![Page 865: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/865.jpg)
ShowAll
![Page 866: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/866.jpg)
SolutionProperty
Aread-onlypropertythatreturnsareferencetotheSolutionobjectthatisassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.Solution
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 867: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/867.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 868: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/868.jpg)
RemarksTheSolutionobjectprovidesaccesstoinformationaboutaform'sassociatedformdefinition(.xsf)file,includingaccesstoanXMLDocumentObjectModel(DOM)thatcontainsallofthesourceXMLofthe.xsffile.
![Page 869: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/869.jpg)
ExampleInthefollowingexample,theSolutionpropertyoftheXDocumentobjectisusedtoloadavariablewiththeXMLcontentsofthe.xsffile:
varstrXSF;strXSF=XDocument.Solution.DOM.xml;
![Page 870: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/870.jpg)
ShowAll
![Page 871: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/871.jpg)
SolutionVersionProperty
Aread-onlypropertythatreturnsastringcontainingtheversionnumberofaMicrosoftOfficeInfoPath2003formtemplate.
expression.SolutionVersion
expressionRequired.AnexpressionthatreturnsareferencetotheVersionUpgradeEventobject.
![Page 872: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/872.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 873: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/873.jpg)
RemarksThispropertycanbeusedonlyduringtheOnVersionUpgradeevent.
![Page 874: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/874.jpg)
ExampleInthefollowingexample,theSolutionVersionpropertyoftheVersionUpgradeEventobjectisusedtodisplaytheversionnumberofanInfoPathformtemplateinamessagebox:
functionXDocument::OnVersionUpgrade(eventObj){XDocument.UI.Alert("Theformversion:"+eventObj.DocumentVersion+"\nTheformtemplateversion:"+eventObj.SolutionVersion);eventObj.ReturnStatus=true;}
![Page 875: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/875.jpg)
ShowAll
![Page 876: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/876.jpg)
SourceProperty(DataDOMEventObject)
Aread-onlypropertythatreturnsareferencetotheXMLDocumentObjectModel(DOM)wherethedatavalidationeventisoccurring.
expression.Source
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 877: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/877.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 878: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/878.jpg)
RemarksAferyouhavesetareferencetotheXMLDOMnodethattheSourcepropertyreturns,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 879: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/879.jpg)
ExampleInthefollowingexamplefromtheStructuralEditingdevelopersampleform,theSourcepropertyoftheDataDOMEventobjectisusedtoreturnareferencetotheXMLDOMnodethatcausedtheinitialchange.Ifthenodenamematchescertaincriteria,acustomfunctioniscalled.
functionmsoxd__quantity::OnAfterChange(eventObj){if(!eventObj.IsUndoRedo&&eventObj.Source.nodeName!="item")Calculate(eventObj.Site.parentNode);}
![Page 880: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/880.jpg)
ShowAll
![Page 881: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/881.jpg)
SourceProperty(DocActionEventObject)
Aread-onlypropertythatreturnsareferencetotheinner-mostXMLDocumentObjectModel(DOM)nodeofaform'sunderlyingXMLdocument.
expression.Source
expressionRequired.ReturnsareferencetotheDocActionEventobject.
![Page 882: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/882.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 883: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/883.jpg)
RemarksAfteryouhavesetareferencetotheXMLDOMnodethattheSourcepropertyreturns,youcanuseanyofthepropertiesandmethodsthataresupportedbytheXMLDOM.
NoteTolearnmoreabouttheXMLDOMandallofthepropertiesandmethodsthatitsupports,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 884: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/884.jpg)
ExampleInthefollowingexample,theSourcepropertyoftheDocActionEventobjectisusedtodisplaythesourceXMLdataoftheXMLDOMnodeinamessagebox:
functionDocActionEventSource::OnClick(eventObj){XDocument.UI.Alert("Source:"+eventObj.Source.xml);}
![Page 885: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/885.jpg)
ShowAll
![Page 886: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/886.jpg)
SourceProperty(Index)
TheSourcepropertyreturnsareferencetotheXMLDocumentObjectModel(DOM)nodecontainingthesourceXMLofthedatabeingchangedduringanevent.ThispropertyisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaSourcepropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheSourceproperty.
SourcepropertyasitappliestotheDataDOMEventobject.
SourcepropertyasitappliestotheDocActionEventobject.
![Page 887: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/887.jpg)
ShowAll
![Page 888: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/888.jpg)
StatusProperty(CertificateObject)
Aread-onlypropertythatreturnsthestatusofthedigitalcertificate.ThestatusthatisreturnedisoneoftheXdCertificateStatusenumeratedconstants.
expression.Status
expressionRequired.AnexpressionthatreturnsaCertificateobject.
![Page 889: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/889.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 890: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/890.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 891: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/891.jpg)
StatusProperty(Index)
ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaStatuspropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheStatusproperty.
StatuspropertyasitappliestotheCertificateobject.
StatuspropertyasitappliestotheSignatureobject.
![Page 892: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/892.jpg)
ShowAll
![Page 893: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/893.jpg)
StatusProperty(SignatureObject)
Aread-onlypropertythatreturnsthestatusofthespecifieddigitalsignature.ThestatusthatisreturnedisbasedontheXdSignatureStatusenumeration
expression.Status
expressionRequired.AnexpressionthatreturnsaSignatureobject.
![Page 894: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/894.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 895: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/895.jpg)
RemarksTheStatuspropertyonlyverifieswhetherthehashofthedigitalsignatureisvalid.Itdoesnotverifythechainoftrustofthedigitalcertificate,nordoesitverifythattheimageoftheviewcapturedatthetimethesignaturewasaddedmatchesthecurrentviewofthesignedform.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 896: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/896.jpg)
SubjectProperty(EmailAdapterObject)
Returnsorsetsastringthatrepresentsthesubjectofthee-mailmessageassociatedwiththespecifiedEmailAdapterobject.
expression.Subject
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 897: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/897.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 898: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/898.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 899: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/899.jpg)
ExampleThisexampleshowshowtousetheSubjectpropertyofaninstanceoftheEmailAdapterobjecttochangethesubjectofthee-mailmessagebeforetheEmailAdapterobjectissubmitted:
objEmailAdapter.Subject="WeeklyStatusReport";
![Page 900: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/900.jpg)
SubjectProperty(MailEnvelopeObject)
SetsorretrievesastringcontainingthesubjectvalueusedintheMailEnvelopeobjectthatisassociatedwithaWindowobject.
expression.Subject
expressionRequired.AnexpressionthatreturnsareferencetotheMailEnvelopeobject.
![Page 901: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/901.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 902: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/902.jpg)
RemarksTheMailEnvelopeobjectdoesnotsupporttheprogrammaticcreationofthebodyofane-mailmessage.Usersenterthebodytextafterthee-mailmessageisdisplayedinthedefaulte-maileditor.
![Page 903: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/903.jpg)
ExampleInthefollowingexample,theSubjectpropertyoftheMailEnvelopeobjectisusedtosetthesubjectvalueofacustome-mailmessage:
functionCreateMailEnvelope::OnClick(eventObj){varobjEmail;
objEmail=Application.ActiveWindow.MailEnvelope;objEmail.To="[email protected]";objEmail.CC="[email protected]";objEmail.BCC="[email protected]";objEmail.Subject="Teste-mailmessage";objEmail.Visible=true;objEmail=null;}
![Page 904: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/904.jpg)
ShowAll
![Page 905: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/905.jpg)
SubmitAllowedProperty(ADOAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluecorrespondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoanADOAdapterobject.
![Page 906: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/906.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 907: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/907.jpg)
RemarksThedefaultvalueoftheSubmitAllowedpropertyisFalse,asisthedefaultvalueforthesubmitAllowedattribute.IfthesubmitAllowedattributeissettoTrue,theADOconnectionsupportssubmittingdataaswellasquerying.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 908: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/908.jpg)
ShowAll
![Page 909: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/909.jpg)
SubmitAllowedProperty(DAVAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluethatalwaysreturnsFalse,correspondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoaDAVAdapterobject.
![Page 910: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/910.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 911: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/911.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 912: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/912.jpg)
ShowAll
![Page 913: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/913.jpg)
SubmitAllowedProperty(EmailAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluethatalwaysreturnsTrue,correspondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 914: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/914.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 915: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/915.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 916: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/916.jpg)
ShowAll
![Page 917: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/917.jpg)
SubmitAllowedProperty(HWSAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluethatisalwaysTrue,correspondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoaHWSAdapterobject.
![Page 918: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/918.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 919: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/919.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 920: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/920.jpg)
SubmitAllowedProperty(Index)
TheSubmitAllowedpropertyreturnsavaluethatcorrespondstothesumitAllowedattributeintheformdefinitionfile(.xsf).ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaSubmitAllowedpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheSubmitAllowedproperty.
SubmitAllowedpropertyasitappliestotheADOAdapterobject.
SubmitAllowedpropertyasitappliestotheDAVAdapterobject.
SubmitAllowedpropertyasitappliestotheEmailAdapterobject.
SubmitAllowedpropertyasitappliestotheHWSAdapterobject.
SubmitAllowedpropertyasitappliestotheSharepointListAdapterobject.
SubmitAllowedpropertyasitappliestotheWebServiceAdapterobject.
SubmitAllowedpropertyasitappliestotheXMLFileAdapterobject.
![Page 921: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/921.jpg)
ShowAll
![Page 922: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/922.jpg)
SubmitAllowedProperty(SharePointListAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluecorrespondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).AlwaysreturnsFalsefortheSharePointListAdapterobject.
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoaSharepointListAdapterobject.
![Page 923: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/923.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 924: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/924.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 925: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/925.jpg)
ShowAll
![Page 926: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/926.jpg)
SubmitAllowedProperty(WebServiceAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluecorrespondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).ThedefaultvalueisFalse.
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 927: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/927.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 928: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/928.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 929: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/929.jpg)
ShowAll
![Page 930: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/930.jpg)
SubmitAllowedProperty(XMLFileAdapterObject)
Aread-onlypropertythatreturnsaBooleanvaluethatalwaysreturnsFalse,correspondingtothesubmitAllowedattributeintheformdefinitionfile(.xsf).
expression.SubmitAllowed
expressionRequired.AnexpressionthatreturnsareferencetoanXMLFileAdapterobject.
![Page 931: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/931.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 932: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/932.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 933: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/933.jpg)
TaskPanesProperty
Aread-onlypropertythatreturnsareferencetotheTaskPanescollectionthatisassociatedwiththeWindowobject.
expression.TaskPanes
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 934: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/934.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 935: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/935.jpg)
RemarksTheTaskPanespropertycanbeusedonlywiththeeditingwindowtypes;ifusedwithadesigningwindowtype,itwillreturnanerror.
![Page 936: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/936.jpg)
ExampleInthefollowingexample,theTaskPanespropertyoftheWindowobjectisusedtosetareferencetotheTaskPanescollection:
varobjTaskPanes;
objTaskPanes=Application.ActiveWindow.TaskPanes;
![Page 937: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/937.jpg)
ShowAll
![Page 938: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/938.jpg)
TimeoutProperty(ADOAdapterObject)
SetsorretrievesthelongintegertimeoutvalueforanADOAdapterobject.
expression.Timeout
expressionRequired.AnexpressionthatreturnsareferencetotheADOAdapterobject.
![Page 939: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/939.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 940: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/940.jpg)
RemarksTheTimeoutpropertyoftheADOAdapterobjectcontainsthetimeoutvaluethatisusedbytheADOdataadaptertoregulatethetimeusedtosubmitandretrievedatafromanActiveXDataObjects/OLEDBexternaldatasource.
NoteTheADOAdapterobjectislimitedtoworkonlywithMicrosoftSQLServerandMicrosoftAccessdatabases.
![Page 941: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/941.jpg)
ExampleInthefollowingexample,theTimeoutpropertyoftheADOAdapterobjectisusedtodisplaythetimeoutvalueoftheADOdataadapterinamessagebox:
varobjADOAdapter;
objADOAdapter=XDocument.DataObjects("CityList").QueryAdapter;XDocument.UI.Alert("SQLcommandtext:"+objADOAdapter.Timeout
![Page 942: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/942.jpg)
ShowAll
![Page 943: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/943.jpg)
TimeoutProperty(Index)
TheTimeoutpropertysetsorretrievesthetime-outvalueforsometypesofdataadapters.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaTimeoutpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheTimeoutproperty.
TimeoutpropertyasitappliestotheADOAdapterobject.
TimeoutpropertyasitappliestotheWebServiceAdapterobject.
![Page 944: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/944.jpg)
TimeoutProperty(WebServiceAdapterObject)
Setsorretrievesthelongintegertime-outvalueinsecondsforaWebServiceAdapterobject.
expression.Timeout
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 945: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/945.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 946: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/946.jpg)
RemarksThedefaultvalueoftheTimeoutpropertyoftheWebServiceAdapterobjectis30seconds.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 947: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/947.jpg)
ToProperty(EmailAdapterObject)
Returnsorsetsastringthatrepresentstherecipientsforthee-mailmessageassociatedwithaspecifiedEmailAdapterobject.
expression.To
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 948: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/948.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 949: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/949.jpg)
RemarksThevaluemustbeasemicolon-delimitedstringthatcanberesolvedintoalistofvalide-mailaddressesbytheuser'se-mailclient.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 950: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/950.jpg)
ExampleThisexampleshowshowtousetheTopropertyofaninstanceoftheEmailAdapterobjecttochangetherecipientsofane-mailmessagebeforetheEmailAdapterobjectissubmitted:
objEmailAdapter.To=objEmailAdapter.To+";[email protected]";
![Page 951: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/951.jpg)
ToProperty(Index)
TheTopropertyreturnsorsetstherecipientsofane-mailmessage.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaTopropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheToproperty.
TopropertyasitappliestotheEmailAdapterobject.
TopropertyasitappliestotheMailEnvelopeobject.
![Page 952: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/952.jpg)
ToProperty(MailEnvelopeObject)
Setsorretrievesastringcontainingthesend-tovalueusedintheMailEnvelopeobjectthatisassociatedwithaWindowobject.
expression.To
expressionRequired.AnexpressionthatreturnsareferencetotheMailEnvelopeobject.
![Page 953: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/953.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 954: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/954.jpg)
RemarksThevaluessetfortheTopropertyshouldbeastringofvalide-mailaddresses.Youcanspecifymultiplee-mailaddressesbyusing";"betweeneachofthem,asshowninthefollowingexample:
objEmail.To="[email protected];[email protected]"
![Page 955: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/955.jpg)
ExampleInthefollowingexample,theTopropertyoftheMailEnvelopeobjectisusedtosetthesend-tovalueofacustome-mailmessage:
functionCreateMailEnvelope::OnClick(eventObj){varobjEmail;
objEmail=Application.ActiveWindow.MailEnvelope;objEmail.To="[email protected]";objEmail.CC="[email protected]";objEmail.BCC="[email protected]";objEmail.Subject="Teste-mailmessage";objEmail.Visible=true;objEmail=null;}
![Page 956: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/956.jpg)
TopProperty
Aread/writepropertyoftypelongintegerthatspecifiestheverticalpositionofthewindowrepresentedbytheWindowobject,measuredinpoints.
expression.Top
expressionRequired.AnexpressionthatreturnsareferencetoaWindowobject.
![Page 957: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/957.jpg)
RemarksTheToppropertywillreturnanerrorifitissetonawindowthatisminimizedormaximized.
SettingtheToppropertytoapositionthatisoffthescreen,willcausetheentirewindowtobedisplayedonthescreen.
![Page 958: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/958.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 959: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/959.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 960: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/960.jpg)
TypeProperty(DocContextChangeEventObject)
Aread-onlypropertythatreturnsastringcontainingthetypeofcontextchangeeventthatoccurredwhentheOnContextChangeeventwastriggered.
expression.Type
expressionRequired.AnexpressionthatreturnsareferencetotheDocContextChangeEventobject.
![Page 961: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/961.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 962: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/962.jpg)
RemarksAsdescribedintheOnContextChangeeventtopic,theTypepropertyreturnsonlythevalue"ContextNode"forcontextchangesinMicrosoftInfoPath2003ServicePack1.Nevertheless,ifcodeinaneventhandlerperformsactionsthatdependoncurrentfunctionality,thatcodeshouldstillbedesignedtocheckthevalueoftheTypeproperty,becausefutureversionsofInfoPathmayusedifferentvaluesfordifferentcontextchanges.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 963: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/963.jpg)
ShowAll
![Page 964: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/964.jpg)
TypeProperty(ErrorObject)
Aread-onlypropertythatreturnsastringvaluecontainingthetypeofanErrorobject.
expression.Type
expressionRequired.AnexpressionthatreturnsareferencetotheErrorobject.
![Page 965: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/965.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 966: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/966.jpg)
RemarksTherearethreetypesorerrors:
SCHEMA_VALIDATIONDatavalidationfailedasaresultofanXMLSchema–definedconstraint.
SYSTEM_GENERATEDDatavalidationfailedasaresultofconstraintsdefinedintheformdefinition(.xsf)fileorasaresultofscriptingcodecallingtheReportErrormethodoftheDataDOMEventobject.
USER_SPECIFIEDDatavalidationfailedasaresultofacustomscriptingerrorusingtheAddmethodoftheErrorscollection.
![Page 967: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/967.jpg)
ExampleInthefollowingexample,theTypepropertyoftheErrorobjectisusedtodisplaythetypeofanerrorinamessagebox:
varobjError;
objError=XDocument.Errors(0);XDocument.UI.Alert("Errorname:"+objError.Type);
![Page 968: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/968.jpg)
ShowAll
![Page 969: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/969.jpg)
TypeProperty(HTMLTaskPaneObject)
Aread-onlypropertythatreturnsavalueindicatingthetypeoftaskpanerepresentedbytheHTMLTaskPaneobject,whichisalwaysacustomtaskpane.
expression.Type
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLTaskPaneobject.BasedontheXdTaskPaneTypeenumeration.
![Page 970: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/970.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 971: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/971.jpg)
RemarksTheTypepropertyoftheHTMLTaskPaneobjectisoneofthepropertiesinheritedfromtheTaskPaneobjectwhenthetypeofthetaskpaneis0,whichmeansthatitisthecustomtaskpane.
NoteTheTypepropertyisbasedontheXdTaskPaneTypeenumeration.TheseenumeratedvaluesarealsousedasargumentstotheItempropertyoftheTaskPanescollectionforreturningareferencetoaspecifiedtypeoftaskpane.
![Page 972: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/972.jpg)
ExampleInthefollowingexample,theItempropertyoftheTaskPanescollectionisusedtosetareferencetotheHTMLTaskPaneobjectthatrepresentsthecustomtaskpane.ThentheVisiblepropertyoftheHTMLTaskPaneobjectisusedtomakethecustomtaskpaneappearintheMicrosoftOfficeInfoPath2003userinterface.ThetypevalueofthecustomtaskpaneisthesameasthevaluepassedtotheItemproperty.
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes(0);objTaskPane.Visible=true;
![Page 973: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/973.jpg)
TypeProperty(Index)
TheTypepropertyreturnsavalueindicatingthetypeoftheobject.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaTypepropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheTypeproperty.
TypepropertyasitappliestotheDocContextChangeEventobject.
TypepropertyasitappliestotheErrorobject.
TypepropertyasitappliestotheHTMLTaskPaneobject.
TypepropertyasitappliestotheTaskPaneobject.
TypepropertyasitappliestotheWindowobject.
![Page 974: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/974.jpg)
ShowAll
![Page 975: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/975.jpg)
TypeProperty(TaskPaneObject)
Aread-onlypropertythatreturnsavalueindicatingthetypeoftaskpanerepresentedbytheTaskPaneobject.
expression.Type
expressionRequired.AnexpressionthatreturnsareferencetotheTaskPaneobject.BasedontheXdTaskPaneTypeenumeration.
![Page 976: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/976.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 977: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/977.jpg)
RemarksIftheTypepropertyoftheTaskPaneobjectreturns0,thetaskpaneisacustomtaskpane.IftheTypepropertyreturnsanyothervalue,thetaskpaneisabuilt-intaskpane.
NoteTheTypepropertyisbasedontheXdTaskPaneTypeenumeration.TheseenumeratedvaluesarealsousedasargumentstotheItempropertyoftheTaskPanescollectionforreturningareferencetoaspecifiedtypeoftaskpane.
![Page 978: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/978.jpg)
ExampleInthefollowingexample,theItempropertyoftheTaskPanescollectionisusedtosetareferencetotheTaskPaneobjectthatrepresentsthebuilt-inHelptaskpane.ThentheVisiblepropertyoftheTaskPaneobjectisusedtomaketheHelptaskpaneappearintheMicrosoftOfficeInfoPath2003userinterface.
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes.Item(4);objTaskPane.Visible=true;
![Page 979: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/979.jpg)
ShowAll
![Page 980: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/980.jpg)
TypeProperty(WindowObject)
Aread-onlypropertythatreturnsalongintegervaluethatindicatesthetypeofwindowthatisrepresentedbytheWindowobject.ThevaluereturnedisbasedontheXdWindowTypeenumeration.
expression.Type
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 981: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/981.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 982: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/982.jpg)
RemarksTheWindowobjectsrepresentthetwotypesofwindowsthatareusedintheInfoPathapplication:theeditingwindowthatisusedastheformareawhenauserfillsoutaform,andthedesigningwindowthatisusedasthedesignmodewhenauserdesignsaform.
![Page 983: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/983.jpg)
ExampleInthefollowingexample,theTypepropertyoftheWindowobjectisusedtodeterminethetypeofwindowthatisthecurrentlyactivewindow:
if(Application.ActiveWindow.Type==0)XDocument.UI.Alert("Theactivewindowisaneditingwindow.");elseXDocument.UI.Alert("Theactivewindowisadesigningwindow.");
![Page 984: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/984.jpg)
UIProperty
ReturnsareferencetotheMicrosoftOfficeInfoPath2003UIobject.
expression.UI
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 985: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/985.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 986: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/986.jpg)
RemarksTheUI(userinterface)objectprovidesanumberofmethodsthatcanbeusedtodisplaycustomandbuilt-indialogboxes.
![Page 987: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/987.jpg)
ExampleInthefollowingexample,theUIpropertyoftheXDocumentobjectisusedtodisplayasimplemessageboxusingtheAlertmethod:
XDocument.UI.Alert("Hereisthemessagetext.");
![Page 988: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/988.jpg)
ShowAll
![Page 989: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/989.jpg)
URIProperty(Index)
TheURIpropertyreturnsastringvaluethatspecifiesaUniformResourceIdentifier(URI)location.ThispropertyisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaURIpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheURIproperty.
URIpropertyasitappliestotheSolutionobject.
URIpropertyasitappliestotheXDocumentobject.
![Page 990: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/990.jpg)
ShowAll
![Page 991: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/991.jpg)
URIProperty(SolutionObject)
Aread-onlypropertythatreturnsastringvaluecontainingtheUniformResourceIdentifier(URI)ofaMicrosoftOfficeInfoPath2003formtemplate.
expression.URI
expressionRequired.AnexpressionthatreturnsareferencetoaSolutionobject.
![Page 992: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/992.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 993: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/993.jpg)
RemarksThevalueoftheURIpropertyoftheSolutionobjectcantaketheformofaUniformResourceLocator(URL)orUniformResourceName(URN),dependingonthelocationfromwhichtheformwasopened.
![Page 994: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/994.jpg)
ExampleInthefollowingexample,theURIpropertyoftheSolutionobjectisusedtodisplayaformtemplate'sURIinamessagebox:
XDocument.UI.Alert("URI:"+XDocument.Solution.URI);
![Page 995: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/995.jpg)
ShowAll
![Page 996: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/996.jpg)
URIProperty(XDocumentObject)
Aread-onlypropertythatreturnsastringvaluecontainingtheUniformResourceIdentifier(URI)ofaMicrosoftOfficeInfoPath2003form.
expression.URI
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 997: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/997.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 998: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/998.jpg)
RemarksTheURIpropertycanbeusedasthenameofaformwhenaccessedthroughtheXDocumentscollection,asshowninthefollowingexample:
Application.XDocuments(XDocument.URI);
![Page 999: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/999.jpg)
ExampleInthefollowingexample,theURIpropertyoftheXDocumentobjectisusedtodisplayaform'sURIinamessagebox:
XDocument.UI.Alert("URI:"+XDocument.URI);
![Page 1000: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1000.jpg)
UsableHeightProperty
Aread-onlypropertyoftypelongintegerthatreturnstheavailablescreenheight(themaximumnumberofpointstowhichyoucansettheheightofanInfoPathdocumentwindow.)
expression.UsableHeight
expressionRequired.AnexpressionthatreturnsareferencetoanApplicationobject.
![Page 1001: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1001.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1002: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1002.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1003: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1003.jpg)
UsableWidthProperty
Aread-onlypropertyoftypelongintegerthatreturnstheavailablescreenwidth(themaximumnumberofpointstowhichyoucansetthewidthofanInfoPathdocumentwindow.)
expression.UsableWidth
expressionRequired.AnexpressionthatreturnsareferencetoanApplicationobject.
![Page 1004: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1004.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1005: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1005.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1006: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1006.jpg)
UserProperty
Aread-onlypropertythatreturnsareferencetotheUserobject.
expression.User
expressionRequired.AnexpressionthatreturnsareferencetoanApplicationobject.
![Page 1007: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1007.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1008: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1008.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1009: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1009.jpg)
UtilProperty
Read-onlypropertythatreturnsareferencetotheUtilobject.
expression.Util
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1010: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1010.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1011: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1011.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1012: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1012.jpg)
ShowAll
![Page 1013: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1013.jpg)
VersionProperty(ApplicationObject)
Aread-onlypropertythatreturnsastringcontainingtheMicrosoftOfficeInfoPath2003versionnumber.
expression.Version
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
![Page 1014: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1014.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1015: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1015.jpg)
RemarksTheversionnumberoftheapplicationdoesnotcontainthename.Toobtainthenameofanapplication,usetheNamepropertyoftheApplicationobject.
Toobtaintheversionnumberofaformtemplate,usetheVersionpropertyoftheSolutionobject.
![Page 1016: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1016.jpg)
ExampleInthefollowingexample,theVersionpropertyoftheApplicationobjectisusedtodisplaytheapplication'sversionnumberinamessagebox:
XDocument.UI.Alert("Applicationversion:"+Application.Version);
![Page 1017: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1017.jpg)
VersionProperty(Index)
TheVersionpropertyreturnsastringvaluethatspecifiesaversionnumber.ThispropertyisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaVersionpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheVersionproperty.
VersionpropertyasitappliestotheApplicationobject.
VersionpropertyasitappliestotheSolutionobject.
![Page 1018: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1018.jpg)
ShowAll
![Page 1019: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1019.jpg)
VersionProperty(SolutionObject)
Aread-onlypropertythatreturnsastringcontainingtheversionnumberofaMicrosoftOfficeInfoPath2003formtemplate.
expression.Version
expressionRequired.AnexpressionthatreturnsareferencetotheSolutionobject.
![Page 1020: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1020.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1021: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1021.jpg)
RemarksToobtaintheversionnumberoftheInfoPathapplication,usetheVersionpropertyoftheApplicationobject.
![Page 1022: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1022.jpg)
ExampleInthefollowingexample,theVersionpropertyoftheSolutionobjectisusedtodisplayaformtemplate'sversionnumberinamessagebox:
XDocument.UI.Alert("Formtemplateversion:"+XDocument.Solution.
![Page 1023: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1023.jpg)
ViewProperty
Aread-onlypropertythatreturnsareferencetotheViewobjectassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.View
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1024: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1024.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1025: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1025.jpg)
RemarksTheViewobjectthattheViewpropertyaccessesrepresentstheviewthatiscurrentlyactiveinanInfoPathform.AfteryouhavesetareferencetotheViewobject,youcanaccessanyofitspropertiesandmethodstoprogrammaticallyinteractwiththeview.
![Page 1026: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1026.jpg)
ExampleInthefollowingexample,theViewpropertyoftheXDocumentobjectisusedtosetareferencetotheViewobject;then,usingtheNamepropertyoftheViewobject,itdisplaysthenameoftheviewinamessagebox:
varobjView;
objView=XDocument.View;XDocument.UI.Alert("Viewname:"+objView.Name);
![Page 1027: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1027.jpg)
ViewInfosProperty
Aread-onlypropertythatreturnsareferencetotheViewInfoscollectionassociatedwithaMicrosoftOfficeInfoPath2003form.
expression.ViewInfos
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1028: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1028.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1029: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1029.jpg)
RemarksTheViewInfoscollectioncontainsacollectionofViewInfoobjectsthatcontaininformationabouteachoftheviewsimplementedinanInfoPathform.
![Page 1030: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1030.jpg)
ExampleInthefollowingexample,theViewInfospropertyoftheXDocumentobjectisusedtosetareferencetotheViewInfoscollection;then,usingtheCountpropertyoftheViewInfoscollection,itloopsthroughthecollectiontodeterminethedefaultviewusingtheIsDefaultpropertyoftheViewInfoobject.Whenthedefaultviewisfound,thecodedisplaysthenameoftheviewinamessagebox.
varobjViewInfos;objViewInfos=XDocument.ViewInfos;for(i=0;i<objViewInfos.Count;i++){if(objViewInfos(i).IsDefault)XDocument.UI.Alert("Thedefaultviewis:"+objViewInfos(i).Name);}
![Page 1031: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1031.jpg)
ShowAll
![Page 1032: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1032.jpg)
VisibleProperty(HTMLTaskPaneObject)
SetsorretrievesaBooleanvalueindicatingthatthetaskpanerepresentedbytheHTMLTaskPaneobject,whichisalwaysacustomtaskpane,isvisibleintheMicrosoftOfficeInfoPath2003userinterface.
expression.Visible
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLTaskPaneobject.
![Page 1033: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1033.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1034: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1034.jpg)
RemarksTheVisiblepropertyoftheHTMLTaskPaneobjectisoneofthepropertiesinheritedfromtheTaskPaneobjectwhenthetypeofthetaskpaneis0,whichmeansthatitisthecustomtaskpane.
SettingtheVisiblepropertytoTruecausesthetaskpanetoappearintheuserinterface,andsettingittoFalsecausesittoberemovedfromtheuserinterface.
![Page 1035: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1035.jpg)
ExampleInthefollowingexample,theItempropertyoftheTaskPanescollectionisusedtosetareferencetotheHTMLTaskPaneobjectthatrepresentsthecustomtaskpane.ThentheVisiblepropertyoftheHTMLTaskPaneobjectisusedtomakethecustomtaskpaneappearintheInfoPathuserinterface.
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes(0);objTaskPane.Visible=true;
![Page 1036: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1036.jpg)
VisibleProperty(Index)
TheVisiblepropertyspecifiesorreturnsaBooleanvalueindicatingwhethertheuserinterfacecomponentrepresentedbytheobjectisvisibleintheuserinterface.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaVisiblepropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheVisibleproperty.
VisiblepropertyasitappliestotheHTMLTaskPaneobject.
VisiblepropertyasitappliestotheMailEnvelopeobject.
VisiblepropertyasitappliestotheTaskPaneobject.
![Page 1037: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1037.jpg)
VisibleProperty(MailEnvelopeObject)
SetsorretrievesaBooleanvaluethatindicatesthevisibilityofthecustome-mailmessagecreatedwiththeMailEnvelopeobjectthatisassociatedwithaWindowobject.
expression.Visible
expressionRequired.AnexpressionthatreturnsareferencetotheMailEnvelopeobject.
![Page 1038: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1038.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1039: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1039.jpg)
RemarksWhentheVisiblepropertyoftheMailEnvelopeobjectissettoTrue,thecustome-mailmessagewillbedisplayedusingthedefaulte-maileditor.Ifthereisnodefaulte-maileditorconfigured,theVisiblepropertywillreturnanerror.
![Page 1040: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1040.jpg)
ExampleInthefollowingexample,theVisiblepropertyoftheMailEnvelopeobjectisusedtodisplayacustome-mailmessageinthedefaulte-maileditor:
functionCreateMailEnvelope::OnClick(eventObj){varobjEmail;
objEmail=Application.ActiveWindow.MailEnvelope;objEmail.To="[email protected]";objEmail.CC="[email protected]";objEmail.BCC="[email protected]";objEmail.Subject="Teste-mailmessage";objEmail.Visible=true;objEmail=null;}
![Page 1041: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1041.jpg)
ShowAll
![Page 1042: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1042.jpg)
VisibleProperty(TaskPaneObject)
SetsorretrievesaBooleanvalueindicatingthatthetaskpanerepresentedbytheTaskPaneobjectisvisibleintheMicrosoftOfficeInfoPath2003userinterface.
expression.Visible
expressionRequired.AnexpressionthatreturnsareferencetotheTaskPaneobject.
![Page 1043: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1043.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1044: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1044.jpg)
RemarksSettingtheVisiblepropertytoTruecausesthetaskpanetoappearintheuserinterface,andsettingittoFalsecausesittoberemovedfromtheuserinterface.
![Page 1045: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1045.jpg)
ExampleInthefollowingexample,theItempropertyoftheTaskPanescollectionisusedtosetareferencetotheTaskPaneobjectthatrepresentsthebuilt-inHelptaskpane.ThentheVisiblepropertyoftheTaskPanesobjectisusedtomaketheHelptaskpaneappearintheInfoPathuserinterface.
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes(4);objTaskPane.Visible=true;
![Page 1046: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1046.jpg)
WidthProperty
Aread/writepropertyoftypelongintegerthatspecifiesthewidthofthewindowrepresentedbytheWindowobject,measuredinpoints.
expression.Width
expressionRequired.AnexpressionthatreturnsareferencetoaWindowobject.
![Page 1047: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1047.jpg)
RemarksTheWidthpropertywillreturnanerrorifitissetonawindowthatisminimizedormaximized.
TheWidthpropertycan'tbesettoavaluethatislargerthanthevaluereturnedbytheUsableWidthproperty.
![Page 1048: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1048.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1049: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1049.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1050: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1050.jpg)
ShowAll
![Page 1051: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1051.jpg)
WindowProperty(HTMLTaskPaneExternalObject)
Aread-onlypropertythatreturnsareferencetotheWindowobjectassociatedwithacustomtaskpane.
expression.Window
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLTaskPaneExternalobject.
![Page 1052: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1052.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1053: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1053.jpg)
RemarksTheWindowobjectreturnedbytheWindowpropertyrepresentsthecurrentlyactiveMicrosoftOfficeInfoPath2003windowthatisassociatedwiththecustomtaskpane.
![Page 1054: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1054.jpg)
ExampleInthefollowingexample,theHTMLTaskPaneExternalobjectisusedthroughtheexternalpropertyoftheDynamicHTML(DHTML)windowobjecttosetareferencetotheWindowobjectthatispartoftheInfoPathobjectmodel:
varobjWindow;
objWindow=window.external.Window;objWindow.MailEnvelope.Visible=true;
![Page 1055: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1055.jpg)
WindowProperty(Index)
TheWindowpropertyreturnsareferencetoaWindowobject.ThispropertyisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaWindowpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheWindowproperty.
WindowpropertyasitappliestotheHTMLTaskPaneExternalobject.
WindowpropertyasitappliestotheViewobject.
![Page 1056: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1056.jpg)
ShowAll
![Page 1057: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1057.jpg)
WindowProperty(ViewObject)
Aread-onlypropertythatreturnsareferencetothewindowobjectassociatedwithaview.
expression.Window
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
![Page 1058: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1058.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1059: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1059.jpg)
RemarksTheWindowobjectreturnedbytheWindowpropertyrepresentsthecurrentlyactiveMicrosoftOfficeInfoPath2003window.ItcanalsobeaccessedthroughtheWindowscollection.
![Page 1060: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1060.jpg)
ExampleInthefollowingexample,theWindowpropertyoftheViewobjectisusedtosetareferencetothefirsttaskpanecontainedintheTaskPanescollection:
varobjTaskPane;
objTaskPane=XDocument.View.Window.TaskPanes(0);
![Page 1061: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1061.jpg)
WindowsProperty
Aread-onlypropertythatreturnsareferencetotheWindowscollection.
expression.Windows
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
![Page 1062: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1062.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1063: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1063.jpg)
RemarksAfteryouhavesetareferencetotheWindowscollection,youcanuseitspropertiestoaccesseachoftheWindowobjectsthatitcontains.
NoteTheWindowscollectioncanbeusedonlytogetthecountoftheWindowobjectsthatitcontainsortoreturnareferencetoaWindowobject.ItcannotbeusedtoaddorremoveWindowobjects.
![Page 1064: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1064.jpg)
ExampleInthefollowingexample,theWindowspropertyisusedtoaccesstheCountpropertyoftheWindowscollectionanddisplaythevalueinamessagebox:
XDocument.UI.Alert("CountofWindows:"+Application.Windows.Count);
![Page 1065: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1065.jpg)
WindowStateProperty
Aread/writepropertyoftypeXdWindowStatethatreturnsorsetsthestateofthewindowrepresentedbytheWindowobject.
expression.WindowState
expressionRequired.AnexpressionthatreturnsareferencetoaWindowobject.
![Page 1066: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1066.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1067: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1067.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1068: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1068.jpg)
ShowAll
![Page 1069: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1069.jpg)
WSDLURLProperty
Aread-onlypropertythatreturnsastringvaluecontainingtheUniformResourceLocator(URL)oftheWebServicesDescriptionLanguage(WSDL)filefortheWebserviceassociatedwiththeWebServiceAdapterobject.
expression.WSDLURL
expressionRequired.AnexpressionthatreturnsareferencetotheWebServiceAdapterobject.
![Page 1070: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1070.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1071: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1071.jpg)
RemarksTheWSDLfileisanXMLdocumentthatdefinestheformatofmessagesanXMLWebserviceunderstands.TheservicedescriptionservesasanagreementthatdefinesthebehaviorofanXMLWebserviceandinstructspotentialclientsinhowtointeractwithit.ThebehaviorofanXMLWebserviceisdeterminedbymessagingpatternsthattheservicedefinesandsupports.ThesepatternsconceptuallydictatewhattheserviceconsumercanexpecttohappenwhenaproperlyformattedmessageissubmittedtotheXMLWebservice.
![Page 1072: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1072.jpg)
ExampleInthefollowingexample,theWSDLURLpropertyoftheWebServiceAdapterobjectisusedtodisplaytheURLoftheWSDLfilethatisusedfortheWebservice:
varobjWSAdapter;
objWSAdapter=XDocument.DataObjects("WebCityList").QueryAdapter;XDocument.UI.Alert("WSDLfileURL:"+objWSAdapter.WSDLURL
![Page 1073: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1073.jpg)
ShowAll
![Page 1074: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1074.jpg)
XDocumentProperty(DataDOMEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeDataDOMEventobjectduringadatavalidationevent.
expression.XDocument
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
![Page 1075: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1075.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1076: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1076.jpg)
RemarksAfteryouhavesetareferencetotheXDocumentobjectthattheXDocumentpropertyoftheDataDOMEventobjectreturns,youcanuseanyofthepropertiesandmethodsthatitprovides.
![Page 1077: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1077.jpg)
ExampleInthefollowingexample,theXDocumentpropertyoftheDataDOMEventobjectisusedtosetareferencetotheXDocumentobject:
varobjXDoc;
objXDoc=eventObj.XDocument;
![Page 1078: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1078.jpg)
XDocumentProperty(DocActionEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeDocActionEventobjectduringanOnClickevent.
expression.XDocument
expressionRequired.ReturnsareferencetotheDocActionEventobject.
![Page 1079: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1079.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1080: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1080.jpg)
RemarksAfteryouhavesetareferencetotheXDocumentobjectthattheXDocumentpropertyoftheDocActionEventobjectreturns,youcanuseanyofthepropertiesandmethodsthatitprovides.
![Page 1081: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1081.jpg)
ExampleInthefollowingexample,theXDocumentpropertyoftheDocActionEventobjectisusedtosetareferencetotheXDocumentobject:
varobjXDoc;
objXDoc=eventObj.XDocument;
![Page 1082: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1082.jpg)
XDocumentProperty(DocContextChangeEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeDocContextChangeEventobjectinanOnContextChangeevent.
expression.XDocument
expressionRequired.ReturnsareferencetoaDocContextChangeEventobject.
![Page 1083: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1083.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1084: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1084.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1085: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1085.jpg)
XDocumentProperty(DocEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeDocEventobjectduringanOnSwitchVieworOnAfterChangeevent.
expression.XDocument
expressionRequired.ReturnsareferencetotheDocEventobject.
![Page 1086: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1086.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1087: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1087.jpg)
RemarksAfteryouhavesetareferencetotheXDocumentobjectthattheXDocumentpropertyoftheDocEventobjectreturns,youcanuseanyofthepropertiesandmethodsthatitprovides.
![Page 1088: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1088.jpg)
ExampleInthefollowingexample,theXDocumentpropertyoftheDocEventobjectisusedtosetareferencetotheXDocumentobject:
varobjXDoc;
objXDoc=eventObj.XDocument;
![Page 1089: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1089.jpg)
XDocumentProperty(DocReturnEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeDocReturnEventobjectduringanOnLoadorOnSubmitRequestevent.
expression.XDocument
expressionRequired.ReturnsareferencetotheDocReturnEventobject.
![Page 1090: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1090.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1091: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1091.jpg)
RemarksAfteryouhavesetareferencetotheXDocumentobjectthattheXDocumentpropertyoftheDocReturnEventobjectreturns,youcanuseanyofthepropertiesandmethodsthatitprovides.
![Page 1092: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1092.jpg)
ExampleInthefollowingexample,theXDocumentpropertyoftheDocReturnEventobjectisusedtosetareferencetotheXDocumentobject:
varobjXDoc;
objXDoc=eventObj.XDocument;
![Page 1093: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1093.jpg)
ShowAll
![Page 1094: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1094.jpg)
XDocumentProperty(HTMLTaskPaneExternalObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectassociatedwithacustomtaskpane.
expression.XDocument
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLTaskPaneExternalobject.
![Page 1095: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1095.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1096: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1096.jpg)
RemarksTheXDocumentobjectreturnedbytheXDocumentpropertyrepresentstheform'sunderlyingXMLdocumentthatisassociatedwiththecustomtaskpane.
![Page 1097: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1097.jpg)
ExampleInthefollowingexample,theHTMLTaskPaneExternalobjectisusedthroughtheexternalpropertyoftheDynamicHTML(DHTML)windowobjecttosetareferencetotheXDocumentobjectthatispartoftheInfoPathobjectmodel:
varobjXDoc;
objXDoc=window.external.XDocument;objXDoc.View.SwitchView("View2");
![Page 1098: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1098.jpg)
XDocumentProperty(Index)
TheXDocumentpropertyreturnsareferencetoanXDocumentobject.ThispropertyisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelobjects.ClickanXDocumentpropertylinkbelowtoviewtheHelptopicforaspecificimplementationoftheXDocumentproperty.
XDocumentpropertyasitappliestotheDataDOMEventobject.
XDocumentpropertyasitappliestotheDocActionEventobject.
XDocumentpropertyasitappliestotheDocContextChangeEventobject.
XDocumentpropertyasitappliestotheDocEventobject.
XDocumentpropertyasitappliestotheDocReturnEventobject.
XDocumentpropertyasitappliestotheHTMLTaskPaneExternalobject.
XDocumentpropertyasitappliestotheMergeEventobject.
XDocumentpropertyasitappliestotheSaveEventobject.
XDocumentpropertyasitappliestotheVersionUpgradeEventobject.
XDocumentpropertyasitappliestotheWindowobject.
![Page 1099: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1099.jpg)
XDocumentProperty(InfoPathControlSiteObject)
RetrievesareferencetotheXDocumentobjectassociatedwiththeviewthatcontainsthecontrol.
expression.XDocument
expressionRequired.AnexpressionthatreturnsareferencetotheInfoPathControlobject.
![Page 1100: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1100.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1101: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1101.jpg)
RemarksTheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1102: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1102.jpg)
XDocumentProperty(MergeEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeMergeEventobjectinanOnMergeRequestevent.
expression.XDocument
expressionRequired.ReturnsareferencetoaMergeEventobject.
![Page 1103: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1103.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1104: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1104.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1105: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1105.jpg)
XDocumentProperty(SignEventObject)
RetrievesareferencetotheXDocumentobjectassociatedwiththeOnSignevent.
expression.XDocument
expressionRequired.AnexpressionthatreturnsareferencetoaSignEventobject.
![Page 1106: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1106.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1107: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1107.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1108: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1108.jpg)
XDocumentProperty(VersionUpgradeEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeVersionUpgradeEventobjectduringanOnVersionUpgradeevent.
expression.XDocument
expressionRequired.ReturnsareferencetotheVersionUpgradeEventobject.
![Page 1109: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1109.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1110: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1110.jpg)
RemarksAfteryouhavesetareferencetotheXDocumentobjectthattheXDocumentpropertyoftheVersionUpgradeEventobjectreturns,youcanuseanyofthepropertiesandmethodsthatitprovides.
![Page 1111: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1111.jpg)
ExampleInthefollowingexample,theXDocumentpropertyoftheVersionUpgradeEventobjectisusedtosetareferencetotheXDocumentobject:
varobjXDoc;
objXDoc=eventObj.XDocument;
![Page 1112: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1112.jpg)
ShowAll
![Page 1113: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1113.jpg)
XDocumentProperty(WindowObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththewindowthatisrepresentedbytheWindowobject.
expression.XDocument
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 1114: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1114.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1115: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1115.jpg)
RemarksTheXDocumentpropertycanbeusedonlywiththeeditingwindowtypes;ifusedwithadesigningwindowtype,itwillreturnanerror.Itwillalsoreturnanerrorifnoformisopenintheformarea.
![Page 1116: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1116.jpg)
ExampleInthefollowingexample,theXDocumentpropertyoftheWindowobjectisusedtosetareferencetotheform'sunderlyingXMLdocumentthatisassociatedwiththecurrentlyactivewindow:
varobjXDoc;
objXDoc=Application.ActiveWindow.XDocument;
![Page 1117: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1117.jpg)
XDocumentsProperty
Aread-onlypropertythatreturnsareferencetotheXDocumentscollection.
expression.XDocuments
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
![Page 1118: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1118.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1119: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1119.jpg)
RemarksAfteryouhavesetareferencetotheXDocumentscollection,youcanuseitspropertiestoaccesseachoftheXDocumentobjectsthatitcontains.
![Page 1120: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1120.jpg)
ExampleInthefollowingexample,theXDocumentspropertyisusedtoaccesstheCountpropertyoftheXDocumentscollectionanddisplaythevalueinamessagebox:
XDocument.UI.Alert("CountofXDocuments:"+Application.XDocuments
![Page 1121: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1121.jpg)
ShowAll
![Page 1122: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1122.jpg)
XPathProperty
Aread-onlypropertythatreturnstheXPathexpressionofaSignedDataBlockobject.
expression.XPath
expressionRequired.AnexpressionthatreturnsareferencetoaSignedDataBlockobject.
![Page 1123: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1123.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1124: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1124.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1125: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1125.jpg)
ShowAll
![Page 1126: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1126.jpg)
XPathNamespaceDeclarationsProperty
Aread-onlypropertycontainingthenamespacedeclarationsfortheXPathexpressionreturnedbytheXPathpropertyofaSignedDataBlockobject.
expression.XPathNamespaceDeclarations
expressionRequired.AnexpressionthatreturnsareferencetoaSignedDataBlockobject
![Page 1127: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1127.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1128: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1128.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1129: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1129.jpg)
ActivateMethod
ActivatesthewindowthatisrepresentedbytheWindowobject.
expression.Activate()
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
![Page 1130: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1130.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1131: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1131.jpg)
RemarksTheActivatemethodcanbeusedonlywiththeeditingwindowtypes;ifusedwithadesigningwindowtype,itwillreturnanerror.
Todeterminewhetherawindowistheactivewindow,usetheActivepropertyoftheWindowobject.
![Page 1132: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1132.jpg)
ExampleInthefollowingexample,theActivatemethodoftheWindowobjectisusedtoactivateawindowthatisassociatedwiththeview.Notethecheckofthewindowtype.
varobjWindow;
//Setareferencetoaview'sassociatedwindow.objWindow=XDocument.View.Window;if(objWindow.Type==0){//Makethewindowtheactivewindow.objWindow.Activate();}
objWindow=null;
![Page 1133: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1133.jpg)
ShowAll
![Page 1134: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1134.jpg)
AddMethod
AddsanErrorobjecttotheErrorscollectionandreturnsareferencetothenewErrorobject.
expression.Add(ByValvarNodeAsVariant,ByValbstrConditionNameAsString,ByValbstrShortErrorMessageAsString,[ByValbstrDetailedErrorMessageAsString],[ByVallErrorCodeAsLong],[ByValbstrTypeAsString="modeless"])AsError
expressionRequired.AnexpressionthatreturnsareferencetotheErrorscollection.
varNodeRequiredVariant.TheXMLnodethattheerrorwillbeassociatedwith.
bstrConditionNameRequiredString.Thenameoftheerror.
bstrShortErrorMessageRequiredString.Theshortmessagefortheerror.
bstrDetailedErrorMessageOptionalString.Thedetailedmessagefortheerror.
lErrorCodeOptionalLongInteger.Defaultvalueis0.Theerrorcodeoftheerror.
bstrTypeOptionalString.Defaultvalueis"modeless".Thetypeoferrorprocessing.Theothersupportedvalueis"modal".
returnsAreferencetothenewlycreatedErrorobject.
![Page 1135: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1135.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1136: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1136.jpg)
RemarksTheAddmethodisusedtocreatecustomerrormessagesinaMicrosoftOfficeInfoPath2003form.TherearetwotypesoferrorsthatcanbecreatedusingtheAddmethod:
modelessTheuserisnotifiedoftheerrorwithaninlinealertandcanchoosetoreturntothepreviousvaluewithanundooperation.
modalTheuserisnotifiedoftheerrorwithadialogboxalert.AfterclickingOKinthedialogboxalert,theerrorwillappearasaninlinealertandtheusercanchoosetoreturntothepreviousvaluewithanundooperation.
NoteCustomerrorscanalsobecreatedusingtheReportErrormethodoftheDataDOMEventobject.
![Page 1137: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1137.jpg)
ExampleInthefollowingexample,theAddmethodoftheErrorscollectionisusedtocreateacustomerrormessage:
varobjErrors;varobjError;
objErrors=XDocument.Errors;objError=objErrors.Add(MyXMLNode,"ValidationError","Thedataisinvalid.");
![Page 1138: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1138.jpg)
AlertMethod
DisplaysamessageboxwithacustomtextmessageinaMicrosoftOfficeInfoPath2003form.
expression.Alert(ByValbstrAlertStringAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheUIobject.
bstrAlertStringRequiredString.Thetexttobedisplayed.
![Page 1139: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1139.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1140: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1140.jpg)
RemarksTheAlertmethoddisplaysasimplemessageboxthatusesaninformationiconandanOKbutton.Onlythetextinthemessageboxcanbecustomized.
NoteCarriagereturnscanbeinsertedintothetextofthecustommessagebyusingthestandard\ncharacters.
![Page 1141: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1141.jpg)
ExampleInthefollowingexample,theAlertmethodoftheUIobjectisusedtodisplayamessagebox:
XDocument.UI.Alert("Custommessagetextgoeshere.");
![Page 1142: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1142.jpg)
AvgMethod
ReturnsaVariantthatistheaveragevalueofallofthenumericalelementsinanodeset.
expression.Avg(ByValpxmllistInputAsIXMLDOMNodeList)AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheMathobject.
pxmllistInputRequiredIXMLDOMNodeList.Thenodesetthatcontainsthevaluestobeaveraged.
returnsAVariantthatrepresentstheaveragevalueofallthenumericalelementsinanodeset.
![Page 1143: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1143.jpg)
Security0:Canbeaccessedwithoutrestrictions.
![Page 1144: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1144.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1145: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1145.jpg)
ExampleInthefollowingexample,thevariableaverageAgeissettotheaveragevalueofallofthenumericalelementsinthemy:agesnodeset.
varages=XDocument.DOM.selectNodes("//my:ages");varaverageAge=XDocument.Util.Math.Avg(ages);
![Page 1146: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1146.jpg)
BuildSQLFromXMLNodesMethod
ReturnsastringcontaininganSQLcommandtextfragmentusingthespecifiedXMLnode.
expression.BuildSQLFromXMLNodes(ByRefpXmlNodeAsIXMLDOMNode)AsString
expressionRequired.AnexpressionthatreturnsareferencetotheADOAdapterobject.
pXmlNodeRequiredObject.TheXMLnodetobeconvertedtoanSQLfragment.
returnsString.
![Page 1147: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1147.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1148: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1148.jpg)
RemarksThefragmentofSQLthattheBuildSQLFromXMLNodesmethodgeneratesisanSQLWHEREclauseintheformoffield=value.TheXMLnodethatyouuseforthepXmlNodeargumentshouldbeadescendantofthedfs:queryFieldsnode;whenyouhavetheSQLcommandtextfragment,youcanaddittotheexistingSQLcommandstringoftheADOAdapterobjectusingtheCommandproperty.
![Page 1149: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1149.jpg)
ExampleInthefollowingexample,theBuildSQLFromXMLNodesmethodoftheADOAdapterobjectisusedtocreateanSQLcommandtextfragmentbasedonaspecifiedXMLnode.ThisexampleisbasedonaformthatusestheOrderstableintheMicrosoftSQLServerNorthwindsampledatabase.
functionQueryGreaterThan(){varobjQueryFieldNode;varstrWhereClause;varstrOldCommand;varobjQueryFieldAttributes;varobjCurQueryFieldAttribute;
//BuildtheWHEREclausefromtheQueryFieldsintheform's//underlyingXMLDOM.objQueryFieldNode=XDocument.DOM.selectSingleNode("dfs:myFields/dfs:queryFields/q:Orders");strWhereClause=XDocument.QueryAdapter.BuildSQLFromXMLNodes(objQueryFieldNode);
//Replacethe'='signswith'>=',andappendtheclauseto//theSQLcommandtext.strWhereClause=strWhereClause.replace(/=/,">=");strOldCommand=XDocument.QueryAdapter.Command;if(strWhereClause!=""){XDocument.QueryAdapter.Command=strOldCommand+"where"+strWhereClause;}
![Page 1150: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1150.jpg)
//CleartheQueryFieldssotheWHEREclauseisn't//automaticallygenerated.objQueryFieldAttributes=objQueryFieldNode.attributes;while(objCurQueryFieldAttribute=objQueryFieldAttributes.nextNode()){objCurQueryFieldAttribute.text="";}//Performthequery.try{XDocument.Query();}catch(e){XDocument.UI.Alert("Failedtoquery.\n\n"+e.message);}//Resetthecommandsothatsubsequentqueriesarebasedon//thecorrectSQLcommandtextstring.XDocument.QueryAdapter.Command=strOldCommand;
//Cleanup.objQueryFieldNode=null;strWhereClause=null;strOldCommand=null;objQueryFieldAttributes=null;objCurQueryFieldAttribute=null;
}
![Page 1151: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1151.jpg)
ShowAll
![Page 1152: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1152.jpg)
CacheSolutionMethod(ApplicationObject)
Examinestheformtemplateinthecacheand,ifnecessary,updatesitfromthepublishedlocationoftheformtemplate.
expression.CacheSolution(ByValbstrSolutionURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetoanApplicationobject.
bstrSolutionURIRequiredString.ThestringthatspecifiestheUniformResourceIdentifier(URI)oftheformtemplate.Thisparametercanbespecifiedasaformdefinition(.xsf)fileoraformtemplate(.xsn)file.
![Page 1153: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1153.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1154: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1154.jpg)
RemarksIftheformtemplatethatcurrentlyexistsinthecachematchestheformtemplatefromthepublishedlocation,nocachingtakesplace.Ifthecomputerisofflineandtheformisalreadyinthecache,thecacheiskeptandnoupdatewilloccur.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1155: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1155.jpg)
ExampleInthefollowingVisualBasicforApplications(VBA)example,theCacheSolutionmethodoftheApplicationobjectisusedtocacheaformtemplate:
PublicSubCacheFormTemplate()
DimIAsIntegerDimobjAppAsObjectDimaryForms(2)AsString
'CreateareferencetotheApplicationobject.SetobjApp=CreateObject("InfoPath.Application")
'Populatethearraywithformtemplatelocations.aryForms(0)="\\MyServer\MyForms\MyForm.xsn"aryForms(1)="\\MyServer\MyForms\manifest.xsf"
'Loopthroughthearrayandcachetheformtemplates.ForI=0ToUBound(aryForms)-1objApp.CacheSolution(aryForms(I))NextI
EndSub
![Page 1156: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1156.jpg)
ShowAll
![Page 1157: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1157.jpg)
CacheSolutionMethod(ExternalApplicationObject)
Examinestheformtemplateinthecacheand,ifnecessary,updatesitfromthepublishedlocationoftheformtemplate.
expression.CacheSolution(ByValbstrSolutionURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrSolutionURIRequiredString.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)oftheformtemplate.Thisparametercanbespecifiedasaformdefinition(.xsf)fileoraformtemplate(.xsn)file
![Page 1158: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1158.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1159: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1159.jpg)
RemarksIftheformtemplatethatcurrentlyexistsinthecachematchestheformtemplatefromthepublishedlocation,nocachingtakesplace.Ifthecomputerisofflineandtheformisalreadyinthecache,thecacheiskeptandnoupdatewilloccur.
![Page 1160: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1160.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theCacheSolutionmethodoftheExternalApplicationobjectisusedtocacheaformtemplate:
PublicSubCacheFormTemplate()
DimIAsIntegerDimobjExternalAppAsObjectDimaryForms(2)AsString
'CreateareferencetotheExternalApplicationobject.SetobjExternalApp=CreateObject("InfoPath.ExternalApplication")
'Populatethearraywithformtemplatelocations.aryForms(0)="\\MyServer\MyForms\MyForm.xsn"aryForms(1)="\\MyServer\MyForms\manifest.xsf"
'Loopthroughthearrayandcachetheformtemplates.ForI=0ToUBound(aryForms)-1objExternalApp.CacheSolution(aryForms(I))NextI
EndSub
![Page 1161: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1161.jpg)
ShowAll
![Page 1162: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1162.jpg)
CacheSolutionMethod(Index)
TheCacheSolutionmethodexaminestheformtemplateinthecacheand,ifnecessary,updatesitfromthepublishedlocationoftheformtemplate.ThismethodisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaCacheSolutionmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheCacheSolutionmethod.
CacheSolutionmethodasitappliestotheApplicationobject.
CacheSolutionmethodasitappliestotheExternalApplicationobject.
![Page 1163: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1163.jpg)
ShowAll
![Page 1164: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1164.jpg)
CloseMethod(ExternalApplicationObject)
ClosesthespecifiedMicrosoftOfficeInfoPath2003form.
expression.Close(ByValbstrDocumentURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrDocumentURIRequiredString.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)ofaform.
![Page 1165: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1165.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1166: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1166.jpg)
RemarksTheClosemethodclosesthecurrentlyopenformwithoutquittingtheInfoPathapplication.WhenusingtheClosemethod,theformisclosedunconditionally,meaningthatanychangesmadetothedataintheformarenotsaved.
![Page 1167: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1167.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theClosemethodoftheExternalApplicationobjectisusedtoclosethecurrentlyopenform:
PublicSubAutomateInfoPathForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'OpenanInfoPathform.objIP.Open("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeenopened.")
'ClosetheInfoPathform.objIP.Close("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeenclosed.")
'QuittheInfoPathapplication.objIP.QuitMsgBox("TheInfoPathapplicationhasbeenclosed.")
SetobjIP=Nothing
EndSub
![Page 1168: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1168.jpg)
CloseMethod(Index)
TheClosemethodclosestheitemassociatedwiththespecifiedcollectionorobject.ThismethodisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollectionsandobjects.ClickaClosemethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheClosemethod.
ClosemethodasitappliestotheExternalApplicationobject.
ClosemethodasitappliestotheWindowobject.
ClosemethodasitappliestotheXDocumentscollection.
![Page 1169: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1169.jpg)
ShowAll
![Page 1170: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1170.jpg)
CloseMethod(WindowObject)
ClosesthewindowthatisrepresentedbytheWindowobject.
expression.Close([ByValbForceAsBoolean])
expressionRequired.AnexpressionthatreturnsareferencetotheWindowobject.
bForceOptionalBoolean.DefaultvalueisFalse.Determineswhetheropendocumentswillbesaved.
![Page 1171: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1171.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1172: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1172.jpg)
RemarksTheClosemethodwillclosetheassociatedwindowandtheformsthatitcontains.IfthebForceparameterissettoTrue,allformswillbeclosedwithoutsaving,eveniftheycontainchangessincetheywerelastsaved.IfsettoFalse,userswillbepromptedtosavetheirchanges.
TheClosemethodcanbeusedonlywiththeeditingwindowtypes;ifusedwithadesigningwindowtype,itwillreturnanerror.Inaddition,theClosemethodcanonlybeusedwiththeOnSubmitRequestandOnClickeventhandlers.Ifusedwithanyothertypeofeventhandler,itwillreturnanerror.
NoteIfthewindowbeingclosedistheonlywindowopeninMicrosoftOfficeInfoPath2003,theInfoPathapplicationwillalsobeclosed.
![Page 1173: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1173.jpg)
ExampleInthefollowingexample,theClosemethodoftheWindowobjectisusedtoclosethecurrentlyactivewindow,forcingasaveifchangesintheformhaveoccurred:
Application.ActiveWindow.Close(false);
![Page 1174: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1174.jpg)
ShowAll
![Page 1175: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1175.jpg)
CloseMethod(XDocumentsCollection)
ClosesthespecifiedMicrosoftOfficeInfoPath2003form.
expression.Close(ByValvarIndexAsVariant)
expressionRequired.AnexpressionthatreturnsareferencetotheXDocumentscollection.
varIndexRequiredVariant.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)ofaform,alongintegervaluethatspecifiesthepositionalindexofanXDocumentobjectwithintheXDocumentscollection,orareferencetoanXDocumentobject.
![Page 1176: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1176.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1177: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1177.jpg)
RemarksTheClosemethodclosesthecurrentlyopenformwithoutquittingtheInfoPathapplication.Theformisclosedunconditionally,meaningthatanychangesmadetothedataintheformarenotsaved.
![Page 1178: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1178.jpg)
ExampleInthefollowingexample,theClosemethodoftheXDocumentscollectionisusedtoclosethecurrentlyopenformusingthepositionalindexofanXDocumentobjectcontainedinthecollection:
Application.XDocuments.Close(0);
Alternatively,youcanpassareferencetoanXDocumentobject:
varobjXDoc;
objXDoc=Application.XDocuments(0);Application.XDocuments.Close(objXDoc);
![Page 1179: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1179.jpg)
ConfirmMethod
Displaysamessageboxwithbuttonsforinputfromauser.ThevaluethatisreturnedisoneoftheXdConfirmChoiceenumeratedconstants.
expression.Confirm(promptAsString,buttonsAsXdConfirmButtons)AsXdConfirmChoice
expressionRequired.AnexpressionthatreturnsareferencetotheUIobject
bstrPromptRequiredString.Thetextmessagetobedisplayed.
lButtonsRequiredXdConfirmButtons.Specifiesthenumberandtypeofbuttonstodisplay.YoumayspecifyanyofthevaluesoftheXdConfirmButtonsenumeration.
![Page 1180: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1180.jpg)
Security2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1181: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1181.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1182: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1182.jpg)
Remarks
ExampleInthefollowingexample,theConfirmmethodoftheUIobjectisusedtodisplayadialogboxwithYesandNobuttons:
XDocument.UI.Confirm("Doyouwishtocontinue?",4);
![Page 1183: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1183.jpg)
CreateMethod
CreatesanewSignatureobject.ThismethodcanbecalledonlyfromtheOnSigneventhandler.
expression.Create()
expressionRequired.AnexpressionthatreturnsaSignaturescollection.
![Page 1184: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1184.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1185: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1185.jpg)
RemarksThedigitalsignatureinnotactuallywrittentothefileuntiltheSignmethodiscalledforthenewlycreatedSignatureobject.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1186: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1186.jpg)
ShowAll
![Page 1187: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1187.jpg)
CreateDOMMethod
CreatesanewinstanceoftheXMLDocumentObjectModel(DOM)inmemory.
expression.CreateDOM()AsXMLDOMDocument
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
returnsAreferencetotheXMLDOM.
![Page 1188: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1188.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1189: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1189.jpg)
RemarksUsingtheCreateDOMmethodtocreateaninstanceoftheXMLDOMisequivalenttousingthefollowingmethodofcreatingaMicrosoftXMLCoreServices(MSXML)5.0DOMDocumentobject:
varobjDoc=newActiveXObject("Msxml2.DOMDocument.5.0");NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1190: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1190.jpg)
ExampleInthefollowingexample,theCreateDOMmethodoftheXDocumentobjectisusedtocreateaninstanceofXMLDOMandassignittoavariable.
varobjDOM=XDocument.CreateDOM();
![Page 1191: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1191.jpg)
ShowAll
![Page 1192: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1192.jpg)
DeleteMethod
DeletesthespecifiedErrorobjectfromtheErrorscollection.
expression.Delete(ByValvarNodeAsVariant,ByValbstrConditionNameAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheErrorscollection.
varNodeRequiredVariant.TheXMLDocumentObjectModel(DOM)nodeassociatedwiththeerror.
bstrConditionNameRequiredString.Thenameoftheerror.
![Page 1193: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1193.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1194: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1194.jpg)
RemarksTheDeletemethoddeletesalltheErrorobjectsintheErrorscollectionthatareassociatedwiththespecifiedXMLnodeandthathavethesamename.TodeletealloftheErrorobjectscontainedintheErrorscollection,usetheDeleteAllmethod.
NoteTheDeletemethodwillonlydeleteerrorsthatwerecreatedusingtheAddmethodoftheErrorscollection.Itcannotbeusedtodeleteerrorsthatoccurbecauseofschemaordatavalidationconstraints,orerrorsthatwerecreatedusingtheReportErrormethodoftheDataDOMEventobject.
![Page 1195: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1195.jpg)
ExampleInthefollowingexample,theDeletemethodoftheErrorscollectionisusedtodeletealltheerrorsbasedontheirassociatedXMLnodeandname:
XDocument.Errors.Delete(MyXMLNode,"ValidationError");
![Page 1196: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1196.jpg)
DeleteAllMethod
DeletesalloftheErrorobjectscontainedintheErrorscollection.
expression.DeleteAll()
expressionRequired.AnexpressionthatreturnsareferencetotheErrorscollection.
![Page 1197: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1197.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1198: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1198.jpg)
RemarksTodeleteaspecificErrorobjectfromtheErrorscollection,usetheDeletemethod.
NoteUnliketheDeletemethodthatwillonlydeleteerrorsthatwerecreatedusingtheAddmethodoftheErrorscollection,theDeleteAllmethodwilldeleteallerrorsintheErrorscollection,regardlessofhowtheywerecreated.
![Page 1199: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1199.jpg)
ExampleInthefollowingexample,theDeleteAllmethodoftheErrorscollectionisusedtodeletealltheerrorsthatitcontains:
XDocument.Errors.DeleteAll();
![Page 1200: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1200.jpg)
DisableAutoUpdateMethod
Disablesautomaticsynchronizationbetweenaform'sunderlyingXMLdocumentandtheassociatedViewobject.
expression.DisableAutoUpdate()
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
![Page 1201: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1201.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1202: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1202.jpg)
RemarksTheviewsinaMicrosoftOfficeInfoPath2003formareautomaticallysynchronizedwiththedatathatiscontainedinaform'sunderlyingXMLdocument.YoucanoverridethisbyusingtheDisableAutoUpdatemethod.Youmayneedtodothisforperformancereasons,suchaswhenyouareprogramaticallymakingmanychangestoaform'sunderlyingXMLdocumentandyoudonotwanttheviewtoberefresheduntilthechangesarecomplete.
AutomaticsynchronizationcanbeenabledusingtheEnableAutoUpdatemethodoftheViewobject.
![Page 1203: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1203.jpg)
ExampleInthefollowingexample,theDisableAutoUpdatemethodoftheViewobjectisusedtodisablesynchronizationbetweenaform'sunderlyingXMLdocumentandtheviewthatitisassociatedwith:
XDocument.View.DisableAutoUpdate();
![Page 1204: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1204.jpg)
EnableMethod
DefinesamethodthatmustbeprovidedbythedeveloperforInfoPathtocallwhenitneedstoenableordisableaninstanceofthecontrolinaview.
expression.Enable(vfEnabledAsBoolean)
expressionRequired.AnexpressionthatreturnsareferencetotheInfoPathControlobject.
vfEnabledRequired.ABooleanvaluethatspecifieswhetherthecontrolisenabled.
![Page 1205: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1205.jpg)
RemarksInfoPathwillcalltheEnablemethodtoenableordisablethecontrol,suchaswhentheviewisbeingrefreshedorclosed,whenthedocumentissignedandshouldnotbeedited,orwhenrulesareappliedtotheformthatmustdisablethecontrol.
TheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1206: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1206.jpg)
EnableAutoUpdateMethod
Enablesautomaticsynchronizationbetweenaform'sunderlyingXMLdocumentandtheassociatedViewobject.
expression.EnableAutoUpdate()
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
![Page 1207: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1207.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1208: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1208.jpg)
RemarksTheviewsinaMicrosoftOfficeInfoPath2003formareautomaticallysynchronizedwiththedatathatiscontainedinaform'sunderlyingXMLdocument.However,thiscanbeoverriddenusingtheDisableAutoUpdatemethod.Tore-enablesynchronization,usetheEnableAutoUpdatemethod.
![Page 1209: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1209.jpg)
ExampleInthefollowingexample,theEnableAutoUpdatemethodoftheViewobjectisusedtoenablesynchronizationbetweenaform'sunderlyingXMLdocumentandtheviewthatitisassociatedwith:
XDocument.View.EnableAutoUpdate();
![Page 1210: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1210.jpg)
EvalMethod
ReturnsaVariantcontainingthesetofresultscalculatedwhentheexpressionisappliedtoeachsetofelementsinthecontext.
expression.Eval(ByValnodeListAsIXMLDOMNodeList,ByValbstrExpressionasString)AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheMathobject.
nodeListRequiredIXMLDOMNodeList.Thenodethatsetsthecontextfortheexpression.
bstrExpressionRequiredString.Theexpressiontobeappliedtoeachsetofnodesinthespecifiedcontext.
![Page 1211: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1211.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1212: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1212.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1213: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1213.jpg)
ExampleInthefollowingexample,thevariablemaxCostissettothelargestcostvalue,wherecostiscalculatedbymultiplyingpricebyquantity.
varnodes=XDocument.DOM.selectNodes("/my:items/my:item");varmaxCost=XDocument.Util.Math.Max(XDocument.Util.Math.Eval
![Page 1214: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1214.jpg)
ShowAll
![Page 1215: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1215.jpg)
ExecuteActionMethod
ExecutesaMicrosoftOfficeInfoPath2003editingcommandagainstaform'sunderlyingXMLdocument,basedonthedataselectedintheviewthatisassociatedwiththeViewobject.
expression.ExecuteAction(ByValbstrActionAsString,[ByValvarXmlToEditAsVariant])
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
bstrActionRequiredString.Thenameoftheeditingactiontoperform.
varXmlToEditOptionalVariant.Thenameofthefieldorgrouptowhichtoapplytheeditingaction.ThisisequivalenttothevalueofthenameattributeinthexmlToEditelementoftheformdefinition(.xsf)file.
![Page 1216: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1216.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1217: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1217.jpg)
RemarksTheExecuteActionmethodisusedtoprogrammaticallyperformbuilt-inInfoPatheditingactionsagainstaform'sunderlyingXMLdocument,basedontheselectedcontextinaview.
Theactionthatisexecutedwillbethesameactionthatwouldbeusedwhenclickingonanequivalentmenuortoolbarbutton;namelyoneforwhichthebuttonelementinthe.xsffilehascorrespondingxmlToEditandactionattributes.Aswithusingabutton,theactionwillbebasedoncurrentselection:itwillactontheselectedcontext(andinthecasewheretheselectionwouldleadthebuttontobedisabled,thentheExecuteActionmethodwillhavenoeffect).
NoteItispossiblewithscriptingcodetofirstsettheselectioncontextbyusingtheSelectNodesorSelectTextmethodsoftheViewobject,thencallingtheExecuteActionmethodtoactonthatcontext.
TheExecuteActionmethodwillreturnanerrorforthefollowingreasons:
ThebstrActionparameterdoesnotcontainavalideditingcomponentname.
ThevarXmlToEditparameterdoesnotmatchaneditingcomponentthatisdefinedintheview.
ThevarXmlToEditparameterisrequiredforaspecificeditingaction.
Theeditingactionisnotapplicabletotheselectedcontext.
Validparametercombinations
NoteInsomecases,callingtheExecuteActionmethodfromtheOnClickeventforabuttoninaviewmaycauseanerror.Thisisbecausetheselectedcontextchangestothebuttonwhenthebuttonisclicked.Inthiscase,itisbettertouseabutton(orlink)onacustomtaskpane,toolbar,ormenutocalltheExecuteActionmethod.
![Page 1218: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1218.jpg)
ExampleInthefollowingexample,theExecuteActionmethodoftheViewobjectisusedtodeleteselecteddataandplaceitontheclipboard:
XDocument.View.ExecuteAction("Cut");
Inthefollowingexample,theExecuteActionmethodoftheViewobjectisusedtoinsertdatausingthexCollectioneditingcomponent,basedontheselectedcontext:
XDocument.View.ExecuteAction("xCollection::insert","group1_1");
![Page 1219: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1219.jpg)
ExportMethod
Exportstheviewtoafileofthespecifiedformat.
expression.Export(ByValbstrURLAsString,ByValbstrFormatAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
bstrURLRequiredString.Thedirectorylocationthattheexportedviewfilewillbewrittento.
bstrFormatRequiredString.Thetypeoffileformattoexportto.Onlythe"MHT"valueissupported.
![Page 1220: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1220.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1221: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1221.jpg)
RemarksIfusedinaformthatisnotfullytrusted,theExportmethodwillreturna"permissiondenied"error.
![Page 1222: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1222.jpg)
ExampleInthefollowingexample,theExportmethodoftheViewobjectisusedtoexportthecurrentview:
XDocument.View.Export("C:\\MyView","MHT");
![Page 1223: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1223.jpg)
ShowAll
![Page 1224: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1224.jpg)
ForceUpdateMethod
Forcessynchronizationbetweenaform'sunderlyingXMLdocumentandtheassociatedViewobject.
expression.ForceUpdate()
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
![Page 1225: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1225.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1226: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1226.jpg)
RemarksTheviewsinaMicrosoftOfficeInfoPath2003formareautomaticallysynchronizedwiththedatathatiscontainedinaform'sunderlyingXMLdocument.However,youcanforcesynchronizationtooccurusingtheForceUpdatemethod.Thisisalsousefulwhendatainasecondarydatasourcehaschangedandneedstoberefreshedintheview.
AutomaticsynchronizationcanbedisabledusingtheDisableAutoUpdatemethodandenabledusingtheEnableAutoUpdatemethod.
![Page 1227: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1227.jpg)
ExampleInthefollowingexample,theForceUpdatemethodoftheViewobjectisusedtoforcesynchronizationbetweenaform'sunderlyingXMLdocumentandtheviewthatitisassociatedwith:
XDocument.View.ForceUpdate();
![Page 1228: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1228.jpg)
ShowAll
![Page 1229: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1229.jpg)
FormatStringMethod
FormatsthespecifiedstringorXMLnodeaccordingtothespecifiedcategoryandoptionsparameters.
expression.FormatString(ByValvarInput,ByValbstrCategoryAsString,ByValbstrOptionsAsString)AsString
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
varInputRequiredStringorXMLnode.ThestringvalueorXMLnodetobeformatted.
bstrCategoryRequiredString.Thestringvaluethatspecifiesthecategoryusedforformatting.Valuesincludenumber,percentage,currency,date,time,anddatetime.
bstrOptionsRequiredString.Thestringvaluethatspecifiestheoptionsusedforformatting.Takestheformofacase-sensitivestringintheformat"optionName:value".
returnsString.
![Page 1230: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1230.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1231: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1231.jpg)
RemarksTheFormatStringmethodcanbeusedanywhereinyourscriptingcodeinwhichyouneedtochangetheformatofaspecifiedstring.ItmustbequalifiedwiththeApplicationobjectname,anditsreturnvaluemustbeassignedtoavariableorusedasanexpressionthatrequiresastringvalue.
ThefollowingsectionslistthevaluesthatmaybeusedforthebstrCategoryandbstrOptionsparameters:
Listofcategories
Listofoptions
![Page 1232: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1232.jpg)
ExampleInthefollowingexample,theFormatStringmethodoftheApplicationobjectisusedtoformatthespecifieddatestringintoalongdateformat:
Application.FormatString("2003-01-08","date","dateFormat:LongDate");
![Page 1233: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1233.jpg)
ShowAll
![Page 1234: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1234.jpg)
GenerateDataSetDiffGramMethod
ReturnsanXMLDataSet,containinganinlineschemadescribingthedataandtheDataSet'sDiffGram.
expression.GenerateDataSetDiffGram(ByValpNodeAsIXMLDocumentObject)AsIXMLDocumentObject
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
pNodeRequiredIXMLDocumentObject.AnXMLDocumentObjectModel(DOM)nodethatcontainstheXMLdataoftheDataSetwhoseDiffGramwillbecreated.
![Page 1235: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1235.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1236: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1236.jpg)
RemarksTheDiffGramfortheinputpNodeisgeneratedusingthesiblingnodeoriginalDatatocomputethedifferencebetweentheoriginalDataandtheinputpNode.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1237: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1237.jpg)
ShowAll
![Page 1238: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1238.jpg)
GetContextNodesMethod
ReturnsareferencetoanXMLNodescollectionthatispopulatedwithXMLDocumentObjectModel(DOM)nodesbasedonthecurrentcontext.ItconsistsofthesequenceofXMLDOMnodesthataremappedfromtheview,correspondingtothecurrentXSLTransformation(XSLT)node,startingatthecurrentselectionandwalkingupthroughtheviewancestorstotheBODYtag.expression.GetContextNodes([ByValvarNodeAsVariant],[ByValvarViewContextAsVariant])AsXMLNodes
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
varNodeOptionalVariant.AnXMLDOMnode.
varViewContextOptionalVariant.TheIDofthecontrolthatisusedforthecontext.
returnsAreferencetotheXMLNodescollection.
![Page 1239: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1239.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1240: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1240.jpg)
RemarksIfnoparametersareused,thecontextnodesarebasedonthecurrentselection.Ifparametersareused,thenthecontextnodesreturnedarethosethatwouldbereturnedbasedontheselectionthatwouldbeobtainedfromcallingtheSelectNodesmethodoftheViewobject.
![Page 1241: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1241.jpg)
ExampleInthefollowingpartialexamplefromtheStructuralEditingdevelopersampleform,theGetContextNodesmethodoftheViewobjectisusedtoreturnacollectionofXMLDOMnodesbasedonthecurrentcontext.ThenthecodeloopsthroughthecollectionofXMLDOMnodeslookingforaparticularnode.Whenitisfound,thecodecallsthecustomApplyDiscountToItemfunctiontoupdatethedatathatthenodecontains.
objContextNodes=XDocument.View.GetContextNodes();
//Scanthelistofcontextnodesforanitemnodeandifoneisfound//applythediscounttoit.for(vari=0;i<objContextNodes.Count;i++){if(objContextNodes.item(i).nodeName=="item"){ApplyDiscountToItem(objContextNodes.item(i),intPercentage);blnAppliedDiscount=true;break;}}
![Page 1242: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1242.jpg)
ShowAll
![Page 1243: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1243.jpg)
GetDataVariableMethod
Returnsastringcontainingthevalueofthespecifiedvariable,whichisapredefinedvariablestoredasaprocessinginstructionattributeintheform'sunderlyingXMLdocument.
expression.GetDataVariable(ByVallVariableNumberAsLong)AsString
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
lVariableNumberRequiredLong.Thenumberofthevariable.
returnsString.
![Page 1244: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1244.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1245: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1245.jpg)
RemarksIfthevariableisnotdefinedorisempty,theGetDataVariablemethodwillreturnanemptystring.Tosetavariable,usetheSetDataVariablemethodoftheXDocumentobject.
NoteInfoPathonlysupportsusingtheinitialViewvariable,whichisthevariableusedtospecifytheinitialviewdisplayedwhenaformisopened.Thenumberofthisvariableisalways1,anditsvaluemustbethenameofaviewwithintheform.
![Page 1246: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1246.jpg)
ExampleInthefollowingexample,theGetDataVariablemethodoftheXDocumentobjectisusedtoreturnthevalueofthefirstvariable:
varstrVariable1;strVariable1=XDocument.GetDataVariable(1);
![Page 1247: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1247.jpg)
ShowAll
![Page 1248: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1248.jpg)
GetDOMMethod
ReturnsareferencetotheXMLDocumentObjectModel(DOM)ofthespecifiedDataObjectobjectassociatedwiththeXDocumentobject.
expression.GetDOM(ByValbstrNameAsString)AsXMLDOMDocument
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
bstrNameRequiredString.ThenameofaDataObjectobject.
returnsAreferencetoanXMLDOMdocumentobject.
![Page 1249: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1249.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1250: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1250.jpg)
RemarksAfteryouhaveareferencetotheXMLDOMthattheGetDOMmethodreturns,youcanuseanyofthepropertiesandmethodsthattheXMLDOMsupportstomanipulatethedatathattheDOMcontains.
NoteFormoreinformationabouttheXMLDOM,seetheMSXML5.0SDKdocumentationintheMicrosoftScriptEditor(MSE)Helpsystem.
![Page 1251: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1251.jpg)
ExampleInthefollowingexample,theGetDOMmethodoftheXDocumentobjectisusedtosetareferencetotheXMLDOMthatitreturns,whichinthiscaseistheDataObjectobjectnamedCityDropDownList:
varobjXml;
objXml=XDocument.GetDOM("CityDropDownList");
![Page 1252: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1252.jpg)
GetNamedNodePropertyMethod
ReturnsthevalueofanamedpropertyforthespecifiedXMLnode,whichmustbeanonattributenodeinthemaindatasource.
expression.GetNamedNodeProperty(ByValvarMainDOMNodeAsVariant,ByValbstrPropertyNameAsString,ByValbstrDefaultValueAsString)AsString
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
varMainDOMNodeRequiredVariant.AnXMLnodecorrespondingtoanonattributenodeinthemaindatasource,forwhichanamedpropertyistobeset.
bstrPropertyNameRequiredString.Specifiesthenameofthepropertywhosevalueistobereturned.
bstrDefaultValueRequiredString.Specifiesthedefaultvaluetobereturnedifthepropertyhasnotbeenset.
returnsAstringcorrespondingtothecurrentvalueofthenamedpropertyforthespecifiedXMLnodeinthemaindatasource.IfthespecifiedpropertyhasnotbeensetforthisXMLnode,thespecifieddefaultstringisreturned.
![Page 1253: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1253.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1254: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1254.jpg)
RemarksNamedpropertiesallowuserstoassociatestringswithuser-definedpropertiesofXMLelementnodesinthemaindatasource.ThevalueofanamedpropertycanbesetbyusingtheSetNamedNodePropertymethod.UsetheGetNamedNodePropertymethodtoreadthevalueofanamedproperty.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1255: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1255.jpg)
ExampleThefollowingexampledemonstratessettingandgettingthevalueofanamedproperty(withthename"cost")ofanXMLnode(called"item"):
varobjXMLNode=XDocument.DOM.selectSingleNode("/items/item");
varstrTest=XDocument.GetNamedNodeProperty(objXMLNode,'cost','Valuenotset');
//Thevalueofthe"cost"namedpropertyissetto100.XDocument.SetNamedNodeProperty(objXMLNode,'cost','100');
strTest=XDocument.GetNamedNodeProperty(objXMLNode,'cost','Valuenotset');
InthefollowingXSLexample,the"cost"namedpropertyoftheitemnodeisdisplayed:
<xsl:value-ofselect="xdXDocument:GetNamedNodeProperty(item,'cost','empty')"/>
![Page 1256: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1256.jpg)
ShowAll
![Page 1257: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1257.jpg)
GetSelectedNodesMethod
ReturnsareferencetoanXMLNodescollectionthatispopulatedwithXMLDocumentObjectModel(DOM)nodesbasedonthecurrentselectionofitemsinaview.
expression.GetSelectedNodes()AsXMLNodes
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
returnsAreferencetotheXMLNodescollection.
![Page 1258: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1258.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1259: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1259.jpg)
RemarksIfnoitemsareselectedinaview,orifonlytextisselected,thentheGetSelectedNodesmethodreturnsanemptycollection.
![Page 1260: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1260.jpg)
ExampleInthefollowingexample,theGetSelectedNodesmethodoftheViewobjectisusedtosetareferencetoacollectionofXMLDOMnodesbasedonwhatiscurrentlyselectedintheview.Thenthecodedetermineswhethernodeswerereturnedand,iftheywere,displaysinformationaboutthefirstnodefoundintheXMLNodescollectioninamessagebox.
objXMLNodes=XDocument.View.GetSelectedNodes();
if(objXMLNodes.Count>0){XDocument.UI.Alert(objXMLNodes(0).nodeName+"\n\n"+objXMLNodes(0).text);}
![Page 1261: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1261.jpg)
ImportDOMMethod
ImportsthespecifiedXMLdataintothecurrentform.
expression.ImportDOM(ByValpxDocAsIXMLDocumentObject)
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
pxDocRequiredIXMLDocument.TheXMLdatathatistobeimported(merged)intothecurrentlyopenform.
![Page 1262: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1262.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1263: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1263.jpg)
RemarksUsingtheobjectmodeltoimportaformprogrammaticallyisequivalenttoperformingamergeoperationusingtheMergeFormscommandontheFilemenuinInfoPath.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1264: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1264.jpg)
ExampleInthefollowingexample,theImportDOMmethodoftheXDocumentobjectisusedtoimportaformfromtheOnMergeRequesteventhandler:
XDocument::OnMergeRequest(eventObj){XDocument.ImportDOM(eventObj.DOM);eventObj.ReturnStatus=true;}
![Page 1265: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1265.jpg)
ShowAll
![Page 1266: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1266.jpg)
ImportFileMethod
Importsthespecifiedformintothecurrentform.
expression.ImportFile(ByValbstrFileURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
bstrFileURIRequiredString.TheUniformResourceIdentifier(URI)oftheformthatistobeimported(merged)intothecurrentlyopenform.
![Page 1267: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1267.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1268: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1268.jpg)
RemarksUsingtheobjectmodeltoprogrammaticallyimportaformisequivalenttoperformingamergeoperationintheuserinterface.
![Page 1269: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1269.jpg)
ExampleInthefollowingexample,theImportFilemethodoftheXDocumentobjectisusedtoimportaform:
XDocument.ImportFile("C:\SomeOtherForm.xml");
![Page 1270: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1270.jpg)
InitMethod
DefinesamethodthatmustbeprovidedbythedevelopertoperformanyinitializationroutinesrequiredwhenaninstanceofthecontrolisaddedtoanInfoPathform.
expression.Init(pControlSiteAsInfoPathControlSite)
expressionRequired.AnexpressionthatreturnsareferencetotheInfoPathControlobject.
pControlSiteRequired.AninstanceoftheInfoPathControlSiteobject.
![Page 1271: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1271.jpg)
RemarksInfoPathcallstheInitmethodwhenauseraddsaninstanceofthecontroltoaview.InfoPathpassesaninstanceoftheInfoPathControlSiteobjecttotheInitmethodwhenthecontrolisinitialized.TheInfoPathControlSiteobjectprovidestheNodepropertythatprovidesaccesstotheXMLDOMnodetowhichthecontrolisbound,andtheXDocumentpropertyforaccessingtheXDocumentobjectassociatedwithaform,whichinturnprovidesaccesstothefullInfoPathobjectmodel.
TheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1272: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1272.jpg)
ShowAll
![Page 1273: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1273.jpg)
IsCurrentUserMethod
ReturnsTrueifthecurrentusermatchesthespecifiedusername.
expression.IsCurrentUser(ByValbstrUsernameAsString)AsBoolean
expressionRequired.AnexpressionthatreturnsareferencetotheUserobject.
bstrUsernameRequiredString.Theusernameintheformatof"domain\username."
returnsABooleanvalueindicatingwhetherthespecifiedusernamematchesthenameofthecurrentuser.
![Page 1274: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1274.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1275: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1275.jpg)
RemarksEventhoughtheIsCurrentUsermethodismarkedassecuritylevel0,itisnotalwaysaccessible.WhenacallismadetotheIsCurrentUsermethod,InfoPathfirstperformsasecuritychecktodetermineifaccesstothismethodisallowed.Thesecuritycheckconfirmswhetherthecallingcodeistrustedornotanditdeterminesthelocationofthecallingcode.
Ifthecallingcodeistrusted(asitiswhen,forexample,theIsCurrentUsermethodiscalledfromaninstalledorsignedInfoPathformtemplate,orfromtrustedexternalcode,suchasanexecutablefileonthelocalcomputer),InfoPathwillallowfullaccesstotheIsCurrentUsermethod.
Ifthecallingcodeisnottrusted(asinthecircumstanceofacallcomingfromadomain-basedInfoPathformtemplateorfromscriptexecutinginMicrosoftInternetExplorer),InfoPathfirstcheckswherethecallisbeingmadefrom.IfthecallisfromcodethatisnottrustedinanInfoPathformtemplateataURLsuchas"http://www.contoso.com/example.xsn",thenthecallisfromtheInternetzone.InfoPathdeniesaccesstotheIsCurrentUsermethodforallcallsthatarenottrustedcomingfromtheInternetzone.IfthecallisfromaURLsuchas"http://contoso/example.xsn",thenthecallisfromtheIntranetzone.ForacallthatisnottrustedfromtheIntranetzone,InfoPathcheckswhethertheInternetExploreruserauthenticationsettingsallowautomaticlogon(intheIntranetzoneonlyorforeverylogon).IfInternetExplorerisconfiguredforautomaticlogon,thenInfoPathallowsfullaccesstotheIsCurrentUsermethod.Otherwise,accesstotheIsCurrentUsermethodisdenied.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1276: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1276.jpg)
ExampleInthefollowingexample,theIsCurrentUsermethodoftheUserobjectisusedtodetermineifthecurrentuserequals"UserDomain\NancyDavilio".
varfUserMatched;fUserMatched=Application.User.IsCurrentUser("UserDomain\NancyDavolio")
![Page 1277: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1277.jpg)
ShowAll
![Page 1278: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1278.jpg)
IsDestinationReachableMethod
ReturnsaBooleanvalueindicatingwhetherthespecifiedUniformResourceLocator(URL),universalnamingconvention(UNC)path,orIPaddressofthedestinationcomputercanbeconnectedtofromtheclientcomputer.
expression.IsDestinationReachable(ByValbstrDestinationAsString,[ByValbstrBehaviorAsString)AsBoolean
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
bstrDestinationRequiredString.Specifiesthelocationtocheckfornetworkconnectivity.IPaddresses,aUNCpaths,oraURLsareacceptablevalues.
returnsABooleanvalueindicatingwhetherthedestinationisreachable.Trueifthespecifieddestinationcanbeconnectedto;otherwise,False.
![Page 1279: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1279.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
NoteIfanIPaddressisspecified,thesecuritylevelforthismethodbecomeslevel3.ItisnotpossibletodeterminethedomainfromtheIPaddress,thereforethecallermusthavethefulltrustpermission.
![Page 1280: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1280.jpg)
RemarksForUNCandURLstrings,validvaluesarethoseincludingonlytheservername,forexamplehttp://MyServeror\\MyServer.Valuessuchashttp://MyServer/MyVirtualDirectoryor\\MyServer\MySharearenotconsideredvalid.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1281: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1281.jpg)
ShowAll
![Page 1282: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1282.jpg)
IsUserMemberOfMethod
ReturnsaBooleanvaluethatindicateswhetherthecurrentuserisamemberofthespecifiedgroup.
expression.IsUserMemberOf(ByValbstrGroupnameAsString)AsBoolean
expressionRequired.AnexpressionthatreturnsareferencetotheUserobject.
bstrGroupnameRequiredString.Thegroupnameintheformatof"domain\groupname."
![Page 1283: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1283.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1284: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1284.jpg)
RemarksEventhoughtheIsUserMemberOfmethodismarkedassecuritylevel0,itisnotalwaysaccessible.WhenacallismadetotheIsUserMemberOfmethod,InfoPathfirstperformsasecuritychecktodetermineifaccesstothismethodisallowed.Thesecuritycheckconfirmswhetherthecallingcodeistrustedornotanditdeterminesthelocationofthecallingcode.
Ifthecallingcodeistrusted(asitiswhen,forexample,theIsUserMemberOfmethodiscalledfromaninstalledorsignedInfoPathformtemplate,orfromtrustedexternalcode,suchasanexecutablefileonthelocalcomputer),InfoPathwillallowfullaccesstotheIsUserMemberOfmethod.
Ifthecallingcodeisnottrusted(asinthecircumstanceofacallcomingfromadomain-basedInfoPathformtemplateorfromscriptexecutinginMicrosoftInternetExplorer),InfoPathfirstcheckswherethecallisbeingmadefrom.IfthecallisfromcodethatisnottrustedinanInfoPathformtemplateataURLsuchas"http://www.contoso.com/example.xsn",thenthecallisfromtheInternetzone.InfoPathwilldenyaccesstotheIsUserMemberOfmethodforallcallsthatarenottrustedcomingfromtheInternetzone.IfthecallisfromaURLsuchas"http://contoso/example.xsn",thenthecallisfromtheIntranetzone.ForacallthatisnottrustedfromtheIntranetzone,InfoPathcheckswhethertheInternetExploreruserauthenticationsettingsallowautomaticlogon(intheIntranetzoneonlyorforeverylogon).IfInternetExplorerisconfiguredforautomaticlogon,thenInfoPathcheckstheuser'sgroupmembership.Ifthegroupmembershipispublic,InfoPathallowsfullaccesstotheIsUserMemberOfmethod.Ifthegroupmembershipisnotfullypublic,InfoPathhidestheresult.Thatis,InfoPathtreatsthegroupmembershipasifitwerenotvisible.ThereturnvalueinthiscaseisalwaysFalsebecausethegroupmembershipisnotpublic.InfoPathdoesnotreportthataccessisdenied.
NoteGroupmembershipinformationisfullypublicifaccesstoitisallowedandtheinformationisvisiblebyallnon-anonymoususers.Ifevenasinglenon-anonymoususerhasbeenspecificallydeniedaccesstomembershipinformation,thenthegroupmembershipinformationisnot
![Page 1285: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1285.jpg)
fullypublic.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1286: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1286.jpg)
ExampleInthefollowingexample,theIsUserMemberOfmethodoftheUserobjectisusedtodetermineifthecurrentuserisamemberofthe"GroupDomain\Administrators"group.
varfGroupMatched;fGroupMatched=Application.User.IsUserMemberOf("GroupDomain\Administrators")
![Page 1287: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1287.jpg)
MatchMethod
ReturnsaBooleanvaluethatindicateswhetherthetestmatchesthespecifiedpattern.
expression.Match(ByValbstrValueAsString,ByValbstrPatternAsString)AsBoolean
bstrValueRequiredString.Thestringtotestagainstthepattern.
bstrPatternRequiredString.Thepatterntouse.
returnsABooleanvaluethatindicateswhetherthestringmatchesthepattern.
![Page 1288: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1288.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1289: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1289.jpg)
RemarksTheMatchmethodcanbeusedtotestanystringagainstaregularexpression.TheregularexpressionmustconformtotheW3C'sXMLSchemaspecificationforregularexpressions(http://www.w3.org/TR/xmlschema-2/#regexs).
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
NoteTheXMLSchemaspecificationforregularexpressionsisdifferentfromregularexpressionsinPerl.
![Page 1290: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1290.jpg)
ExampleInthefollowingexample,thevariableisSSNValidissettoavaluethatindicateswhetherornotthevaluestoredinthemy:SSNnodeisalegalSocialSecurityNumber:
varSSN=XDocument.DOM.selectSingleNode(“//my:SSN”);varisSSNValid=XDocument.Util.Match(SSN.text,"\\d\\d\\d-\\d\\d-\\d\\d\\d\\d");
![Page 1291: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1291.jpg)
MaxMethod
ReturnsaVariantthatisthelargestvalueofallofthenumericalelementsinanodeset.
expression.Max(ByValpxmllistInputAsIXMLDOMNodeList)AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheMathobject.
pxmllistInputRequiredIXMLDOMNodeList.Thenodesettosearchforthelargestvalue.
returnsAVariantthatrepresentsthelargestvalueofallthenumericalelementsinanodeset.
![Page 1292: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1292.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1293: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1293.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1294: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1294.jpg)
ExampleInthefollowingexample,maxAgeissettothemaximumvalueofallofthenumericalelementsinthemy:agesnodeset:
varages=XDocument.DOM.selectNodes("//my:ages");varmaxAge=XDocument.Util.Math.Max(ages);
![Page 1295: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1295.jpg)
MinMethod
ReturnsaVariantthatisthesmallestvalueofallofthenumericalelementsinanodeset.
expression.Min(ByValpxmllistInputAsIXMLDOMNodeList)AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheMathobject.
pxmllistInputRequiredIXMLDOMNodeList.Thenodesettosearchforthesmallestvalue.
returnsAVariantthatrepresentsthesmallestvalueofallthenumericalelementsinanodeset.
![Page 1296: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1296.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1297: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1297.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1298: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1298.jpg)
ExampleInthefollowingexample,thevariableminAgeissettotheminimumvalueofallofthenumericalelementsinthemy:agesnodeset:
varages=XDocument.DOM.selectNodes("//my:ages");varmaxAge=XDocument.Util.Math.Min(ages);
![Page 1299: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1299.jpg)
ShowAll
![Page 1300: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1300.jpg)
NavigateMethod
LoadsthespecifiedHTMLdocumentintotheMicrosoftOfficeInfoPath2003customtaskpane.
expression.Navigate(ByValbstrURLAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheHTMLTaskPaneobject.
bstrURLRequiredString.TheUniformResourceLocator(URL)oftheHTMLdocumenttonavigateto.
![Page 1301: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1301.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1302: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1302.jpg)
RemarksTheNavigatemethodoftheHTMLTaskPaneobjectisoneofthemethodsinheritedbytheTaskPaneobjectwhenthetypeofthetaskpaneis0,whichmeansthatitisthecustomtaskpane.
NoteTheNavigatemethodcannotbecalledduringanOnLoadeventbecausetheviewisnotyetloadedwhenthiseventoccurs,andtaskpanesareassociatedwiththeview.
![Page 1303: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1303.jpg)
ExampleInthefollowingexample,theNavigatemethodoftheHTMLTaskPaneobjectisusedtoloadanHTMLdocumentintothecustomtaskpane.TheHTMLdocumentthatitloadsisonethatisincludedintheformfilesoftheformtemplate:
varobjTaskPane;
//Setareferencetothecustomtaskpane.objTaskPane=XDocument.View.Window.TaskPanes(0);objTaskPane.Navigate("taskpane2.htm");
![Page 1304: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1304.jpg)
ShowAll
![Page 1305: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1305.jpg)
NewMethod(ExternalApplicationObject)
CreatesanewMicrosoftOfficeInfoPath2003formbasedonaspecifiedform.
expression.New(ByValbstrDocumentURIAsString,[ByValdwBehaviorAsLong=1])
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrDocumentURIRequiredString.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)ofaform.
dwBehaviorOptionalLong.Defaultvalueis1.Alongvaluethatspecifieshowtheformshouldbeopened.ThevaluesarebasedontheXdDocumentVersionModeenumeration.
![Page 1306: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1306.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1307: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1307.jpg)
RemarksTheNewmethodcanbeusedtoonlycreateanewformbasedonanexistingform;itcannotbeusedtocreateanewformbasedonaformtemplate.Tocreateaformfromaformtemplate,usetheNewFromSolutionmethodoftheExternalApplicationobject.
WhenyouusetheNewmethod,InfoPathisopenedandthenewformisreadytobefilledout.
NoteYoucannotusetheClosemethodoftheExternalApplicationobjecttocloseafromthathasbeenopenedwiththeNewmethod.WhentheNewmethodcreatesaform,thenameofthatformisnotyetknown.
![Page 1308: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1308.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theNewmethodoftheExternalApplicationobjectisusedtocreateanewformbasedonaspecifiedform:
PublicSubCreateFromForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'CreateanInfoPathform.objIP.New("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeencreated.")
SetobjIP=Nothing
EndSub
![Page 1309: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1309.jpg)
NewMethod(Index)
TheNewmethodcreatesanewitembasedonaform.ThismethodisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelcollectionsandobjects.ClickaNewmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheNewmethod.
NewmethodasitappliestotheExternalApplicationobject.
NewmethodasitappliestotheXDocumentscollection.
![Page 1310: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1310.jpg)
ShowAll
![Page 1311: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1311.jpg)
NewMethod(XDocumentsCollection)
CreatesanewMicrosoftOfficeInfoPath2003formbasedonthespecifiedform.
expression.New(ByValvarURIAsVariant,[ByValdwBehaviorAsLong=1])AsXDocument
expressionRequired.AnexpressionthatreturnsareferencetotheXDocumentscollection.
varURIRequiredVariant.SpecifiestheUniformResourceIdentifier(URI)ofaform.
dwBehaviorOptionalLong.Defaultvalueis1.Alongvaluethatspecifieshowtheformshouldbeopened.ThevaluesarebasedontheXdDocumentVersionModeenumeration.
returnsAreferencetoanXDocumentobject.
![Page 1312: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1312.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1313: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1313.jpg)
RemarksTheNewmethodcanonlybeusedtocreateanewformbasedonanexistingform;itcannotbeusedtocreateanewformbasedonaformtemplate.Tocreateaformfromaformtemplate,usetheNewFromSolutionmethodoftheXDocumentscollection.
WhenyouusetheNewmethod,thenewformopensinInfoPathandisreadytobefilledout.
NoteIfyouusetheoptionaldwBehaviorargumentintheNewmethod,youcanonlypassthenumericalvalueoftheXdDocumentVersionModeenumeration.BecauseInfoPathusesscriptinglanguagesforworkingwiththeobjectmodel,namedvaluescannotbeused.
![Page 1314: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1314.jpg)
ExampleInthefollowingexample,theNewmethodoftheXDocumentscollectionispassedtheURIofanexistingform,andanewformiscreatedanditsassociatedXDocumentobjectreturned:
varobjXDoc;
objXDoc=Application.XDocuments.New("C:\\MyForm.xml");
![Page 1315: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1315.jpg)
ShowAll
![Page 1316: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1316.jpg)
NewADODBConnectionMethod
CreatesandreturnsareferencetoanemptyActiveXDataObjects(ADO)Connectionobject.
expression.NewADODBConnection()ADODB.Connection
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
returnsAreferencetoanADOConnectionobject.
![Page 1317: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1317.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1318: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1318.jpg)
RemarksIftheformisnotfullytrusted,theNewADODBConnectionmethodwillreturna"permissiondenied"error.
![Page 1319: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1319.jpg)
ExampleInthefollowingexample,theNewADODBConnectionmethodoftheApplicationobjectisusedtosetareferencetoanemptyADOConnectionobject:
varobjADOConnection;
objADOConnection=Application.NewADODBConnection();
![Page 1320: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1320.jpg)
ShowAll
![Page 1321: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1321.jpg)
NewADODBRecordsetMethod
CreatesandreturnsareferencetoanemptyActiveXDataObjects(ADO)Recordsetobject.
expression.NewADODBRecordset()ADODB.Recordset
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
returnsAreferencetoanADORecordsetobject.
![Page 1322: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1322.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1323: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1323.jpg)
RemarksIftheformisnotfullytrusted,theNewADODBRecordsetmethodwillreturna"permissiondenied"error.
![Page 1324: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1324.jpg)
ExampleInthefollowingexample,theNewADODBRecordsetmethodoftheApplicationobjectisusedtosetareferencetoanemptyADORecordsetobject:
varobjADORecordset;
objADORecordset=Application.NewADODBRecordset();
![Page 1325: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1325.jpg)
ShowAll
![Page 1326: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1326.jpg)
NewFromSolutionMethod(ExternalApplicationObject)
CreatesanewMicrosoftOfficeInfoPath2003formbasedonthespecifiedformtemplate.
expression.NewFromSolution(ByValbstrSolutionURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrSolutionURIRequiredString.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)ofaformtemplate.
![Page 1327: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1327.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1328: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1328.jpg)
RemarksTheNewFromSolutionmethodcanbeusedonlytocreateanewformbasedonanexistingformtemplate;itcannotbeusedtocreateanewformbasedonanexistingform.Tocreateaformfromanexistingform,usetheNewmethodoftheExternalApplicationobject.
WhenyouusetheNewFromSolutionmethod,InfoPathisopenedandthenewformisreadytobefilledout.
NoteYoucannotusetheClosemethodoftheExternalApplicationobjecttocloseafromthathasbeenopenedwiththeNewFromSolutionmethod.WhentheNewFromSolutionmethodcreatesaform,thenameofthatformisnotyetknown.
![Page 1329: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1329.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theNewFromSolutionmethodoftheExternalApplicationobjectisusedtocreateanewformbasedonaspecifiedformtemplate:
PublicSubCreateFromFormTemplate()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'CreateanInfoPathformfromaformtemplate.objIP.NewFromSolution("C:\MyForms\MyFormTemplate.xsn")MsgBox("TheInfoPathformhasbeencreated.")
SetobjIP=Nothing
EndSub
![Page 1330: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1330.jpg)
ShowAll
![Page 1331: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1331.jpg)
NewFromSolutionMethod(Index)
TheNewFromSolutionmethodcreatesanewitembasedonaformtemplate.ThismethodisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelcollectionsandobjects.ClickaNewFromSolutionmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheNewFromSolutionmethod.
NewFromSolutionmethodasitappliestotheExternalApplicationobject.
NewFromSolutionmethodasitappliestotheXDocumentscollection.
![Page 1332: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1332.jpg)
ShowAll
![Page 1333: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1333.jpg)
NewFromSolutionMethod(XDocumentsCollection)
CreatesanewMicrosoftOfficeInfoPath2003formbasedonthespecifiedformtemplate.
expression.NewFromSolution(ByValvarURIAsVariant)AsXDocument
expressionRequired.AnexpressionthatreturnsareferencetotheXDocumentscollection.
varURIRequiredVariant.SpecifiestheUniformResourceIdentifier(URI)ofaform.
returnsAreferencetoanXDocumentobject.
![Page 1334: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1334.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1335: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1335.jpg)
RemarksTheNewFromSolutionmethodcanonlybeusedtocreateanewformbasedonanexistingformtemplate;itcannotbeusedtocreateanewformbasedonaform.Tocreateaformfromanexistingform,usetheNewmethodoftheXDocumentscollection.
WhenyouusetheNewFromSolutionmethod,thenewformopensinInfoPathandisreadytobefilledout.
![Page 1336: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1336.jpg)
ExampleInthefollowingexample,theNewFromSolutionmethodoftheXDocumentscollectionispassedtheURIofanexistingformtemplate,andanewformiscreatedanditsassociatedXDocumentobjectreturned:
varobjXDoc;
objXDoc=Application.XDocuments.NewFromSolution("C:\\MyForm.xsn");
![Page 1337: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1337.jpg)
ShowAll
![Page 1338: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1338.jpg)
NewFromSolutionWithDataMethod
CreatesanewMicrosoftOfficeInfoPath2003formusingthespecifiedXMLdataandformtemplate.
expression.NewFromSolutionWithData(ByValvarXMLDataAsVariant,ByValvarSolutionURIAsVariant,[ByValdwBehaviorAsLong=1])AsXDocument
expressionAnexpressionthatreturnsareferencetoanXDocumentscollection.
varXMLDataRequiredVariant.ProvidestheXMLdatatobeusedasatemplatefortheform.CanbeastringthatspecifiestheUniformResourceIdentifier(URI)ofanXMLdocument,oranXMLDOMNodethatcontainstheXMLtobeusedastheXMLdocument(template).
varSolutionURIRequiredVariant.StringwhichspecifiestheUniformResourceIdentifier(URI)ofaformtemplatefile(an.xsfor.xsnfile).
dwBehaviorOptionalLong.Reservedforfutureuse.Thisvalueshouldbeomittedorsetto1.
returnsAreferencetoanXDocumentobject.
![Page 1339: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1339.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1340: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1340.jpg)
RemarksThefollowingrelatedmethodsoftheXDocumentscollectionarealsoavailable:
TheNewmethodenablescreatinganewinstanceofInfoPathbyusingaspecifiedXMLdocument.TheXMLdocumentmustcorrespondtoanInfoPathform.AnewformisopenedinInfoPath,usingthesuppliedXMLdocumentasinitialdata,anditsassociatedformtemplateasspecifiedintheprocessinginstructionsintheheaderofthedocument.
TheNewFromSolutionmethodenablescreatinganewinstanceofInfoPathusingaspecifiedformtemplate,anditsassociatedXMLform(theinitialtemplatedata).
TheNewFromSolutionWithDatamethodsupportsascenariothatisnotprovidedbytheforegoingtwomethods:specifyingboththeXMLdocumentusedasinitialdataandtheformtemplate.TheXMLdocumentdoesnotneedtohavebeencreatedbyInfoPath.ItcanbesuppliedeitherasaURIorasanXMLDOMNode.
WhenyouusetheNewFromSolutionWithDatamethod,thenewformopensinInfoPathandisreadytobefilledout.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1341: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1341.jpg)
ExampleInthefollowingexample,theNewFromSolutionWithDatamethodoftheXDocumentscollectionispassedtheURIsofanexistingXMLdocument,andanexistingformtemplate,andanewformiscreatedanditsassociatedXDocumentobjectisreturned:
varobjXDoc=Application.XDocuments.NewFromSolutionWithData
Inthefollowingexample,theNewFromSolutionWithDatamethodoftheXDocumentscollectionispassedanXMLDOMNodeasinitialdataandtheURIofanexistingform,andanewformiscreatedanditsassociatedXDocumentobjectisreturned:
varobjXMLNode=XDocument.DOM.selectSingleNode("/employees/employee");
varobjXDoc=Application.XDocuments.NewFromSolutionWithData
![Page 1342: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1342.jpg)
NowMethod
ReturnsaVariantthatrepresentsthecurrentsystemdateandtimeinISOformat(yyyy-mm-ddThh:mm:ss).
expression.Now()AsVariant
expressionRequired.AnexpressionthatreturnsareferencetoaDateobject.
returnsAVariantthatrepresentsthecurrentsystemdateandtime.
![Page 1343: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1343.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1344: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1344.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1345: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1345.jpg)
ExampleInthefollowingexample,thevariablecurrentDateTimeissettothecurrentsystemdateandtime:
varcurrentDateTime=XDocument.Util.Date.Now();
![Page 1346: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1346.jpg)
NzMethod
ReturnsaVariantthatisidenticaltothenodesetpassedtothefunction,exceptemptyvaluesinthenodelistarereplacedwithzeros(0).
expression.Nz(ByValpxmllistInputAsIXMLDOMNodeList)AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheMathobject.
pxmllistInputRequired.Thenodesetthatwillhaveitsemptyvaluesreplacedwithzeroes.
returnsAVariantthatrepresentsanodeset.
![Page 1347: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1347.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1348: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1348.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1349: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1349.jpg)
ExampleInthefollowingexample,thevariablenoZeroissettoanodesetthatisidenticaltothemy:agesnodeset,withallblankvaluesreplacedbyzeros:
varages=XDocument.DOM.selectNodes("//my:ages");varnoZero=XDocument.Util.Math.Nz(ages);
![Page 1350: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1350.jpg)
ShowAll
![Page 1351: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1351.jpg)
OpenMethod(ExternalApplicationObject)
OpensthespecifiedMicrosoftOfficeInfoPath2003form.
expression.Open(ByValbstrDocumentURIAsString,[ByValdwBehaviorAsLong=1])
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrDocumentURIRequiredString.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)ofaform.
dwBehaviorOptionalLong.Defaultvalueis1.Alongvaluethatspecifieshowtheformshouldbeopened.ThevaluesarebasedontheXdDocumentVersionModeenumeration.
![Page 1352: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1352.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1353: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1353.jpg)
RemarksTheOpenmethodcanbeusedonlytoopenaform;itcannotbeusedtoopenaformtemplate.Tocreateaformfromaformtemplate,usetheNewFromSolutionmethodoftheExternalApplicationobject.Tocreateaformbasedonanexistingform,usetheNewmethodoftheExternalApplicationobject.
![Page 1354: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1354.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theOpenmethodoftheExternalApplicationobjectisusedtoopenaspecifiedform:
PublicSubAutomateInfoPathForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'OpenanInfoPathform.objIP.Open("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeenopened.")
'ClosetheInfoPathform.objIP.Close("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeenclosed.")
'QuittheInfoPathapplication.objIP.QuitMsgBox("TheInfoPathapplicationhasbeenclosed.")
SetobjIP=Nothing
EndSub
![Page 1355: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1355.jpg)
OpenMethod(Index)
TheOpenmethodopensaform.ThismethodisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelcollectionsandobjects.ClickanOpenmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheOpenmethod.
OpenmethodasitappliestotheExternalApplicationobject.
OpenmethodasitappliestotheXDocumentscollection.
![Page 1356: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1356.jpg)
ShowAll
![Page 1357: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1357.jpg)
OpenMethod(XDocumentsCollection)
OpensthespecifiedMicrosoftOfficeInfoPath2003form.
expression.Open(ByValvarURIAsVariant,[ByValdwBehaviorAsLong=1])AsXDocument
expressionRequired.AnexpressionthatreturnsareferencetotheXDocumentscollection.
varURIRequiredVariant.SpecifiestheUniformResourceIdentifier(URI)ofaform.
dwBehaviorOptionalLong.Defaultvalueis1.Alongvaluethatspecifieshowtheformshouldbeopened.ThevaluesarebasedontheXdDocumentVersionModeenumeration.
returnsAreferencetoanXDocumentobject.
![Page 1358: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1358.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1359: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1359.jpg)
RemarksTheOpenmethodcanonlybeusedtoopenaform;itcannotbeusedtoopenaformtemplate.Tocreateaformfromaformtemplate,usetheNewFromSolutionmethodoftheXDocumentscollection.Tocreateaformbasedonanexistingform,usetheNewmethodoftheXDocumentscollection.
WhenyouusetheOpenmethod,thespecifiedformopensinInfoPathandisreadytobefilledout.
NoteIfyouusetheoptionaldwBehaviorargumentintheOpenmethod,youcanonlypassthenumericalvalueoftheXdDocumentVersionModeenumeration.BecauseInfoPathusesscriptinglanguagesforworkingwiththeobjectmodel,namedvaluescannotbeused.
![Page 1360: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1360.jpg)
ExampleInthefollowingexample,theOpenmethodoftheXDocumentscollectionispassedtheURIofanexistingform,andtheformisopenedanditsassociatedXDocumentobjectreturned:
varobjXDoc;
objXDoc=Application.XDocuments.Open("C:\\MyForm.xml");
![Page 1361: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1361.jpg)
PerformSaveOperationMethod
Performsthesaveoperationrequestedbytheuser.
expression.PerformSaveOperation()
expressionRequired.AnexpressionthatreturnsareferencetoaSaveEventobject.
![Page 1362: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1362.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1363: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1363.jpg)
RemarksThePerformSaveOperationmethodperformsa"save"or"saveas"operationdependingonthevalueoftheIsSaveAspropertyoftheSaveEventobject.Iftheoperationissuccessful,theIsDirtypropertyoftheXDocumentobjectissettoFalseandthePerformSaveOperationmethodreturnsTrue.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1364: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1364.jpg)
ExampleInthefollowingexample,thePerformSaveOperationmethodoftheSaveEventobjectisusedtosavetheformusingtheinternaldefinitionofsave.
eventObj.PerformSaveOperation();
![Page 1365: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1365.jpg)
PrintOutMethod
Printstheformcontentasitisrenderedinthewindowcorrespondingtotheform'sactiveview.
expression.PrintOut()
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1366: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1366.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1367: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1367.jpg)
RemarksThePrintOutmethodusesthecurrentprintersettings.Returnsapermissiondeniederrorifcalledfromaformthatisnotfullytrusted.
Itisrecommendedthatyoudon'tcallthePrintOutmethodfromanOnLoadorOnSwitchVieweventprocedure.YoumayencounteroneormoreofthefollowingbehaviorswhencallingthePrintOutmethodfromanOnLoadorOnSwitchVieweventprocedure:
Theviewmayprintcorrectly.
Ablankdocumentmaybeprinted.
Theincorrectviewmaybeprinted.
Thefollowingexceptionmayoccur:
InvalidcontextfortheOMcall.
![Page 1368: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1368.jpg)
ExampleInthefollowingexample,thePrintOutmethodoftheXDocumentobjectisusedtoprintthecurrentview:
XDocument.PrintOut();
![Page 1369: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1369.jpg)
QueryMethod(ADOAdapterObject)
Readsdatafromtheassociateddataadapter.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetoanADOAdapterobject.
![Page 1370: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1370.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1371: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1371.jpg)
RemarksTheQuerymethodfailsiftheQueryAllowedpropertyoftheADOAdapterobjectisFalse.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1372: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1372.jpg)
ShowAll
![Page 1373: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1373.jpg)
QueryMethod(DataObjectObject)
ReadsdatafromthedataadapterthatisassociatedwiththeDataObjectobjectandrepopulatestheDataObjectobject'sassociatedXMLDocumentObjectModel(DOM).
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetotheDataObjectobject.
![Page 1374: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1374.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1375: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1375.jpg)
RemarksTheQuerymethodcanbeusedtorefreshthedatacontainedintheXMLDOMthatisassociatedwithaDataObjectobject.
![Page 1376: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1376.jpg)
ExampleInthefollowingexample,theQuerymethodoftheDataObjectobjectisusedtorefreshthedatacontainedintheXMLDOMassociatedwiththeDataObjectobject:
XDocument.DataObjects("CityList").Query();
AfteryouhaverefreshedthedataintheDataObjectobject,youcancalltheForceUpdatemethodoftheViewobjecttosynchronizethedatacontainedintheDataObjectobjectandtheview:
XDocument.View.ForceUpdate();
![Page 1377: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1377.jpg)
QueryMethod(DAVAdapterObject)
TheQuerymethodisavailablefortheDAVAdapterobjectbut,becausetheDAVAdapterobjectisavailableforsubmittingdataonly,themethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetotheDAVAdapterobject.
![Page 1378: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1378.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1379: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1379.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1380: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1380.jpg)
QueryMethod(EmailAdapterObject)
TheQuerymethodisavailablefortheEmailAdapterobjectbut,becausetheEmailAdapterobjectisavailableforsubmittingdataonly,themethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetotheEmailAdapterobject.
![Page 1381: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1381.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1382: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1382.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1383: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1383.jpg)
QueryMethod(HWSAdapterObject)
TheQuerymethodisavailablefortheHWSAdapterobjectbut,becausetheHWSAdapterobjectisavailableforsubmittingdataonly,themethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetotheHWSAdapterobject.
![Page 1384: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1384.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1385: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1385.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1386: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1386.jpg)
ShowAll
![Page 1387: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1387.jpg)
QueryMethod(Index)
TheQuerymethodretrievesdatafromtheassociateddataadapterandstoresitinanXMLDocumentObjectModel(DOM).ThismethodisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaQuerymethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheQuerymethod.
QuerymethodasitappliestotheADOAdapterobject.
QuerymethodasitappliestotheDataObjectobject.
QuerymethodasitappliestotheDAVAdapterobject.
QuerymethodasitappliestotheHWSAdapterobject.
QuerymethodasitappliestotheEmailAdapterobject.
QuerymethodasitappliestotheSharepointListAdapterobject.
QuerymethodasitappliestotheWebServiceAdapterobject.
QuerymethodasitappliestotheXDocumentobject.
QuerymethodasitappliestotheXMLFileAdapterobject.
![Page 1388: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1388.jpg)
QueryMethod(SharePointListAdapterObject)
Readsdatafromtheassociateddataadapter.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetoaSharepointListAdapterobject.
![Page 1389: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1389.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1390: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1390.jpg)
RemarksTheQuerymethodfailsiftheQueryAllowedpropertyoftheSharePointListAdapterobjectisFalse.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1391: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1391.jpg)
ShowAll
![Page 1392: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1392.jpg)
QueryMethod(WebServiceAdapterObject)
Readsdatafromtheassociateddataadapter.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 1393: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1393.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1394: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1394.jpg)
RemarksTheQuerymethodfailsiftheQueryAllowedpropertyoftheWebServiceAdapterobjectisFalse.
NoteAnADO.NetDataSetcannotbeusedasaqueryparameterfortheWebServiceAdapterobjectoranyotherdataadapter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1395: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1395.jpg)
ShowAll
![Page 1396: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1396.jpg)
QueryMethod(XDocumentObject)
Retrievesdatafromaform'sassociateddataadapterobjectandstoresthedataintheform'sunderlyingXMLDocumentObjectModel(DOM).
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1397: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1397.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1398: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1398.jpg)
RemarksTheQuerymethodwillreturnanerroriftheformdoesnothaveanassociateddataadapterobject.
![Page 1399: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1399.jpg)
ExampleInthefollowingexample,theQuerymethodoftheXDocumentobjectisusedtoquerytheassociateddataadapter:
XDocument.Query();
![Page 1400: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1400.jpg)
QueryMethod(XMLFileAdapterObject)
Readsdatafromtheassociateddataadapter.
expression.Query()
expressionRequired.AnexpressionthatreturnsareferencetoanXMLFileAdapterobject.
![Page 1401: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1401.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1402: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1402.jpg)
RemarksTheQuerymethodfailsiftheQueryAllowedpropertyoftheXMLFileAdapterobjectisFalse.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1403: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1403.jpg)
QuitMethod(ApplicationObject)
QuitstheMicrosoftOfficeInfoPath2003application.
expression.Quit([ByValbForceAsBoolean=False])
expressionRequired.AnexpressionthatreturnsareferencetotheApplicationobject.
bForceOptionalBoolean.DefaultvalueisFalse.Determineswhetheropenformswillbesavedduringthequitoperation.IfsettoFalse,allformswillbeclosedwithoutsaving,evenifthedataintheformshasbeenchanged.IfsettoTrue,theuserwillbepromptedtosavetheforms.
![Page 1404: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1404.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1405: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1405.jpg)
RemarksIftheQuitmethodisusedinaformthatisnotfullytrusted,themethodwillreturna"permissiondenied"error.
![Page 1406: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1406.jpg)
ExampleInthefollowingexample,theQuitmethodoftheApplicationobjectisusedtoquitInfoPathwithoutsavinganyofthecurrentlyopenforms:
Application.Quit(false);
![Page 1407: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1407.jpg)
ShowAll
![Page 1408: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1408.jpg)
QuitMethod(ExternalApplicationObject)
QuitstheMicrosoftOfficeInfoPath2003application.
expression.Quit
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
![Page 1409: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1409.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1410: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1410.jpg)
RemarksIfyouusetheClosemethodoftheExternalApplicationobjectbeforeusingtheQuitmethod,datathathasbeenchangedintheformwillnotbesaved,norwillusersbepromptedtosaveit.However,ifyoudonotusetheClosemethodbutonlyusetheQuitmethod,userswillbepromptedtosavetheformbeforequittingtheInfoPathapplication.
![Page 1411: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1411.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theQuitmethodoftheExternalApplicationobjectisusedtoquittheInfoPathapplication:
PublicSubAutomateInfoPathForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'OpenanInfoPathform.objIP.Open("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeenopened.")
'ClosetheInfoPathform.objIP.Close("C:\MyForms\Form1.xml")MsgBox("TheInfoPathformhasbeenclosed.")
'QuittheInfoPathapplication.objIP.QuitMsgBox("TheInfoPathapplicationhasbeenclosed.")
SetobjIP=Nothing
EndSub
![Page 1412: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1412.jpg)
QuitMethod(Index)
TheQuitmethodquitstheapplication.ThismethodisimplementedinanumberofMicrosoftOfficeInfoPath2003objectmodelobjects.ClickaQuitmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheQuitmethod.
QuitmethodasitappliestotheApplicationobject.
QuitmethodasitappliestotheExternalApplicationobject.
![Page 1413: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1413.jpg)
ShowAll
![Page 1414: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1414.jpg)
RegisterSolutionMethod(ApplicationObject)
InstallsthespecifiedMicrosoftOfficeInfoPathformtemplate.
expression.RegisterSolution(ByValbstrSolutionURLAsString,[ByValbstrBehaviorAsString="overwrite"])
expressionRequired.AnexpressionthatreturnsareferencetoanApplicationobject.
bstrSolutionURLRequiredString.ThestringthatspecifiestheUniformResourceLocator(URL)oftheformtemplate.Thisparametercanbespecifiedasaformdefinition(.xsf)fileoraformtemplate(.xsn)file.
bstrBehaviorOptionalString.Defaultvalueis"overwrite".Thestringthatspecifieshowtheformtemplateistobeinstalled.Theonlyothervalidvalueforthisparameteris"new-only".
![Page 1415: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1415.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1416: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1416.jpg)
RemarksIftheformtemplatehasalreadybeenregistered,and"new-only"isspecifiedforthebstrBehaviorparameter,theRegisterSolutionmethodwillreturnanerror.If"overwrite"isspecified,theformtemplate'sregistrationrecordwillbeoverwritten.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1417: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1417.jpg)
ExampleInthefollowingVisualBasicforApplications(VBA)example,theRegisterSolutionmethodoftheApplicationobjectisusedtoinstallaformtemplate:
PublicSubInstallForm()
DimobjIPAsObject
'CreateareferencetotheApplicationobject.SetobjIP=CreateObject("InfoPath.Application")
'RegistertheInfoPathformtemplate.objIP.RegisterSolution("C:\\MyForms\\MyFormTemplate.xsn")MsgBox"TheInfoPathformtemplatehasbeenregistered."
SetobjIP=Nothing
EndSub
![Page 1418: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1418.jpg)
ShowAll
![Page 1419: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1419.jpg)
RegisterSolutionMethod(ExternalApplicationObject)
InstallsthespecifiedMicrosoftOfficeInfoPath2003formtemplate.
expression.RegisterSolution(ByValbstrSolutionURLAsString,[ByValbstrBehaviorAsString="overwrite"])
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrSolutionURLRequiredString.ThestringvaluethatspecifiestheUniformResourceLocator(URL)oftheformtemplate.Thisparametercanbespecifiedasaformdefinition(.xsf)fileoraformtemplate(.xsn)file.
bstrBehaviorOptionalString.Defaultvalueisoverwrite.Thestringvaluethatspecifieshowtheformtemplateistobeinstalled.Theonlyothervalidvalueforthisparameterisnew-only.
![Page 1420: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1420.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1421: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1421.jpg)
RemarksIftheformtemplatehasalreadybeenregistered,andthenew-onlyvalueisusedforthebstrBehaviorparameter,theRegisterSolutionmethodwillreturnanerror.Iftheoverwritevalueisused,theformtemplate'sregistrationrecordwillbeoverwritten.
![Page 1422: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1422.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theRegisterSolutionmethodoftheExternalApplicationobjectisusedtoinstallaformtemplate:
PublicSubInstallForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'RegistertheInfoPathformtemplate.objIP.RegisterSolution("C:\\MyForms\MyFormTemplate.xsn")MsgBox("TheInfoPathformtemplatehasbeenregistered.")
SetobjIP=Nothing
EndSub
![Page 1423: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1423.jpg)
ShowAll
![Page 1424: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1424.jpg)
RegisterSolutionMethod(Index)
TheRegisterSolutionmethodinstallsthespecifiedMicrosoftOfficeInfoPath2003formtemplate.ThismethodisimplementedinseveralInfoPathobjectmodelcollections.ClickaRegisterSolutionmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheRegisterSolutionmethod.
RegisterSolutionmethodasitappliestotheApplicationobject.
RegisterSolutionmethodasitappliestotheExternalApplicationobject.
![Page 1425: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1425.jpg)
ShowAll
![Page 1426: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1426.jpg)
ReportErrorMethod
CreatesanErrorobjectandaddsittotheErrorscollection.
expression.ReportError(ByValvarNodeAsVariant,ByValbstrShortErrorMessageAsString,ByValfSiteIndependentAsBoolean,[ByValbstrDetailedErrorMessageAsString],[ByVallErrorCodeAsLong],[ByValbstrTypeAsString="modeless"])AsError
expressionRequired.ReturnsareferencetotheDataDOMEventobject.
varNodeRequiredVariant.TheXMLDocumentObjectModel(DOM)nodethattheerrorisassociatedwith.
bstrShortErrorMessageRequiredString.Thetexttobeusedfortheshorterrormessage.
fSiteIndependentOptionalBoolean.SetstheconditionforautomaticdeletionoftheErrorobject.IfTrue,theErrorobjectwillbedeletedonchangeforanynodesthatmatchedtheXPathexpressioncorrespondingtotheErrorobject.IfFalse,theErrorobjectwillbedeletedwhenthenodereturnedbytheSitepropertyofagiveneventobjecthasbeenchanged.
bstrDetailedErrorMessageOptionalString.Thetexttobeusedforthedetailederrormessage.
lErrorCodeOptionalLong.Thenumbertobeusedastheerrorcode.
bstrTypeOptionalString.Defaultvalueis"modeless".Determineswhetherthechangeinvaluewillbeautomaticallyrejectedorwhethertheuserwillbepromptedtoacceptorrejectthechange.Theothervalueis"modal".
returnsAreferencetoanErrorobject.
![Page 1427: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1427.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1428: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1428.jpg)
RemarksWhentheReportErrormethodoftheDataDOMEventobjectiscalled,MicrosoftOfficeInfoPath2003createsanErrorobjectandaddsittotheErrorscollection.Errorsareremovedfromthecollectionwhenthevalidationconstraintisnolongerinvalid,orwhentheyareexplicitlyremovedusingtheDeleteorDeleteAllmethodsoftheErrorscollection.
ErrorscanalsobecreatedusingtheAddmethodoftheErrorscollection.
NoteSite-independenterrorsshouldbeusedwhenyouwanttheerrorstoapplytoallXMLDOMnodesofthesametype.IfyouwanttheerrortoapplytoaspecificXMLDOMnode,usesite-dependenterrors.
![Page 1429: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1429.jpg)
ExampleInthefollowingexamplefromtheDataValidationdevelopersampleform,theReportErrormethodoftheDataDOMEventobjectisusedtocreateacustomerrorandaddittotheerrorscollection:
functionmsoxd__total::OnValidate(eventObj){if(parseInt(eventObj.Site.nodeTypedValue,10)>75)eventObj.ReportError(eventObj.Site,"Thetotalistoohigh."+"Thetotalnumberofblockscannotbegreaterthan75.",false);
if(parseInt(eventObj.Site.nodeTypedValue,10)<0)eventObj.ReportError(eventObj.Site,"Thetotalistoolow."+Thetotalnumberofblockscannotbelessthan0.",false);}
![Page 1430: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1430.jpg)
ShowAll
![Page 1431: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1431.jpg)
SaveMethod
SavestheformtotheUniformResourceLocator(URL)thatitiscurrentlyassociatedwith.
expression.Save()
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1432: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1432.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1433: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1433.jpg)
RemarksTheSavemethodwillreturnanerrorifcalledfromaformthatisnotfullytrusted.
![Page 1434: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1434.jpg)
ExampleInthefollowingexample,theSavemethodoftheXDocumentobjectisusedtosaveaform:
XDocument.Save();
![Page 1435: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1435.jpg)
ShowAll
![Page 1436: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1436.jpg)
SaveAsMethod
SavestheformtothespecifiedUniformResourceLocator(URL).
expression.SaveAs(ByValbstrFileUrlAsString)
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
bstrFileUrlRequiredString.TheURLaddressthattheformshouldbesavedto.
![Page 1437: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1437.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1438: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1438.jpg)
RemarksTheSaveAsmethodwillreturnanerrorifcalledfromaformthatisnotfullytrusted.
NoteTheURLthattheformissavedtomustbeinthesamedomainastheformthatcallstheSaveAsmethod.
![Page 1439: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1439.jpg)
ExampleInthefollowingexample,theSaveAsmethodoftheXDocumentobjectisusedtosaveaform:
XDocument.SaveAs("C:\MyForm.xml");
![Page 1440: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1440.jpg)
SaveStateMethod
DefinesamethodthatInfoPathcallswhenitneedstosavethestateofaninstanceofthecontrolinaview.
expression.SaveState()
expressionRequired.AnexpressionthatreturnsareferencetotheInfoPathControlobject.
![Page 1441: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1441.jpg)
RemarksTheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1442: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1442.jpg)
ShowAll
![Page 1443: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1443.jpg)
SelectNodesMethod
SelectsarangeofnodesinaviewbasedonthespecifiedstartingXMLDocumentObjectModel(DOM)node,theendingXMLDOMnode,andtheviewcontext.
expression.SelectNodes(ByRefpxnStartNodeAsXMLDOMNode,[ByValvarEndNodeAsVariant],[ByValvarViewContextAsVariant])
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
pxnStartNodeRequiredXMLDOMNode.TheXMLDOMnodethatbeginstherange.
varEndNodeOptionalVariant.TheXMLDOMnodethatendstherange.Ifnotspecified,onlythestartingXMLDOMnodewillbeused.
varViewContextOptionalVariant.TheIDofthecontrolthatisusedforthecontext,whichisanelementwiththespecifiedviewcontextofxd:CtrlId.
![Page 1444: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1444.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1445: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1445.jpg)
RemarksIfaviewcontextisspecified,alloftheXMLDOMnodesthataretobeselectedmustbewithinthatcontext.
IfanyoftheargumentstotheSelectNodesmethodarenullorarenotexposedintheview,theSelectNodesmethodwillreturnanerror.Inaddition,iftherearemorethanonesetofviewelementswhichmaptothesamespecifiedXMLDOMnodes,withinthespecifiedviewcontext,thentheSelectNodesmethodwillalsoreturnanerror.
![Page 1446: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1446.jpg)
ExampleInthefollowingexample,theSelectNodesmethodoftheViewobjectisusedtosetselectiononasingleitemintheview,correspondingtothespecifiedXMLDOMnodeandthen,usingtheGetSelectedNodesmethodoftheViewobject,determineswhethertheselectionhasbeensuccessfulbydisplayinginformationabouttheXMLDOMnodeinamessagebox:
functionSelectEmployee(){varobjXMLNodes;varobjXMLNode;
objXMLNode=XDocument.DOM.selectSingleNode("/employees/employee");XDocument.View.SelectNodes(objXMLNode);
objXMLNodes=XDocument.View.GetSelectedNodes();if(objXMLNodes.Count>0){XDocument.UI.Alert(objXMLNodes(0).nodeName+"\n\n"+objXMLNodes(0).text);}}
![Page 1447: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1447.jpg)
ShowAll
![Page 1448: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1448.jpg)
SelectTextMethod
SelectsthetextcontainedinaneditablefieldthatisboundtothespecifiedXMLDocumentObjectModel(DOM)node.
expression.SelectText(ByRefpxnFieldAsXMLDOMNode,[ByValvarViewContextAsVariant)
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
pxnFieldRequiredXMLDOMNode.TheXMLDOMnode.
varViewContextOptionalVariant.TheIDofthecontrolthatisusedforthecontext,whichisanelementwiththespecifiedviewcontextofxd:CtrlId.
![Page 1449: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1449.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1450: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1450.jpg)
RemarksIfaviewcontextisspecified,thentheeditablefieldthatistobeselectedmustbewithinthatcontext.
IftherearemorethanonesetofviewelementswhichmaptothesamespecifiedXMLDOMnode,withinthegivenviewcontext,thentheSelectTextmethodwillreturnanerror.Inaddition,ifanyoftheargumentstotheSelectTextmethodarenullorarenotexposedintheview,thentheSelectTextmethodwillalsoreturnanerror.
![Page 1451: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1451.jpg)
ExampleInthefollowingexample,theSelectTextmethodoftheViewobjectisusedtoselectafieldthatisboundtoanXMLDOMnode:
varobjXMLNode;
objXMLNode=XDocument.DOM.selectSingleNode("/employees/employee/name");XDocument.View.SelectText(objXMLNode);
![Page 1452: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1452.jpg)
ShowAll
![Page 1453: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1453.jpg)
SetDataVariableMethod
Setsthevalueofapredefinedvariablestoredasaprocessinginstructionattributeintheform'sunderlyingXMLdocument.
expression.SetDataVariable(ByVallVariableNumberAsLong,ByValbstrVariableValueAsString)
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
lVariableNumberRequiredLong.Thenumberofthevariable.
bstrVariableValueRequiredString.Thevalueofthevariable.
![Page 1454: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1454.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1455: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1455.jpg)
RemarksIfthevariablebeingsetisnotavalidprocessinginstructionattribute,theSetDataVariablemethodwillreturnanerror.
Togetthevalueofavariable,usetheGetDataVariablemethodoftheXDocumentobject.
NoteMicrosoftOfficeInfoPath2003onlysupportsusingtheinitialViewvariable,whichisthevariableusedtospecifytheinitialviewdisplayedwhenaformisopened.Thenumberofthisvariableisalways1,anditsvaluemustbethenameofaviewwithintheform.
![Page 1456: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1456.jpg)
ExampleInthefollowingexample,theSetDataVariablemethodoftheXDocumentobjectisusedtosetthevalueofthefirstvariable:
XDocument.SetDataVariable(1,"View2");
![Page 1457: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1457.jpg)
SetDirtyMethod
SetstheIsDirtypropertyontheXDocumentobjecttoaBooleanvaluethatindicateswhetherthedatainaMicrosoftOfficeInfoPath2003formhasbeenmodifiedsinceitwaslastsaved.
expression.SetDirty(ByValvfIsDirtyAsBoolean)
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
vfIsDirtyRequiredBoolean.Specifieswhethertheformistobemarkedasunmodifiedornot.
![Page 1458: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1458.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1459: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1459.jpg)
RemarksTheSetDirtymethodcanbeusedfromtheOnSubmitRequesteventhandlertoforceadocumenttobemarkedasunchanged.InfoPathwillthereforenotrequesttheusertosavetheformwhenitisclosed.
TheSetDirtymethodcanalsobeusedfromtheOnSaveRequesteventhandlertoprogrammaticallymarktheformaschangedorunchangedsinceitwaslastsaved.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1460: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1460.jpg)
ExampleInthefollowingexample,theIsDirtypropertyofthecurrentformissettoFalsesothatInfoPathwillnotprompttheusertosavetheformwhenitisclosed.
XDocument.SetDirty(false);
![Page 1461: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1461.jpg)
SetNamedNodePropertyMethod
SetsthevalueofanamedpropertyforthesuppliedXMLnode,whichmustbeanonattributenodeinthemaindatasource.
expression.SetNamedNodeProperty(ByValpxmlMainDOMNodeAsIXMLDOMNode,ByValbstrPropertyNameAsString,ByValbstrValueAsString)
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
pxmlMainDOMNodeRequiredIXMLDOMNode.AnXMLnodecorrespondingtoanonattributenodeinthemaindatasource,forwhichanamedpropertyistobeset.
bstrPropertyNameRequiredString.Specifiesthenameofthepropertybeingset.
bstrValueRequiredString.Specifiesthevaluetowhichthepropertywillbeset.
![Page 1462: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1462.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1463: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1463.jpg)
RemarksNamedpropertiesallowuserstoassociatestringswithuser-definedpropertiesofXMLelementnodesinthemaindatasource.ThevalueofanamedpropertycanbesetbyusingtheSetNamedNodePropertymethod.UsetheGetNamedNodePropertymethodtoreadthevalueofanamedproperty.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1464: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1464.jpg)
ExampleInthefollowingexample,thevalueofanamedproperty(withthename"cost")ofanXMLnode(called"item")issetbyusingtheSetNamedNodePropertymethod:
varobjXMLNode=XDocument.DOM.selectSingleNode("/items/item");XDocument.SetNamedNodeProperty(objXMLNode,'cost','100');varstrTest=XDocument.GetNamedNodeProperty(myNode,'cost','empty');
![Page 1465: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1465.jpg)
SetSaveAsDialogFileNameMethod
SetsthedefaultfilenameforaformintheSaveAsdialogbox.
expression.SetSaveAsDialogFileName(ByValstrFileNameAsString)
expressionRequired.AnexpressionthatreturnsareferencetoaUIobject.
strFileNameRequired.ThefilenameoftheformsuppliedtotheSaveAsdialogbox.
![Page 1466: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1466.jpg)
Security2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1467: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1467.jpg)
RemarksIfthestrFileNameargumentisnull,"Form"isusedasthefilename.TheSetSaveAsDialogFileNamemethodmaybeusedinconjunctionwiththeSetSaveAsDialogLocationmethod.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1468: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1468.jpg)
ExampleInthefollowingexample,theSetSaveAsDialogFileNamemethodoftheUIobjectisusedtosetthedefaultfilenamefortheSaveAsdialogbox:
XDocument.UI.SetSaveAsDialogFileName("StatusReport.xml");
![Page 1469: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1469.jpg)
SetSaveAsDialogLocationMethod
SetstheinitiallocationatwhichtheSaveAsdialogstartstobrowsewhenitisopened.
expression.SetSaveAsDialogLocation(ByValstrLocationUrlAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheUIobject.
strLocationUrlRequired.Thelocation,expressedasaURL,atwhichtheSaveAsdialogboxstartsbrowsing.
![Page 1470: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1470.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1471: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1471.jpg)
RemarksThelocationspecifiedmustbeanabsolutepathanditshouldnotincludeafilename.InfoPathhandlesinvalidpaths,however,andnoerrormessageisgeneratedifaninvalidpathisspecifiedforthestrLocationUrlargument.TheSetSaveAsDialogLocationmethodmaybeusedinconjunctionwiththeSetSaveAsDialogFileNamemethod.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1472: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1472.jpg)
ExampleInthefollowingexample,theSetSaveAsDialogLocationmethodoftheUIobjectisusedtosettheinitiallocationfortheSaveAsdialog:
XDocument.UI.SetSaveAsDialogLocation("\\\\MyShare\\Forms");
![Page 1473: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1473.jpg)
ShowMailItemMethod
Createsane-mailmessageinthedefaulte-maileditorandattachesthecurrentlyopenMicrosoftOfficeInfoPath2003formtothemessage.
expression.ShowMailItem(ByValbstrToAsString,ByValbstrCCAsString,ByValbstrBCCAsString,ByValbstrSubjectAsString,ByValbstrBodyAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheUIobject.
bstrToRequiredString.Thee-mailaddresstosendthee-mailmessageto.
bstrCCRequiredString.Thee-mailaddresstocopythee-mailmessageto.
bstrBCCRequiredString.Thee-mailaddresstoblindcopythee-mailmessageto.
bstrSubjectRequiredString.Thesubjectofthee-mailmessage.
bstrBodyRequiredString.Thebodytextofthee-mailmessage.
![Page 1474: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1474.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1475: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1475.jpg)
RemarksAfterthee-mailmessageiscreated,thedefaulte-maileditorwilldisplaythee-mailmessage;userscantheninspectandeditthee-mailmessagebeforesendingit.TheShowMailItemmethodwillreturnanerrorifnoe-maileditingprogramisavailable.
NoteTheShowMailItemmethoddoesnotsendthee-mailmessagesitcreates;usersmustmanuallysendthee-mailmessages.
YoucanalsousetheMailEnvelopeobject,accessedthroughtheMailEnvelopepropertyoftheWindowobject,toprogrammaticallycreatee-mailmessages.
![Page 1476: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1476.jpg)
ExampleInthefollowingexample,theShowMailItemmethodoftheUIobjectisusedtocreateacustome-mailmessage:
XDocument.UI.ShowMailItem("[email protected]","","","UpdatedForm","Hereistheupdatedformthatyourequested.");
![Page 1477: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1477.jpg)
ShowAll
![Page 1478: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1478.jpg)
ShowModalDialogMethod
DisplaysacustommodaldialogboxinaMicrosoftOfficeInfoPath2003form.
expression.ShowModalDialog(ByValbstrNameAsString,[ByValvarArgumentsAsVariant],[ByValvarHeightAsVariant],[ByValvarWidthAsVariant],[ByValvarTopAsVariant],[ByValvarLeftAsVariant])AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheUIobject.
bstrNameRequiredString.Thenameofthe.htmlfileusedforthemodaldialogbox.
varArgumentsOptionalVariant.Specifiestheargumentstousewhendisplayingthemodaldialogbox.Canbeanytypeofvalue,includinganarrayofvalues.
varHeightOptionalVariant.Setstheheightofthemodaldialogbox.
varWidthOptionalVariant.Setsthewidthofthemodaldialogbox.
varTopOptionalVariant.Setsthetoppositionofthemodaldialogboxrelativetotheupperleftcornerofthedesktop.
varLeftOptionalVariant.Setstheleftpositionofthemodaldialogboxrelativetotheupperleftcornerofthedesktop.
returnsVariant.
![Page 1479: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1479.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1480: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1480.jpg)
RemarksTheShowModalDialogmethodoftheUIobjectallowsyoutodisplaycustomdialogboxestousersastheyfilloutafullytrustedform.Customdialogboxesareimplementedas.htmlfilescreatedinanytypeofHTMLeditor,suchasMicrosoftFrontPage.YoucanusescriptingcodeinacustomdialogboxthatinteractswiththeInfoPathobjectmodelifyoupassobjectstothecustomdialogboxusingthevarArgumentsparameter.
TouseacustomdialogboxinanInfoPathform,youmustfirstaddthe.htmlfileofthecustomdialogboxtotheform'ssetofresourcefilesbyusingtheResourceManagerdialogbox.TheResourceManagerdialogboxisavailablefromtheToolsmenuindesignmode.Afteryouhaveaddedthecustomdialogboxfiletotheform,youcanusetheShowModalDialogmethodtodisplayit.
NoteAlthoughtheShowModalDialogmethodcanonlybeusedinfullytrustedforms,youcancreateacustomdialogboxinstandardformsusingtheshowModalDialogmethodoftheDynamicHTML(DHTML)objectmodel.
![Page 1481: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1481.jpg)
ExampleInthefollowingexample,theShowModalDialogmethodoftheUIobjectisusedtodisplayacustomdialogbox.NotethattheXDocumentobjectispassedtothecustomdialogboxusingthevarArgumentsparameter.
XDocument.UI.ShowModalDialog("SimpleDialog.htm",XDocument);
ThefollowingexampleistheHTMLcodeusedtoimplementasimplecustomdialogbox.NotetheuseofthedialogArgumentspropertyoftheDHTMLwindowobjecttogetthevaluespassedtothecustomdialogbox,whichinthiscaseistheXDocumentobjectoftheInfoPathobjectmodel,fromtheShowModalDialogmethod.WhenauserclickstheShowAlertbuttoninthecustomdialogbox,thesourceXMLoftheform'sunderlyingXMLdocumentappearsinamessagebox.
<html><head><scriptlanguage="jscript">vargobjXDocument=null;
functionInitialize(){//SaveareferencetotheXDocumentobject.if(typeofwindow.dialogArguments=="object")gobjXDocument=window.dialogArguments;}</script>
<title>ASimpleCustomDialogBox</title></head>
<bodystyle="BACKGROUND-COLOR:window"onLoad="Initialize()"><strong>Clickoneofthefollowingbuttons:</strong>
![Page 1482: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1482.jpg)
<br/><br/><divid="divButtons"tyle="align:center"><inputid="btnShowAlert"style="WIDTH:106px;HEIGHT:24px"onclick='gobjXDocument.UI.Alert(gobjXDocument.DOM.xml);'type="button"size="21"value="ShowAlert"></input><inputid="btnCancel"style="WIDTH:106px;HEIGHT:24px"onclick="window.close();"type="button"size="21"value="Cancel"></input></div></body></html>
![Page 1483: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1483.jpg)
ShowSignatureDialogMethod
DisplaystheMicrosoftOfficeInfoPath2003DigitalSignaturesdialogbox.
expression.ShowSignatureDialog()
expressionRequired.AnexpressionthatreturnsareferencetotheUIobject.
![Page 1484: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1484.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1485: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1485.jpg)
RemarksTheShowSignatureDialogmethodcanbeusedonlyinformsthathavebeenenabledfordigitalsigning.Themethodwillreturnanerrorifusedinaformthatisnotenabledfordigitalsigning.
![Page 1486: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1486.jpg)
ExampleInthefollowingexample,theShowSignatureDialogmethodoftheUIobjectisusedtodisplaytheInfoPathDigitalSignaturesdialogbox:
XDocument.UI.ShowSignatureDialog();
![Page 1487: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1487.jpg)
SignMethod(Index)
ThismethodisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaSignmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheSignmethod.
SignmethodasitappliestotheSignatureobject.
SignmethodasitappliestotheSignedDataBlockobject.
![Page 1488: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1488.jpg)
SignMethod(SignatureObject)
WritestheXMLdigitalsignatureblockandcomputesthecryptographichashforthesigneddata.ThismethodcanonlybecalledfromtheOnSigneventhandler.CallingthismethoddisplaystheDigitalSignaturesdialogbox.
expression.Sign()
expressionRequired.AnexpressionthatreturnsareferencetoaSignatureobject.
![Page 1489: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1489.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1490: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1490.jpg)
RemarksUsetheCreatemethodoftheSignaturescollectiontocreateadigitalsignature.Then,usetheSignmethodtowritethedigitalsignature.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1491: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1491.jpg)
ShowAll
![Page 1492: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1492.jpg)
SignMethod(SignedDataBlockObject)
InvokestheDigitalSignaturesdialogboxtoaddadigitalsignaturetoasetofsigneddatainaMicrosoftOfficeInfoPath2003form.Thenewsignatureusesthedefaultsignaturetemplate,anditisappliedtotheSignedDataBlockobject.
expression.Sign()
expressionRequired.AnexpressionthatreturnsareferencetoaSignedDataBlockobject.
![Page 1493: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1493.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1494: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1494.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1495: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1495.jpg)
SubmitMethod(ADOAdapterObject)
Executesthesubmitoperationontheassociatedadapter.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoaADOAdapterobject.
![Page 1496: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1496.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1497: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1497.jpg)
RemarksFailsiftheSubmitAllowedpropertyoftheADOAdapterobjectisFalse.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1498: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1498.jpg)
SubmitMethod(DAVAdapterObject)
Executesthesubmitoperationontheassociatedadapter.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoaDAVAdapterobject.
![Page 1499: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1499.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1500: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1500.jpg)
RemarksTheSubmitmethodoftheDAVAdapterobjectsubmitstheform'sentireunderlyingXMLdocument,whereastheSubmitDatamethodoftheDAVAdapterobjectcansubmitanyXMLDOMelementordocument.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1501: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1501.jpg)
SubmitMethod(EmailAdapterObject)
Executesthesubmitoperationontheassociatedadapter.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
![Page 1502: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1502.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1503: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1503.jpg)
RemarksTheSubmitmethodoftheEmailAdapterobjectsubmitstheform'sentireunderlyingXMLdocument,whereastheSubmitDatamethodoftheEmailAdapterobjectcansubmitanyXMLDOMelementordocument.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1504: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1504.jpg)
SubmitMethod(HWSAdapterObject)
Executesthesubmitoperationfortheassociatedadapter.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoanHWSAdapterobject.
![Page 1505: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1505.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1506: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1506.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1507: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1507.jpg)
ShowAll
![Page 1508: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1508.jpg)
SubmitMethod(Index)
TheSubmitmethodexecutesthesubmitoperationontheassociateddataadapter.ThismethodisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaSubmitmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheSubmitmethod.
SubmitmethodasitappliestotheADOAdapterobject.
SubmitmethodasitappliestotheDAVAdapterobject.
SubmitmethodasitappliestotheEmailAdapterobject.
SubmitmethodasitappliestotheHWSAdapterobject.
SubmitmethodasitappliestotheSharepointListAdapterobject.
SubmitmethodasitappliestotheWebServiceAdapterobject.
SubmitmethodasitappliestotheXDocumentobject.
SubmitmethodasitappliestotheXMLFileAdapterobject.
![Page 1509: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1509.jpg)
SubmitMethod(SharePointListAdapterObject)
TheSubmitmethodisavailablefortheSharepointListAdapterobjectbut,becausetheSharePointListAdapterobjectisavailableforreceivingdataonly,themethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoaSharepointListAdapterobject.
![Page 1510: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1510.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1511: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1511.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1512: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1512.jpg)
SubmitMethod(WebServiceAdapterObject)
Executesthesubmitoperationontheassociatedadapter.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoaWebServiceAdapterobject.
![Page 1513: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1513.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1514: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1514.jpg)
RemarksFailsiftheSubmitAllowedpropertyoftheWebServiceAdapterobjectisFalse.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1515: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1515.jpg)
ShowAll
![Page 1516: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1516.jpg)
SubmitMethod(XDocumentObject)
ExecutesthepredefinedsubmitoperationinaMicrosoftOfficeInfoPath2003form.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoanXDocumentobject.
![Page 1517: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1517.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1518: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1518.jpg)
RemarksUsingtheSubmitmethodissimilarto,butnotexactlylike,usingthesubmitoperationfromtheInfoPathuserinterface.CallingtheSubmitmethodsimplyperformsthesubmitoperation,butthesubmitoperationmustfirstbeenabledforaformindesignmode.
NoteYoucanwriteacustomsubmitoperationusingtheOnSubmitRequestevent,andthenyoucanprogrammaticallycalltheeventusingtheSubmitmethod.
![Page 1519: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1519.jpg)
ExampleInthefollowingexample,theSubmitmethodoftheXDocumentobjectisusedtosubmittheformusingthepredefinedsubmitoperation:
XDocument.Submit();
![Page 1520: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1520.jpg)
SubmitMethod(XMLFileAdapterObject)
TheSubmitmethodisavailablefortheXMLFileAdapterobjectbut,becausetheXMLFileAdapterobjectisavailableforreceivingdataonly,themethodwillalwaysgeneratearun-timeerrorwhenitiscalledonthatobject.
expression.Submit()
expressionRequired.AnexpressionthatreturnsareferencetoaXMLFileAdapterobject.
![Page 1521: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1521.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1522: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1522.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1523: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1523.jpg)
ShowAll
![Page 1524: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1524.jpg)
SubmitDataMethod(DavAdapterObject)
SubmitsthespecifiedDOMelementorDOMdocumenttoadataadapter.
expression.SubmitData(ByValpDataAsIXMLDOMNode)
expressionRequired.AnexpressionthatreturnsareferencetoaDAVAdapterobject.
pDataRequiredIXMLDOMNode.TheXMLdatathatistobemergedintothecurrentlyopenform.
![Page 1525: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1525.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1526: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1526.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1527: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1527.jpg)
ShowAll
![Page 1528: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1528.jpg)
SubmitDataMethod(EmailAdapterObject)
SubmitsthespecifiedDOMelementorDOMdocumenttoadataadapter.
expression.SubmitData(ByValpDataAsIXMLDOMNode)
expressionRequired.AnexpressionthatreturnsareferencetoanEmailAdapterobject.
pDataRequiredIXMLDOMNode.TheXMLdatathatistobemergedintothecurrentlyopenform.
![Page 1529: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1529.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1530: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1530.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1531: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1531.jpg)
ShowAll
![Page 1532: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1532.jpg)
SubmitDataMethod(Index)
TheSubmitDatamethodexecutesthesubmitoperationfortheassociateddataadapter.ThismethodisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickaSubmitDatamethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheSubmitDatamethod.
SubmitDatamethodasitappliestotheDAVAdapterobject.
SubmitDatamethodasitappliestotheEmailAdapterobject.
![Page 1533: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1533.jpg)
SwitchViewMethod
ChangestheactiveviewofaMicrosoftOfficeInfoPath2003formtoaspecifiedview.
expression.SwitchView(ByValbstrNameAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheViewobject.
bstrNameRequiredString.Thenameoftheviewtoswitchto.Ifanemptystringisused,thedefaultviewisdisplayed.
![Page 1534: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1534.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 1535: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1535.jpg)
RemarksIfanemptystringisusedasthebstrNameparameter,theviewischangedtothedefaultviewoftheform.
![Page 1536: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1536.jpg)
ExampleInthefollowingexample,theSwitchViewmethodoftheViewobjectisusedtochangethecurrentviewtothedefaultview:
XDocument.View.SwitchView("");
![Page 1537: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1537.jpg)
TodayMethod
ReturnsaVariantcontainingthecurrentsystemdateinISOformat(yyyy-mm-dd).
expression.Today()AsVariant
expressionRequired.AnexpressionthatreturnsareferencetotheDateobject.
returnsAVariantcontainingthecurrentsystemdate.
![Page 1538: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1538.jpg)
SecurityLevel0:Canbeaccessedwithoutrestrictions.
![Page 1539: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1539.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1540: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1540.jpg)
ExampleInthefollowingexample,thevariablecurrentDateissettothecurrentsystemdate.
varcurrentDate=XDocument.Util.Date.Today();
![Page 1541: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1541.jpg)
UninitMethod
Definesamethodthatmustbeprovidedbythedevelopertoperformanycleanuproutinesthatarerequiredbeforeaninstanceofthecontrolisremovedfromaview.
expression.Uninit()
expressionRequired.AnexpressionthatreturnsareferencetotheInfoPathControlobject.
![Page 1542: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1542.jpg)
RemarksInfoPathcallstheUninitmethodimmediatelybeforethecontrolisremovedfromtheviewanddestroyed.NotethatbecauseInfoPathformsmakeuseofXSLtransformstorepresentviews,anychangesinthedataorexplicitcallstotheobjectmodelcancauseInfoPathtoautomaticallysynchronizetheviewwiththedatathatiscontainedinaform'sunderlyingXMLdocument,whichdestroysandrecreatestheview.ThismeansthatActiveXcontrolsarelikelytobecreatedanddestroyedmuchmoreoftenwithinagivensessionthancontrolsinVisualBasicformsorWebforms.ActiveXcontrolswhichneedtopreservestateinformationindependentofthebounddata,suchasthestateofthescrollposition,shouldcreateroutinesintheInitmethodofthecontrolthatusetheSetNamedNodePropertymethodtosavethisinformation,andusetheGetNamedNodePropertymethodtorestorestateinformationduringtheInitmethodcall.
TheInfoPathControlandInfoPathControlSiteobjectsandtheirmethodsandpropertiesaredesignedtobeusedonlyfromtheimplementationofanActiveXcontrol.TheseobjectsandtheirmembersarenotsupportedinInfoPathformcode.FormoreinformationonhowtocreateActiveXcontrolsthatworkwithInfoPath,seetheInfoPathDeveloperCenter.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.AnyformtemplatethatcontainsaviewwithanActiveXcontrolthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1543: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1543.jpg)
ShowAll
![Page 1544: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1544.jpg)
UnregisterSolutionMethod(ApplicationObject)
UninstallsthespecifiedMicrosoftOfficeInfoPath2003formtemplate.
expression.UnregisterSolution(ByValbstrSolutionURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetoanApplicationobject.
bstrSolutionURIRequiredString.ThestringthatspecifiestheUniformResourceIdentifier(URI)oftheformtemplate.
![Page 1545: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1545.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1546: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1546.jpg)
RemarksIftheformtemplatecannotbeunregistered,theUnregisterSolutionmethodwillreturnanerror.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1547: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1547.jpg)
ExampleInthefollowingVisualBasicforApplications(VBA)example,theUnregisterSolutionmethodoftheApplicationobjectisusedtouninstallaformtemplate:
PublicSubUninstallForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.Application")
'UnregistertheInfoPathformtemplate.objIP.UnregisterSolution("C:\\MyForms\\MyFormTemplate.xsn")MsgBox("TheInfoPathformtemplatehasbeenunregistered.")
SetobjIP=Nothing
EndSub
![Page 1548: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1548.jpg)
ShowAll
![Page 1549: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1549.jpg)
UnregisterSolutionMethod(ExternalApplicationObject)
UninstallsthespecifiedMicrosoftOfficeInfoPath2003formtemplate.
expression.UnregisterSolution(ByValbstrSolutionURIAsString)
expressionRequired.AnexpressionthatreturnsareferencetotheExternalApplicationobject.
bstrSolutionURIRequiredString.ThestringvaluethatspecifiestheUniformResourceIdentifier(URI)oftheformtemplate.
![Page 1550: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1550.jpg)
SecurityLevel3:Canbeaccessedonlybyfullytrustedforms.
![Page 1551: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1551.jpg)
RemarksIftheformtemplatecannotbeunregistered,theUnregisterSolutionmethodwillreturnanerror.
![Page 1552: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1552.jpg)
ExampleInthefollowingexample,whichiswrittenintheVisualBasicforApplications(VBA)programminglanguage,theUnregisterSolutionmethodoftheExternalApplicationobjectisusedtouninstallaformtemplate:
PublicSubUninstallForm()
DimobjIPAsObject
'CreateareferencetotheExternalApplicationobject.SetobjIP=CreateObject("InfoPath.ExternalApplication")
'UnregistertheInfoPathformtemplate.objIP.UnregisterSolution("C:\\MyForms\\MyFormTemplate.xsn")MsgBox("TheInfoPathformtemplatehasbeenunregistered.")
SetobjIP=Nothing
EndSub
![Page 1553: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1553.jpg)
ShowAll
![Page 1554: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1554.jpg)
UnregisterSolutionMethod(Index)
TheUnregisterSolutionmethoduninstallsthespecifiedMicrosoftOfficeInfoPath2003formtemplate.ThismethodisimplementedinseveralMicrosoftOfficeInfoPath2003objectmodelcollections.ClickanUnregisterSolutionmethodlinkbelowtoviewtheHelptopicforaspecificimplementationoftheUnregisterSolutionmethod.
UnregisterSolutionmethodasitappliestotheApplicationobject.
UnregisterSolutionmethodasitappliestotheExternalApplicationobject.
![Page 1555: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1555.jpg)
ShowAll
![Page 1556: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1556.jpg)
OnAfterChangeEvent
Occursafterchangestoaform'sunderlyingXMLdocumenthavebeenacceptedandaftertheOnValidateeventhasoccurred.
Functionnode::OnAfterChange(ByRefpDataDOMEventAsDataDOMEvent)
pDataDOMEventRequiredDataDOMEvent.AreferencetotheDataDOMEventobject.
![Page 1557: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1557.jpg)
RemarksThiseventhandlerdoesnotallowuserstocancelanoperation.
TheOnAfterChangeeventistypicallyusedforchangingdatainaformafterotherchangeshaveoccurred—forexample,makingcalculationsorchangingthestructureofaform'sunderlyingXMLdocument.
NoteInsomecases,eventsrelatedtochangesinaform'sunderlyingXMLdocumentmayoccurmorethanonce.Forexample,whenexistingdataischanged,aninsertanddeleteoperationoccurs.
![Page 1558: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1558.jpg)
ExampleInthefollowingexamplefromtheEventsdevelopersampleform,theOnAfterChangeeventhandlerisusedtocallacustomfunctionthatperformscalculations:
functionmsoxd__ContactDates::OnAfterChange(eventObj){if(eventObj.IsUndoRedo){//AnundoorredooperationhasoccurredandtheDOMisread-only.return;}CalculateTotalCampaignCost();}
![Page 1559: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1559.jpg)
ShowAll
![Page 1560: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1560.jpg)
OnAfterImportEvent
Occursaftertheimport(ormerge)operationhassuccessfullycompleted.
FunctionXDocument::OnAfterImport(ByRefpEventAsDocEvent)
pEventRequiredDocEvent.AreferencetotheDocEventobject.
![Page 1561: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1561.jpg)
RemarksThiseventhandlerdoesnotallowuserstocancelanoperation.
Ifthemergeoperationincludesmergingmultipleforms,theOnAfterImporteventoccursonlyafterallformshavebeenmergedandthecompleteoperationissuccessful.
NoteTheOnAfterImporteventhandlercannotbecreatedusingMicrosoftOfficeInfoPath2003designmode;itmustbecreatedmanually.
CreatingtheOnAfterImporteventhandler
![Page 1562: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1562.jpg)
ExampleInthefollowingexample,theOnAfterImporteventhandlerisusedtodisplayamessageboxthatinformstheuserthatthemergeoperationcompletedsuccessfully:
functionXDocument::OnAfterImport(eventObj){XDocument.UI.Alert("Mergeoperationwassuccessful.")}
![Page 1563: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1563.jpg)
ShowAll
![Page 1564: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1564.jpg)
OnBeforeChangeEvent
Occursafterchangestoaform'sunderlyingXMLdocumenthavebeenmadebutbeforethechangesareaccepted.
Functionnode::OnBeforeChange(ByRefpDataDOMEventAsDataDOMEvent)
pDataDOMEventRequiredDataDOMEvent.AreferencetotheDataDOMEventobject.
![Page 1565: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1565.jpg)
RemarksThiseventhandlerallowsuserstocancelanoperation.
DuringtheOnBeforeChangeevent,theform'sunderlyingXMLdocumentisplacedinread-onlymode.IftheReturnStatuspropertyoftheDataDOMEventobjectissettoFalse,MicrosoftOfficeInfoPath2003rejectsthechangesthatweremadeandamessageboxisdisplayedtotheuser.IfanerroroccursinthescriptingcodefortheOnBeforeChangeeventhandler,InfoPathrejectsthechangesandrestoresthedatatoitspreviousstate.
Notes
ItisbesttoavoidswitchingviewsduringtheOnBeforeChangeevent;changeshavenotyetbeenaccepted,andswitchingtoanotherviewmayresultinanerror.
Insomecases,eventsrelatedtochangesinaform'sunderlyingXMLdocumentmayoccurmorethanonce.Forexample,whenexistingdataischanged,aninsertanddeleteoperationoccurs.
IfavalidationerrorisencounteredinanyOnBeforeChangeeventhandler,thedocumentfailstoload.Atry-catchblockintheOnLoadeventcanbeusedtocatchthisvalidationfailureandtoloadthedocumentdespitetheerror.
![Page 1566: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1566.jpg)
ExampleInthefollowingexamplefromtheEventsdevelopersampleform,theOnBeforeChangeeventhandlerisusedtovalidatethedatainafield.Ifthedataisnotvalid,theReturnStatuspropertyoftheDataDOMEventobjectisusedtorejectthechanges.
functionmsoxd__RepVisitDt::OnBeforeChange(eventObj){varoNode=XDocument.DOM.selectSingleNode("/Customers/CustomerInfo/ContactDates/PhoneContactDt");
if(!oNode.text){eventObj.ReturnMessage="ThePhoneContactStartdatemustbesetpriortotheRepresentativeVisitdate.";eventObj.ReturnStatus=false;return;}
//Ifthedataisvalid,eventObj.ReturnStatus=true.eventObj.ReturnStatus=true;return;}
![Page 1567: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1567.jpg)
ShowAll
![Page 1568: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1568.jpg)
OnClickEvent
OccurswhenabuttoncontrolisclickedwithinaviewinaMicrosoftOfficeInfoPath2003form.
FunctionScriptID::OnClick(ByRefeventObjAsDocActionEvent)
eventObjRequiredDocActionEvent.AreferencetotheDocActionEventobject.
![Page 1569: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1569.jpg)
RemarksThiseventhandlerdoesnotallowuserstocancelanoperation.
NoteTheOnClickeventfortheInfoPathbuttoncontrolistheonlycontroleventthatissupported.
![Page 1570: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1570.jpg)
ExampleInthefollowingexamplefromtheEventsdevelopersampleform,theOnClickeventhandlerisusedtoperformdatavalidationonsomeofthefieldscontainedintheNewCustomerviewwhenauserclicksabuttontoswitchtoanotherview:
functionbtnSwitchContact::OnClick(eventObj){if(XDocument.View.Name=="NewCustomer"){if(XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/CustomerName').text==""&&XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/CustomerID').text==""){XDocument.UI.Alert("TheCustomerNameandIDmust"+"befilledinpriortoswitchingtheview.");return;}elseif(XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/CustomerName').text==""){XDocument.UI.Alert("TheCustomerNamemustbefilled"+"inpriortoswitchingtheview.");return;}elseif(XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/CustomerID').text==""){XDocument.UI.Alert("TheCustomerIDmustbefilledin"+"priortoswitchingtheview.");return;
![Page 1571: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1571.jpg)
}}XDocument.View.SwitchView('ContactCustomer');}
![Page 1572: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1572.jpg)
ShowAll
![Page 1573: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1573.jpg)
OnContextChangeEvent
Occursafterthecontextnodechanges.
FunctionXDocument::OnContextChange(ByRefpEventAsDocContextChangeEvent)
pEventRequiredDocContextChangeEvent.AreferencetotheDocContextChangeEventobject.
![Page 1574: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1574.jpg)
RemarksThecontextnodeistheXMLDOMnodemappedtotheviewthatcorrespondstothecontainer(oritem)withthecurrentXMLselection.Forexample,ifthecurrentselectionintheviewisinatextbox,thecontextnodeisthenodetowhichthetextboxisbound.Ifthecurrentselectionisarepeatingsection,thecontextnodeisthenodeforthatitem.Iftworepeatingsectionsareselected,thecontextnodeistheancestorXMLDOMforbothitemsmappedtotheview.
TheOnContextChangeeventisasynchronous.Itdoesnotfireoneverychangeinthecontextnode;instead,itfiresaftertheapplicationhasstoppedprocessingotherevents.
Whenthedocumentloads,orwhenaviewchangeoccurs,theOnContextChangeeventwilloccuraftertheOnLoadandOnSwitchVieweventsoccur.
WhentheIsUndoRedopropertyoftheDocContextChangeEventobjectisTrue,thecontextchangewascausedbyauser'sundoorredooperationratherthananexplicitusercontextchange.OperationsperformedwithintheOnContextChangeeventhandlerthatmodifytheXMLDOMshouldbeavoidedinresponsetoundoorredooperations,becausetheymayinterferewiththeuser'sintentiontorevertdatatoapreviousstate.
Forrichtextboxcontrols,theOnContextChangeeventisnotraisedforcontextchangeswithintheXHTMLcontent—thatis,selectionchangestotherichtextinthecontrol.TheGetContextNodesmethodcanbeusedtodeterminetheselectionwithinrichtextboxcontrols.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1575: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1575.jpg)
ExampleInthefollowingexample,instructionsspecifictodifferentcontextnodesinaformareaddedtothebodyofacustomtaskpane:
functionXDocument::OnContextChange(eventObj){varoContextNode=eventObj.Context;
varstrText="";if(oContextNode.nodeName=="my:root")strText="";elseif(oContextNode.nodeName=="my:singleName")strText="Typeyourfullname.";elseif(oContextNode.nodeName=="my:webSite")strText="TypetheWebaddressofyourpersonalwebpage.";
varoTaskPane=XDocument.View.Window.TaskPanes.Item(0);oTaskPane.HTMLDocument.body.innerText=strText;}
![Page 1576: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1576.jpg)
ShowAll
![Page 1577: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1577.jpg)
OnLoadEvent
OccursafteraMicrosoftOfficeInfoPath2003formhasbeenloaded,butbeforeanyviewshavebeeninitialized.
FunctionXDocument::OnLoad(ByRefpEventAsDocReturnEvent)
pEventRequiredDocReturnEvent.AreferencetotheDocReturnEventobject.
![Page 1578: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1578.jpg)
RemarksThiseventhandlerallowsuserstocancelanoperation.
IftheReturnStatuspropertyoftheDocReturnEventobjectissettoFalse,InfoPathcancelstheloadingoftheform.IfanerroroccursinthescriptingcodefortheOnLoadeventhandler,InfoPathignoresitandreliesontheReturnStatuspropertyoftheDocReturnEventobject.IftheReturnStatuspropertyisnotexplicitlyset,thedefaultvalueofTrueisused.
NoteWhentheOnLoadeventoccurs,theviewisnotinitializedandtheXSLTransformation(XSLT)usedfortheviewisnotyetloaded.TheXDocumentobjectisnotaddedtotheXDocumentscollectionuntilaftertheOnLoadeventhasoccurred.However,theXDocumentobjectisavailableduringtheOnLoadevent.
![Page 1579: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1579.jpg)
ExampleInthefollowingexamplefromtheSalesReportsampleform,theOnLoadeventhandlerisusedtodeterminewhethertheformhasbeendigitallysigned,andifithasn't,toinitializesomedatevaluesusingacombinationofscriptingfunctionsandcustomfunctions:
functionXDocument::OnLoad(objEvent){//AvoidDOMupdateswhenthedocumenthasbeendigitallysigned.if(XDocument.IsSigned)return;
vartoday=newDate();initializeNodeValue("/sls:salesReport/sls:date",getDateString(today));initializeNodeValue("/sls:salesReport/sls:year",today.getFullYear());}
ThisOnloadeventhandlerexampledependsontwocustomfunctions,whicharealsofromtheSalesReportsampleform:initializeNodeValueandsetNodeValue.
functioninitializeNodeValue(xpath,strValue){varxmlNode=getNode(xpath);
//Setthenodevalue*ONLY*ifthenodeisempty.if(xmlNode.text=="")setNodeValue(xmlNode,strValue);}
functionsetNodeValue(xpath,value){varxmlNode=getNode(xpath);
![Page 1580: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1580.jpg)
if(!xmlNode)return;
//Thexsi:nilneedstoberemovedbeforewesetthevalue.if(value!=""&&xmlNode.getAttribute("xsi:nil"))xmlNode.removeAttribute("xsi:nil");
//Settingthevaluewouldmarkthedocumentasdirty.//Let'sdothatifthevaluehasreallychanged.if(xmlNode.text!=value)xmlNode.text=value;}
![Page 1581: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1581.jpg)
ShowAll
![Page 1582: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1582.jpg)
OnMergeRequestEvent
OccurswhenthemergeoperationisinvokedeitherfromtheMicrosoftOfficeInfoPath2003userinterfaceorfromthecommandlinebyusingthe/aggregateoption.
FunctionXDocument::OnMergeRequest(ByRefpEventAsMergeEvent)
pEventRequiredMergeEvent.AreferencetotheMergeEventobject.
![Page 1583: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1583.jpg)
RemarksIftheReturnStatuspropertyoftheMergeEventobjectissettoFalse,InfoPathcancelsthemergeoperation.IfanerroroccursinthecodefortheOnMergeRequesteventhandler,InfoPathignorestheerrorandreliesontheReturnStatuspropertyoftheMergeEventobject.IftheReturnStatuspropertyisnotexplicitlyset,thedefaultvalueofFalseisused.
ForInfoPathformsstoredinaWindowsSharePointServicesformlibrary,theOnMergeRequesteventalsooccurswhentheMergeDocuments2methodoftheOpenXMLDocumentscontrolisexecuted.FormoreinformationontheOpenXMLDocumentscontrol,seetheSharePointProductsandTechnologies2003SoftwareDevelopmentKit,whichisavailableontheMicrosoftSharePointProductsandTechnologiesWebsite.
IfyoucreateaneventhandlerfortheOnMergeRequesteventofaformtemplate,youmustedittheformdefinitionfile(.xsf)tosettheuseScriptHandlerattributeto"yes"beforeitwillrun.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1584: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1584.jpg)
ExampleInthefollowingexample,theOnMergeRequesteventhandlerperformsamergeoperation,anditsetsvariablestoindicatethestatusofthemergeoperation:
varg_fMerging=false;
functionXDocument::OnMergeRequest(eventObj){//Setglobalpropertytoindicatethatformsarebeingmerged.if(eventObj.Index==0)g_fMerging=true;
XDocument.ImportDOM(eventObj.DOM);eventObj.ReturnStatus=true;if(eventObj.Index+1==eventObj.Count){g_fMerging=false;XDocument.UI.Alert("Yourrequesttomerge"+eventObj.Count+"filesisnowcomplete.");}}
![Page 1585: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1585.jpg)
OnSaveRequestEvent
OccurswhenthesaveoperationisinvokedfromtheMicrosoftOfficeInfoPath2003userinterfaceorbyusingtheSaveorSaveAsmethodoftheXDocumentobjectintheInfoPathobjectmodel.
FunctionXDocument::OnSaveRequest(ByRefpEventAsSaveEvent)
pEventRequiredSaveEvent.AreferencetotheSaveEventobject.
![Page 1586: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1586.jpg)
RemarksIftheReturnStatuspropertyoftheSaveEventobjectissettoFalse,InfoPathcancelsthesaveoperation.IfanerroroccursinthecodefortheOnSaveRequesteventhandler,InfoPathignorestheerrorandreliesontheReturnStatuspropertyoftheSaveEventobject.IftheReturnStatuspropertyisnotexplicitlyset,thedefaultvalueofFalseisused.
TheReturnStatuspropertyworksinconjunctionwiththeIsCancelledpropertywhentheInfoPathformisclosing.Ifthedocumenthaschangesthathavenotbeensavedandtheusercancelsthesaveoperation,theIsCancelledpropertycanbesettoTruetoallowInfoPathtoclose.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1587: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1587.jpg)
ExampleInthefollowingexample,theOnSaveRequesteventhandlerisusedtocreateanXMLHTTPobjectfortransportingtheform'sunderlyingXMLdocument:
functionXDocument::OnSaveRequest(eventObj){ //Writethecodetoberunbeforesavinghere.
XDocument.UI.Alert("Beginsavingform.");
eventObj.IsCancelled=eventObj.PerformSaveOperation();
//Writethecodetoberunaftersavinghere.
XDocument.UI.Alert("Formsaved.");
eventObj.ReturnStatus=true;}
![Page 1588: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1588.jpg)
OnSignEvent
Occursafterasetofsigneddatahasbeenselectedtosign.
FunctionXDocument::OnSign(ByRefpEventAsSignEvent)
pEventRequiredSignEvent.AreferencetotheSignEventobject.
![Page 1589: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1589.jpg)
RemarksYoucanusethiseventtoaddadditionaldatatothedigitalsignature.Forexample,youcanadddatafromatrustedtimestampserver,oraddaserver-sidecountersignatureofthetransaction.Youcanalsousethiseventtoblocksigningifthecurrentuserisnotamemberofaparticulargroup.
NoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1590: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1590.jpg)
ShowAll
![Page 1591: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1591.jpg)
OnSubmitRequestEvent
OccurswhenthesubmitoperationisinvokedeitherfromtheMicrosoftOfficeInfoPath2003userinterfaceorbyusingtheSubmitmethodoftheXDocumentobjectintheInfoPathobjectmodel.
FunctionXDocument::OnSubmitRequest(ByRefpEventAsDocReturnEvent)
pEventRequiredDocReturnEvent.AreferencetotheDocReturnEventobject.
![Page 1592: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1592.jpg)
RemarksThiseventhandlerallowsuserstocancelanoperation.
IftheReturnStatuspropertyoftheDocReturnEventobjectissettoFalse,InfoPathcancelsthesubmitoperation.IfanerroroccursinthescriptingcodefortheOnSubmitRequesteventhandler,InfoPathignoresitandreliesontheReturnStatuspropertyoftheDocReturnEventobject.IftheReturnStatuspropertyisnotexplicitlyset,thedefaultvalueofFalseisused.
![Page 1593: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1593.jpg)
ExampleInthefollowingexample,theOnSubmitRequesteventhandlerisusedtocreateanXMLHTTPobjectfortransportingtheform'sunderlyingXMLdocument:
functionXDocument::OnSubmitRequest(eventObj){//CreateanXMLHTTPobjectfordocumenttransport.try{varobjXmlHttp=newActiveXObject("MSXML2.XMLHTTP");}catch(ex){XDocument.UI.Alert("CouldnotcreateMSXML2.XMLHTTPobject.\r\n"+ex.number+"-"+ex.description);
//ReturnwitheventObj.ReturnStatus==false,//becausenochangewasmadetothisvalue.return;}
//PosttheXMLdocumenttostrUrl.objXmlHttp.open("POST",strUrl,false);try{objXmlHttp.send(XDocument.DOM.xml);}catch(ex){XDocument.UI.Alert("Couldnotpost(ASP)documentto"+
![Page 1594: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1594.jpg)
strUrl+"\r\n"+ex.number+"-"+ex.description);
//ReturnwitheventObj.ReturnStatus==false.return;}//Ifhere,thesubmitoperationishasbeensuccessful.eventObj.ReturnStatus=true;}
![Page 1595: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1595.jpg)
ShowAll
![Page 1596: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1596.jpg)
OnSwitchViewEvent
OccursafteraviewinaMicrosoftOfficeInfoPath2003formhasbeensuccessfullyswitched.
FunctionXDocument::OnSwitchView(ByRefpEventAsDocEvent)
pEventRequiredDocEvent.AreferencetotheDocEventobject.
![Page 1597: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1597.jpg)
RemarksThiseventhandlerdoesnotallowuserstocancelanoperation.
NoteTheOnSwitchVieweventalsooccurswhenaformisfirstopened.
![Page 1598: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1598.jpg)
ExampleInthefollowingexamplefromtheEventsdevelopersampleform,theOnSwitchVieweventhandlerisusedtocheckthenameofthecurrentview.Iftheviewhasthename"ArchiveCustomer,"dataisaddedtotheform'sunderlyingXMLdocument.
functionXDocument::OnSwitchView(eventObj){varoDate=newDate();
if(XDocument.View.Name=="ArchiveCustomer"){varoNotesNode=XDocument.DOM.selectSingleNode("/Customers/CustomerInfo/Notes");varoDivNode=XDocument.DOM.createNode(1,"div","http://www.w3.org/1999/xhtml");
oDivNode.text="Noterecorded"+oDate.toString();oNotesNode.appendChild(oDivNode);}}
![Page 1599: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1599.jpg)
ShowAll
![Page 1600: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1600.jpg)
OnValidateEvent
Occursafterchangestoaform'sunderlyingXMLdocumenthavebeenacceptedbutbeforetheOnAfterChangeeventoccurs.
Functionnode::OnValidate(ByRefpDataDOMEventAsDataDOMEvent)
pDataDOMEventRequiredDataDOMEvent.AreferencetotheDataDOMEventobject.
![Page 1601: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1601.jpg)
RemarksThiseventhandlerdoesnotallowuserstocancelanoperation.
DuringtheOnValidateevent,theform'sunderlyingXMLdocumentisplacedinread-onlymode.
TheOnValidateeventistypicallyusedforhandlingerrorsandworkingwiththeErrorscollection—forexample,addingnewerrorsordeletingexistingones.
NoteInsomecases,eventsrelatedtochangesinaform'sunderlyingXMLdocumentmayoccurmorethanonce.Forexample,whenexistingdataischanged,aninsertanddeleteoperationoccurs.
![Page 1602: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1602.jpg)
ExampleInthefollowingpartialexamplefromtheEventsdevelopersampleform,theOnValidateeventhandlerisusedtovalidatecontactinformation.Ifthedataisinvalid,theReportErrormethodoftheDataDOMEVentobjectisusedtocreateanerror.
functionmsoxd__ContactDates::OnValidate(eventObj){variNumberOfDays=0;varobjEmailDate=XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/ContactDates/EmailCampaignDt');varobjPhoneContactDate=XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/ContactDates/PhoneContactDt');varobjRepVisitDate=XDocument.DOM.selectSingleNode('/Customers/CustomerInfo/ContactDates/RepVisitDt');
//Firstvalidatetheemailandphonecontactdates.if(!objEmailDate||!objPhoneContactDate)return;
varemailDate=newDate(objEmailDate.text.replace(/(.*)-(.*)-(.*)/,"$2-$3-$1"));varphoneContactDate=newDate(objPhoneContactDate.text.replace(/(.*)-(.*)-(.*)/,"$2-$3-$1"));
if(isNaN(emailDate)||isNaN(phoneContactDate))return;
//Getthenumberofdaysbetweenthetwodates.iNumberOfDays=GetElapsedDays(emailDate,phoneContactDate);
if(iNumberOfDays<REQUIRED_PHONE_EMAIL_INTERVAL)
![Page 1603: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1603.jpg)
eventObj.ReportError(objPhoneContactDate,"ThePhoneContactStartdatemustoccurafter"+REQUIRED_PHONE_EMAIL_INTERVAL+"daysfromthestartoftheEmailCampaign.",false);...}
![Page 1604: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1604.jpg)
ShowAll
![Page 1605: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1605.jpg)
OnVersionUpgradeEvent
OccurswhentheversionnumberofaMicrosoftOfficeInfoPath2003formbeingopenedisolderthantheversionnumberoftheformtemplateonwhichitisbased.
FunctionXDocument::OnVersionUpgrade(ByRefpEventAsVersionUpgradeEvent)
pEventRequiredVersionUpgradeEvent.AreferencetotheVersionUpgradeEventobject.
![Page 1606: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1606.jpg)
RemarksThiseventhandlerallowsuserstocancelanoperation.
DuringtheOnVersionUpgradeevent,theform'sunderlyingXMLdocumentisplacedinread-onlymode,anditisnotvalidatedagainsttheform'sassociatedXMLSchema.IftheReturnStatuspropertyoftheVersionUpgradeEventobjectissettoFalse,InfoPathcancelstheopeningoftheform.IfanerroroccursinthescriptingcodefortheOnVersionUpgradeeventhandler,InfoPathignoresitandreliesontheReturnStatuspropertyoftheVersionUpgradeEventobject.IftheReturnStatuspropertyisnotexplicitlyset,thedefaultvalueofTrueisused.
![Page 1607: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1607.jpg)
ExampleInthefollowingexamplefromtheEventsdevelopersampleform,theOnVersionUpgradeeventhandlerisusedtodeterminewhethertheformwiththeincorrectolderversionnumbercontainsanEmailAddresselement.Ifitdoesnot,oneisadded.
functionXDocument::OnVersionUpgrade(eventObj){if(!XDocument.DOM.selectSingleNode("/Customers/CustomerInfo/EmailAddress")){try{//Createthenewelement.varobjItemNode=XDocument.DOM.selectSingleNode("/Customers/CustomerInfo").ownerDocument.createElement("EmailAddress");
//Addthenew<item>elementtotheXMLdocumentasa//childofthe<order>element.XDocument.DOM.selectSingleNode("/Customers/CustomerInfo").appendChild(objItemNode);eventObj.ReturnStatus=true;}catch(ex){XDocument.UI.Alert("Therewasanerrorinsertingthe"+"<EmailAddress>node.\nDescription:"+ex.description);eventObj.ReturnStatus=false;}}}
![Page 1608: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1608.jpg)
ShowAll
![Page 1609: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1609.jpg)
XdCertificateStatusEnumeration
TheXdCertificateStatusenumerationisusedtodeterminethestatusofadigitalcertificate.TheseenumeratedvaluesarereturnedbytheStatuspropertyoftheCertificateobject.
Name Value DescriptionxdCertificateStatusError 0 Thestatusofthespecifieddigital
certificatecannotbedetermined.xdCertificateStatusValid 1 Thespecifieddigitalcertificateis
valid.xdCertificateStatusExpired 2 Thespecifieddigitalcertificate
hasexpired.xdCertificateStatusNotTrusted 3 Thespecifieddigitalcertificateis
nottrusted.xdCertificateStatusRevoked 4 Thespecifieddigitalcertificate
hasbeenrevoked.
![Page 1610: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1610.jpg)
XdConfirmButtonsEnumeration
TheXdConfirmButtonsenumerationisusedtodeterminethetypeofbuttonstobedisplayedinamessagebox.TheseenumeratedvaluesareusedbytheConfirmmethodoftheUIobject.
Name Value DescriptionxdOKCancel 1 OKandCancelbuttonsaredisplayed.xdYesNoCancel 3 Yes,No,andCancelbuttonsaredisplayed.xdYesNo 4 YesandNobuttonsaredisplayed
![Page 1611: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1611.jpg)
XdConfirmChoiceEnumeration
TheXdConfirmChoiceenumerationisusedtodeterminewhichbuttonisclickedinamessagebox.TheseenumeratedvaluesareusedbytheConfirmmethodoftheUIobject.
Name Value DescriptionxdOK 1 TheOKbuttonwasclicked.xdCancel 2 TheCancelbuttonwasclicked.xdYes 6 TheYesbuttonwasclicked.xdNo 7 TheNobuttonwasclicked.
![Page 1612: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1612.jpg)
ShowAll
![Page 1613: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1613.jpg)
XdDocumentVersionModeEnumeration
TheXdDocumentVersionModeenumerationisusedtodeterminehowaMicrosoftOfficeInfoPath2003formwillbeopened.TheseenumeratedvaluesareusedasargumentstotheNewandOpenmethodsoftheExternalApplicationobject.
Name Value DescriptionxdCanOpenInReadOnlyMode 8 Theformisopenedin
read-onlymode.xdCanTransformSigned 16 Theformisopenedandits
transformapplied,eventhoughithasadigitalsignature.
xdFailOnVersionMismatch 0 Theformiscreatedoropenedonlyifitisaccessibleanditsversionnumbermatchestheversionnumberoftheformtemplate.
xdFailOnVersionOlder 1 Theformiscreatedoropenedonlyifitisaccessibleanditsversionnumberisnotolderthantheversionnumberoftheformtemplate.
xdIgnoreDataAdaptersQueryFailure 64 Theformisopenedevenifthequeryassociatedwithitsdataadapterfailstoreturndata.
xdPromptTransformSigned 32 TheformisopenedandtheDigitalSignaturesdialogboxisdisplayedbeforetheform'stransformisapplied.
xdUseExistingVersion 2 Theformiscreatedoropenedusingtheexisting
![Page 1614: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1614.jpg)
versionnumberoftheformtemplate.
![Page 1615: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1615.jpg)
XdMachineOnlineStateEnumeration
TheXdMachineOnlineStateenumerationisusedtodeterminethestateoftheconnectionfortheclientcomputer.TheseenumeratedvaluesarereturnedbytheMachineOnlineStatepropertyoftheApplicationobject.
Name Value DescriptionxdOffline 0 Theclientcomputerisnotconnectedtothe
network.xdOnline 1 Theclientcomputerisconnectedtothe
network.xdIEIsInOfflineMode 2 MicrosoftInternetExplorerisinoffline
mode.
![Page 1616: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1616.jpg)
XdSignatureRelationEnumeration
TheXdSignatureRelationenumerationisusedtodeterminehowdigitalsignaturescanbeaddedtoaSignedDataBlockobject.Theseenumeratedvaluesareread-only.
Name Value DescriptionxdSignatureRelationCoSign 2 Specifiesthatsignaturesare
independentofeachotherintheSignedDataBlockobject.
xdSignatureRelationCounterSign 3 SpecifiesthateachsignaturesignstheprecedingsignatureintheSignedDataBlockobject.
xdSignatureRelationSingle 1 SpecifiesthatonlyonesignaturecanexistintheSignedDataBlockobject.
![Page 1617: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1617.jpg)
ShowAll
![Page 1618: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1618.jpg)
XdSignatureStatusEnumeration
TheXdSignatureStatusenumerationisusedtodeterminethestatusofadigitalsignature.TheseenumeratedvaluesarereturnedbytheStatuspropertyoftheSignatureobject.
Name Value DescriptionxdSignatureStatusError 0 Thestatusofthespecified
digitalsignaturecannotbedetermined.
xdSignatureStatusValid 1 Thespecifieddigitalsignatureisvalid.
xdSignatureStatusInvalid 2 Thespecifieddigitalsignatureisinvalid.
xdSignatureStatusUnsupported 3 ThespecifieddigitalsignatureisnotsupportedbyMicrosoftOfficeInfoPath2003.
![Page 1619: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1619.jpg)
ShowAll
![Page 1620: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1620.jpg)
XdTaskPaneTypeEnumeration
TheXdTaskPaneTypeenumerationisusedtodeterminethetypeofMicrosoftOfficeInfoPath2003taskpanethatiscurrentlydisplayed.TheseenumeratedvaluesarereturnedbytheTypepropertyoftheTaskPaneobject.ThesevaluesarealsousedasthepositionalargumenttotheItempropertyoftheTaskPanescollection.
Name Value DescriptionxdTaskPaneBulletsNumbering 9 TheBulletsandNumbering
taskpane.Usedforapplyingbulletandnumberingstylestoaform.
xdTaskPaneClipArt 5 TheClipArttaskpane.Usedforinsertingclipartintoaform.
xdTaskPaneDesignerNew 2 TheDesignaFormtaskpane.Usedtodesignanewform,openaformindesignmode,orselectaformtofillout.
xdTaskPaneFillOutAForm 1 TheFillOutaFormtaskpane.Usedtoopenaformtofilloutordesign.
xdTaskPaneFind 6 TheFindtaskpane.Usedtosearchfortextinaform.
xdTaskPaneFormatting 8 TheFonttaskpane.Usedtoformattext.
xdTaskPaneHelp 4 TheHelptaskpane.UsedtodisplaytheInfoPathHelpsystem.
xdTaskPaneHTML 0 TheInfoPathcustomtaskpane.Usedbyformdeveloperstoprovideextraformfunctionality.
xdTaskPaneHWSWorkflow 12 TheMicrosoftBizTalkServer2004HumanWorkflowServices(HWS)Workflowtaskpane.
![Page 1621: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1621.jpg)
xdTaskPaneParaFormatting 11 TheParagraphtaskpane.Usedtoconfigurepropertiesofparagraphsincludingalignmentandspacing.
xdTaskPaneReplace 7 TheReplacetaskpane.Usedtofindandreplacetextinaform.
xdTaskPaneSearchResults 3 TheSearchResultstaskpane.Usedtodisplaytheresultsofasearch.
xdTaskPaneSpelling 10 TheSpellingtaskpane.Usedtocheckthespellinginaform.
![Page 1622: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1622.jpg)
XdWindowStateEnumeration
TheXdWindowStateenumerationisusedtodeterminethestateoftheMicrosoftOfficeInfoPath2003windowthatisrepresentedbytheWindowobject.TheseenumeratedvaluesarereturnedorsetbytheWindowStatepropertyoftheWindowobject.
Name Value DescriptionxdWindowStateMaximize 1 Thewindowismaximized.xdWindowStateNormal 2 Thewindowisnotmaximizedor
minimized.xdWindowStateMinimize 3 Thewindowisminimized.
![Page 1623: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1623.jpg)
ShowAll
![Page 1624: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1624.jpg)
XdWindowTypeEnumeration
TheXdWindowTypeenumerationisusedtodeterminethetypeofMicrosoftOfficeInfoPath2003windowthatiscurrentlydisplayed.TheseenumeratedvaluesarereturnedbytheTypepropertyoftheWindowobject.
Name Value DescriptionxdDesignerWindow 1 Thecurrentwindowisthewindowthatis
displayedindesignmode.xdEditorWindow 0 Thecurrentwindowisthewindowthatis
displayedwhenfillingoutaform.
![Page 1625: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1625.jpg)
InfoPathXSFDiagram
<xDocumentClass>*<applicationParameters> *
<solutionProperties>*<calculations>*<calculatedField>(s)
*<customValidation>*<errorCondition>(s)<errorMessage>
*<dataAdapters>*<davAdapter>(s)<fileName><folderURL>
*<emailAdapter>(s)*<attachmentFileName>*<bcc>*<cc>*<intro>*<subject>*<to>
*<hwsAdapter>(s)*<hwsOperation>
*<input>*<partFragment>(s)
*<webServiceAdapter>(s)<operation>*<input>*<partFragment>(s)
*<dataObjects>
Legend
*OptionalElement
(s)RepeatingElement
![Page 1626: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1626.jpg)
*<dataObject>(s)<query>*<adoAdapter>*<webServiceAdapter><operation>*<input>*<partFragment>(s)
*<sharepointListAdapter>*<field>(s)
*<xmlFileAdapter>*<documentSchemas><documentSchema>(s)
*<documentSignatures>*<signedDataBlock>(s)*<message>(s)
*<documentVersionUpgrade> *<useScriptHandler>*<useTransform>
*<domEventHandlers>*<domEventHandler>(s)*<ruleSetAction>(s)
*<extensions>*<extension>(s)
*<externalViews>*<externalView>(s)*<mainpane>
*<featureRestrictions>*<autoRecovery>*<exportToExcel>
![Page 1627: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1627.jpg)
*<exportToWeb>*<print>*<save>*<sendMail>
*<fileNew><initialXMLDocument>*<customCategory>(s)
*<hwsWorkflow><allowedActions><action>(s)
<allowedTasks><task>(s)
<location>*<importParameters>*<importSource>(s)
*<listProperties>*<fields>*<field>(s)
*<onLoad><ruleSetAction>
<package><files>*<file>(s)*<fileProperties>*<property>(s)
*<permissions><allowedControl>(s)
*<query>*<adoAdapter>
![Page 1628: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1628.jpg)
*<queryAction>*<sharepointListAdapter>
*<field>(s)*<webServiceAdapter>
<operation>*<input>*<partFragment>(s)
*<xmlFileAdapter>*<roles><role>(s)<membership>(s)<getUserNameFromData>(s)<group>(s)<username>(s)
*<ruleSets>*<ruleSet>(s)<rule>(s)*<assignmentAction>(s)*<closeDocumentAction>(s)*<dialogBoxExpressionAction>(s)*<dialogBoxMessageAction>(s)*<exitRuleSet>(s)*<openNewDocumentAction>(s)*<queryAction>(s)*<submitAction>(s)*<switchViewAction>(s)
*<save>*<useScriptHandler>
*<schemaErrorMessages>
![Page 1629: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1629.jpg)
*<override>(s)<errorMessage>
*<scripts>*<script>(s)
*<submit>*<davAdapter><fileName><folderURL>
*<emailAdapter>*<attachmentFileName>*<bcc>*<cc>*<intro>*<subject>*<to>
*<errorMessage>*<ruleSetAction>*<submitAction>*<successMessage>*<useHttpHandler>*<useScriptHandler>*<useQueryAdapter>*<webServiceAdapter><operation>*<input>*<partFragment>(s)
<taskpane><views><view>(s)
![Page 1630: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1630.jpg)
*<editing>*<xmlToEdit>(s)*<editWith>(s)*<fragmentToInsert><chooseFragment>(s)*<attributeData>
*<masterDetail><mainpane>*<menu>(s)*<button>(s)*<menu>(s)
*<menuArea>(s)*<button>(s)*<menu>(s)
<printSettings>*<footer>*<header>
*<toolbar>(s)*<button>(s)*<menu>(s)
*<unboundControls>*<button>(s)*<ruleSetAction>
![Page 1631: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1631.jpg)
ShowAll
![Page 1632: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1632.jpg)
InfoPathXSFSchema
TheMicrosoftOfficeInfoPath2003formdefinition(.xsf)fileschemaisanXMLSchema(.xsd)filethatisusedtovalidatethe.xsffilecontainedinanInfoPathformtemplate.
Thefollowingisacompletelistingofthecontentsofthe.xsfschemafile:
<?xmlversion="1.0"encoding="UTF-8"?><xsd:schemaxmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition" targetNamespace="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"elementFormDefault="qualified" attributeFormDefault="unqualified"> <!--xdTitletype--> <xsd:simpleTypename="xdTitle"> <xsd:restrictionbase="xsd:string"> <xsd:minLengthvalue="1"/> <xsd:maxLengthvalue="255"/> <xsd:patternvalue="([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?"/> </xsd:restriction> </xsd:simpleType> <!--xdViewNametype--> <xsd:simpleTypename="xdViewName"> <xsd:restrictionbase="xsd:string"> <xsd:minLengthvalue="1"/> <xsd:maxLengthvalue="255"/> <xsd:patternvalue="([^\p{Z}\p{C}/\\#&"><])(([^\p{Zl}\p{Zp}\p{C}/\\#&"><])*([^\p{Z}\p{C}/\\#&"><]))?"/> </xsd:restriction> </xsd:simpleType> <!--xdRoleNametype--> <!--usesxdViewNameasbase--> <xsd:simpleTypename="xdRoleName"> <xsd:restrictionbase="xsf:xdViewName"></xsd:restriction> </xsd:simpleType> <!--xdYesNotype-->
![Page 1633: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1633.jpg)
<xsd:simpleTypename="xdYesNo"> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="yes"/> <xsd:enumerationvalue="no"/> </xsd:restriction> </xsd:simpleType> <!--xdEnabledDisabledtype--> <xsd:simpleTypename="xdEnabledDisabled"> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="enabled"/> <xsd:enumerationvalue="disabled"/> </xsd:restriction> </xsd:simpleType> <!--xdManualAutotype--> <xsd:simpleTypename="xdManualAuto"> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="manual"/> <xsd:enumerationvalue="automatic"/> </xsd:restriction> </xsd:simpleType> <!--xdExpressionLiteraltype--> <xsd:simpleTypename="xdExpressionLiteral"> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="expression"/> <xsd:enumerationvalue="literal"/> </xsd:restriction> </xsd:simpleType> <!--xdFileNametype--> <xsd:simpleTypename="xdFileName"> <xsd:restrictionbase="xsd:string"> <xsd:minLengthvalue="1"/> <xsd:maxLengthvalue="64"/> </xsd:restriction>
![Page 1634: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1634.jpg)
</xsd:simpleType> <!--xdScriptLanguagetype--> <xsd:simpleTypename="xdScriptLanguage"> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:patternvalue="(([Jj][Aa][Vv][Aa]|(([Jj])|([Vv][Bb]))([Ss][Cc][Rr][Ii][Pp][Tt]))([.][Ee][Nn][Cc][Oo][Dd][Ee]))|([Jj][Aa][Vv][Aa]|(([Jj])|([Vv][Bb]))([Ss][Cc][Rr][Ii][Pp][Tt]))|([Mm][Aa][Nn][Aa][Gg][Ee][Dd][Cc][Oo][Dd][Ee])"/> </xsd:restriction> </xsd:simpleType> <!--xdSolutionVersiontype--> <xsd:simpleTypename="xdSolutionVersion"> <xsd:restrictionbase="xsd:string"> <xsd:patternvalue="(([0-9]{1,4}.){3}[0-9]{1,4})"/> </xsd:restriction> </xsd:simpleType> <!--xdEmptyStringtype--> <xsd:simpleTypename="xdEmptyString"> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="0"/> </xsd:restriction> </xsd:simpleType> <!--xdErrorMessagetype--> <xsd:simpleTypename="xdErrorMessage"> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="1023"/> </xsd:restriction> </xsd:simpleType> <!--xdDesignModetype--> <xsd:simpleTypename="xdDesignMode"> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="normal"/> <xsd:enumerationvalue="protected"/> </xsd:restriction> </xsd:simpleType> <!--xdTrustLeveltype-->
![Page 1635: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1635.jpg)
<xsd:simpleTypename="xdTrustLevel"> <xsd:restrictionbase="xsd:string"> <xsd:enumerationvalue="restricted"/> <xsd:enumerationvalue="domain"/> </xsd:restriction> </xsd:simpleType> <!--xdSignedDataBlockNametype--> <xsd:simpleTypename="xdSignedDataBlockName"> <xsd:restrictionbase="xsd:ID"> <xsd:minLengthvalue="1"/> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> <!--xdSignedDataBlockMessagetype--> <xsd:simpleTypename="xdSignedDataBlockMessage"> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> <!--xdSignatureRelationEnumtype--> <xsd:simpleTypename="xdSignatureRelationEnum"> <xsd:restrictionbase="xsd:string"> <xsd:enumerationvalue="countersign"/> <xsd:enumerationvalue="cosign"/> <xsd:enumerationvalue="single"/> </xsd:restriction> </xsd:simpleType> <!--xdHWSnametype--> <xsd:simpleTypename="xdHWSname"> <xsd:restrictionbase="xsd:NCName"> <xsd:patternvalue="[^-^\.^\\^\[^\]^\|^\+^?^\*^@^\{^\}^\(^\)^>^<^=^;^,]*"/> </xsd:restriction> </xsd:simpleType>
![Page 1636: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1636.jpg)
<!--xdHWSCaptiontype--> <xsd:simpleTypename="xdHWSCaption"> <xsd:restrictionbase="xsd:string"> <xsd:minLengthvalue="1"/> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> <!--xDocumentClass--> <xsd:elementname="xDocumentClass"> <xsd:complexType> <xsd:all> <xsd:elementref="xsf:package"minOccurs="1"/> <xsd:elementref="xsf:permissions"minOccurs="0"/> <xsd:elementref="xsf:views"minOccurs="1"/> <xsd:elementref="xsf:hwsWorkflow"minOccurs="0"/> <xsd:elementref="xsf:externalViews"minOccurs="0"/> <xsd:elementref="xsf:scripts"minOccurs="0"/> <xsd:elementref="xsf:schemaErrorMessages"minOccurs="0"/> <xsd:elementref="xsf:documentSchemas"minOccurs="0"/> <xsd:elementref="xsf:applicationParameters"minOccurs="0"/> <xsd:elementref="xsf:featureRestrictions"minOccurs="0"/> <xsd:elementref="xsf:fileNew"minOccurs="0"/> <xsd:elementref="xsf:customValidation"minOccurs="0"/> <xsd:elementref="xsf:domEventHandlers"minOccurs="0"/> <xsd:elementref="xsf:importParameters"minOccurs="0"/> <xsd:elementref="xsf:listProperties"minOccurs="0"/> <xsd:elementref="xsf:taskpane"minOccurs="0"/> <xsd:elementref="xsf:documentSignatures"minOccurs="0"/> <xsd:elementref="xsf:dataObjects"minOccurs="0"/> <xsd:elementref="xsf:dataAdapters"minOccurs="0"/> <xsd:elementref="xsf:query"minOccurs="0"/> <xsd:elementref="xsf:submit"minOccurs="0"/> <xsd:elementref="xsf:save"minOccurs="0"/>
![Page 1637: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1637.jpg)
<xsd:elementref="xsf:roles"minOccurs="0"/> <xsd:elementref="xsf:onLoad"minOccurs="0"/> <xsd:elementref="xsf:documentVersionUpgrade"minOccurs="0"/> <xsd:elementref="xsf:extensions"minOccurs="0"/> <xsd:elementref="xsf:ruleSets"minOccurs="0"/> <xsd:elementref="xsf:calculations"minOccurs="0"/> </xsd:all> <xsd:attributename="name"type="xsd:string"use="optional"/> <xsd:attributename="author"type="xsd:string"use="optional"/> <xsd:attributename="description"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="solutionVersion"type="xsf:xdSolutionVersion"use="optional"/> <xsd:attributename="productVersion"type="xsd:string"use="optional"/> <xsd:attributename="solutionFormatVersion"type="xsf:xdSolutionVersion"use="required"/> <xsd:attributename="dataFormSolution"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="requireFullTrust"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="trustLevel"type="xsf:xdTrustLevel"use="optional"/> <xsd:attributename="trustSetting"type="xsf:xdManualAuto"use="optional"/> <xsd:attributename="publishUrl"type="xsd:string"use="optional"/> </xsd:complexType> <xsd:keyname="view_name_key"> <xsd:selectorxpath="./xsf:views/xsf:view"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:keyname="externalView_name_key"> <xsd:selectorxpath="./xsf:externalViews/xsf:externalView"/> <xsd:fieldxpath="@name"/> </xsd:key>
![Page 1638: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1638.jpg)
<xsd:keyname="view_or_externalView_name_key"> <xsd:selectorxpath="./xsf:views/xsf:view|./xsf:externalViews/xsf:externalView"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:keyname="ruleset_name_key"> <xsd:selectorxpath="./xsf:ruleSets/xsf:ruleSet"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:keyname="dataObject_name_key"> <xsd:selectorxpath="./xsf:dataObjects/xsf:dataObject"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:uniquename="adapter_name_unique"> <xsd:selectorxpath="./xsf:dataObjects/xsf:dataObject/xsf:query/*|./xsf:query/*|./xsf:dataAdapters/*|./xsf:submit/xsf:webServiceAdapter|./xsf:submit/xsf:davAdapter|./xsf:submit/xsf:emailAdapter"/> <xsd:fieldxpath="@name"/> </xsd:unique> <xsd:keyname="adapter_name_key"> <xsd:selectorxpath="./xsf:dataAdapters/*"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:uniquename="view_external_name_unique"> <xsd:selectorxpath="./xsf:views/xsf:view|./xsf:externalViews/xsf:externalView"/> <xsd:fieldxpath="@name"/> </xsd:unique> </xsd:element> <!--schemaErrorMessages--> <xsd:elementname="schemaErrorMessages"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:override"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element>
![Page 1639: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1639.jpg)
<!--override--> <xsd:elementname="override"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:errorMessage"/> </xsd:sequence> <xsd:attributename="match"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <!--applicationParameters--> <xsd:elementname="applicationParameters"> <xsd:complexType> <xsd:all> <xsd:elementref="xsf:solutionProperties"minOccurs="0"/> </xsd:all> <xsd:attributename="application"use="required"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:enumerationvalue="InfoPathDesignMode"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> <!--solutionProperties--> <xsd:elementname="solutionProperties"> <xsd:complexType> <xsd:attributename="allowCustomization"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="lastOpenView"use="optional"/> <xsd:attributename="scriptLanguage"type="xsf:xdScriptLanguage"use="optional"/> <xsd:attributename="automaticallyCreateNodes"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="lastVersionNeedingTransform"type="xsf:xdSolutionVersion"use="optional"/> <xsd:attributename="fullyEditableNamespace"type="xsd:anyURI"use="optional"/>
![Page 1640: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1640.jpg)
<xsd:attributename="publishSaveUrl"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <!--featureRestrictions--> <xsd:elementname="featureRestrictions"> <xsd:complexType> <xsd:all> <xsd:elementname="save"minOccurs="0"> <xsd:complexType> <xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementref="xsf:exportToWeb"minOccurs="0"/> <xsd:elementref="xsf:exportToExcel"minOccurs="0"/> <xsd:elementref="xsf:print"minOccurs="0"/> <xsd:elementref="xsf:sendMail"minOccurs="0"/> <xsd:elementref="xsf:autoRecovery"minOccurs="0"/> </xsd:all> </xsd:complexType> </xsd:element> <!--exportToWeb--> <xsd:elementname="exportToWeb"> <xsd:complexType> <xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"/> </xsd:complexType> </xsd:element> <!--exportToExcel--> <xsd:elementname="exportToExcel"> <xsd:complexType> <xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"/> </xsd:complexType> </xsd:element> <!--print-->
![Page 1641: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1641.jpg)
<xsd:elementname="print"> <xsd:complexType> <xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"/> </xsd:complexType> </xsd:element> <!--sendMail--> <xsd:elementname="sendMail"> <xsd:complexType> <xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"/> </xsd:complexType> </xsd:element> <!--autoRecovery--> <xsd:elementname="autoRecovery"> <xsd:complexType> <xsd:attributename="feature"type="xsf:xdEnabledDisabled"use="required"/> </xsd:complexType> </xsd:element> <!--query--> <xsd:elementname="query"> <xsd:complexType> <xsd:choice> <xsd:elementref="xsf:queryAction"/> <xsd:elementref="xsf:adoAdapter"/> <xsd:elementref="xsf:webServiceAdapter"/> <xsd:elementref="xsf:xmlFileAdapter"/> <xsd:elementref="xsf:sharepointListAdapter"/> </xsd:choice> </xsd:complexType> </xsd:element> <!--scripts--> <xsd:elementname="scripts"> <xsd:complexType> <xsd:sequence>
![Page 1642: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1642.jpg)
<xsd:elementref="xsf:script"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="language"type="xsf:xdScriptLanguage"use="required"/> <xsd:attributename="enforceScriptTimeout"type="xsf:xdYesNo"use="optional"default="yes"/> </xsd:complexType> </xsd:element> <xsd:elementname="script"> <xsd:complexType> <xsd:attributename="src"type="xsf:xdFileName"use="required"/> </xsd:complexType> </xsd:element> <!--dataObjects--> <xsd:elementname="dataObjects"> <xsd:complexType> <xsd:choiceminOccurs="0"maxOccurs="unbounded"> <xsd:elementref="xsf:dataObject"/> </xsd:choice> </xsd:complexType> <xsd:uniquename="dataObjects_name_unique"> <xsd:selectorxpath="./xsf:dataObject"/> <xsd:fieldxpath="@name"/> </xsd:unique> </xsd:element> <xsd:elementname="dataObject"> <xsd:complexType> <xsd:choice> <xsd:elementname="query"> <xsd:complexType> <xsd:choice> <xsd:elementref="xsf:adoAdapter"/> <xsd:elementref="xsf:webServiceAdapter"/> <xsd:elementref="xsf:xmlFileAdapter"/> <xsd:elementref="xsf:sharepointListAdapter"/>
![Page 1643: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1643.jpg)
</xsd:choice> </xsd:complexType> </xsd:element> </xsd:choice> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> <xsd:attributename="schema"type="xsd:string"use="optional"/> <xsd:attributename="initOnLoad"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <!--dataAdapters--> <xsd:elementname="adoAdapter"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdTitle"use="optional"/> <xsd:attributename="connectionString"type="xsd:string"use="required"/> <xsd:attributename="commandText"type="xsd:string"use="required"/> <xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="webServiceAdapter"> <xsd:complexType> <xsd:choice> <xsd:elementref="xsf:operation"/> </xsd:choice> <xsd:attributename="name"type="xsf:xdTitle"use="optional"/> <xsd:attributename="wsdlUrl"type="xsd:string"use="required"/> <xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="useDataSet"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="hwsAdapter"> <xsd:complexType>
![Page 1644: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1644.jpg)
<xsd:choice> <xsd:elementref="xsf:hwsOperation"/> </xsd:choice> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> <xsd:attributename="wsdlUrl"type="xsd:string"use="required"/> <xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="operation"> <xsd:complexType> <xsd:choice> <xsd:elementref="xsf:input"minOccurs="0"/> </xsd:choice> <xsd:attributename="name"type="xsd:string"use="required"/> <xsd:attributename="soapAction"type="xsd:string"use="required"/> <xsd:attributename="serviceUrl"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="hwsOperation"> <xsd:complexType> <xsd:choice> <xsd:elementref="xsf:input"/> </xsd:choice> <xsd:attributename="type"type="xsd:string"use="required"/> <xsd:attributename="typeID"type="xsd:string"use="required"/> <xsd:attributename="serviceUrl"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="input"> <xsd:complexType> <xsd:choiceminOccurs="0"maxOccurs="unbounded"> <xsd:elementref="xsf:partFragment"/>
![Page 1645: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1645.jpg)
</xsd:choice> <xsd:attributename="source"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="partFragment"> <xsd:complexType> <xsd:attributename="match"type="xsd:string"use="required"/> <xsd:attributename="replaceWith"type="xsd:string"use="required"/> <xsd:attributename="sendAsString"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="dataObject"type="xsd:string"use="optional"/> <xsd:attributename="filter"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="xmlFileAdapter"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdTitle"use="optional"/> <xsd:attributename="fileUrl"type="xsd:anyURI"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="sharepointListAdapter"> <xsd:complexType> <xsd:sequence> <xsd:elementname="field"minOccurs="0"maxOccurs="unbounded"> <xsd:complexType> <xsd:attributename="sharepointName"type="xsd:string"use="required"/> <xsd:attributename="infopathName"type="xsd:string"use="required"/> <xsd:attributename="isLookup"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> <xsd:attributename="siteUrl"type="xsd:string"use="required"/> <xsd:attributename="sharepointGuid"type="xsd:string"use="required"/>
![Page 1646: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1646.jpg)
<xsd:attributename="infopathGroup"type="xsd:string"use="required"/> <xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="davAdapter"> <xsd:complexType> <xsd:all> <xsd:elementname="folderURL"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="fileName"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"/> </xsd:complexType> </xsd:element> </xsd:all> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> <xsd:attributename="overwriteAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="emailAdapter"> <xsd:complexType> <xsd:all> <xsd:elementname="to"minOccurs="0"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"/>
![Page 1647: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1647.jpg)
</xsd:complexType> </xsd:element> <xsd:elementname="cc"minOccurs="0"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="bcc"minOccurs="0"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="subject"minOccurs="0"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="intro"minOccurs="0"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="attachmentFileName"minOccurs="0"> <xsd:complexType> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"/> </xsd:complexType> </xsd:element> </xsd:all> <xsd:attributename="name"type="xsf:xdTitle"use="required"/>
![Page 1648: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1648.jpg)
<xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="dataAdapters"> <xsd:complexType> <xsd:choiceminOccurs="0"maxOccurs="unbounded"> <xsd:elementref="xsf:adoAdapter"/> <xsd:elementref="xsf:webServiceAdapter"/> <xsd:elementref="xsf:xmlFileAdapter"/> <xsd:elementref="xsf:sharepointListAdapter"/> <xsd:elementref="xsf:davAdapter"/> <xsd:elementref="xsf:emailAdapter"/> <xsd:elementref="xsf:hwsAdapter"/> </xsd:choice> </xsd:complexType> </xsd:element> <!--documentSchemas--> <xsd:elementname="documentSchemas"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:documentSchema"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="documentSchema"> <xsd:complexType> <xsd:attributename="location"type="xsd:string"use="required"/> <xsd:attributename="rootSchema"type="xsf:xdYesNo"/> </xsd:complexType> </xsd:element> <!--customValidation--> <xsd:elementname="customValidation">
![Page 1649: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1649.jpg)
<xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:errorCondition"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="errorCondition"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:errorMessage"/> </xsd:sequence> <xsd:attributename="match"type="xsd:string"use="required"/> <xsd:attributename="expression"type="xsd:string"use="required"/> <xsd:attributename="expressionContext"type="xsd:string"use="optional"/> <xsd:attributename="showErrorOn"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="errorMessage"> <xsd:complexType> <xsd:simpleContent> <xsd:extensionbase="xsf:xdErrorMessage"> <xsd:attributename="type"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="modal"/> <xsd:enumerationvalue="modeless"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="shortMessage"use="required"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="127"/>
![Page 1650: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1650.jpg)
</xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> <!--domEventHandlers--> <xsd:elementname="domEventHandlers"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:domEventHandler"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:uniquename="domEventHandler_handlerObject_unique"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@handlerObject"/> </xsd:unique> </xsd:element> <xsd:elementname="domEventHandler"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:ruleSetAction"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="dataObject"type="xsd:string"use="optional"/> <xsd:attributename="match"type="xsd:string"use="required"/> <xsd:attributename="handlerObject"type="xsd:string"use="optional"/> </xsd:complexType> <xsd:keyrefname="domEventHandler_ruleSetAction"refer="xsf:ruleset_name_key"> <xsd:selectorxpath="./xsf:ruleSetAction"/> <xsd:fieldxpath="@ruleSet"/> </xsd:keyref> </xsd:element>
![Page 1651: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1651.jpg)
<!--importParameters--> <xsd:elementname="importParameters"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:importSource"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="enabled"type="xsf:xdYesNo"use="required"/> <xsd:attributename="useScriptHandler"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="importSource"> <xsd:complexType> <xsd:attributename="name"type="xsd:string"use="required"/> <xsd:attributename="schema"type="xsf:xdFileName"use="required"/> <xsd:attributename="transform"type="xsf:xdFileName"use="required"/> <xsd:attributename="authoringOfTransform"type="xsf:xdManualAuto"use="optional"/> </xsd:complexType> </xsd:element> <!--listProperties--> <xsd:elementname="listProperties"> <xsd:complexType> <xsd:all> <xsd:elementref="xsf:fields"/> </xsd:all> </xsd:complexType> </xsd:element> <xsd:elementname="fields"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:field"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element>
![Page 1652: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1652.jpg)
<xsd:elementname="field"> <xsd:complexType> <xsd:attributename="type"type="xsd:NMTOKEN"use="required"/> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> <xsd:attributename="columnName"type="xsf:xdTitle"use="required"/> <xsd:attributename="required"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="viewable"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="node"type="xsd:string"use="required"/> <xsd:attributename="maxLength"type="xsd:byte"/> <xsd:attributename="aggregation"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="sum"/> <xsd:enumerationvalue="count"/> <xsd:enumerationvalue="average"/> <xsd:enumerationvalue="min"/> <xsd:enumerationvalue="max"/> <xsd:enumerationvalue="first"/> <xsd:enumerationvalue="last"/> <xsd:enumerationvalue="merge"/> <xsd:enumerationvalue="plaintext"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> <!--submit--> <xsd:elementname="submit"> <xsd:complexType> <xsd:all> <xsd:elementname="submitAction"minOccurs="0"> <xsd:complexType> <xsd:attributename="adapter"type="xsf:xdTitle"use="required"/>
![Page 1653: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1653.jpg)
</xsd:complexType> <xsd:keyrefname="submitAdapter_name_keyref"refer="xsf:adapter_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@adapter"/> </xsd:keyref> </xsd:element> <xsd:elementref="xsf:useHttpHandler"minOccurs="0"/> <xsd:elementref="xsf:useScriptHandler"minOccurs="0"/> <xsd:elementref="xsf:ruleSetAction"minOccurs="0"/> <xsd:elementref="xsf:useQueryAdapter"minOccurs="0"/> <xsd:elementref="xsf:webServiceAdapter"minOccurs="0"/> <xsd:elementref="xsf:davAdapter"minOccurs="0"/> <xsd:elementref="xsf:emailAdapter"minOccurs="0"/> <xsd:elementname="successMessage"type="xsd:string"minOccurs="0"/> <xsd:elementname="errorMessage"type="xsd:string"minOccurs="0"/> </xsd:all> <xsd:attributename="caption"type="xsd:string"use="optional"/> <xsd:attributename="onAfterSubmit"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="close"/> <xsd:enumerationvalue="keepOpen"/> <xsd:enumerationvalue="openNew"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="showStatusDialog"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="showSignatureReminder"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="disableMenuItem"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> <xsd:keyrefname="submit_ruleSetAction"refer="xsf:ruleset_name_key"> <xsd:selectorxpath="./xsf:ruleSetAction"/> <xsd:fieldxpath="@ruleSet"/>
![Page 1654: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1654.jpg)
</xsd:keyref> </xsd:element> <xsd:elementname="useHttpHandler"> <xsd:complexType> <xsd:attributename="method"use="required"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="POST"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="href"type="xsd:anyURI"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="useScriptHandler"/> <xsd:elementname="useQueryAdapter"/> <!--onLoad--> <xsd:elementname="onLoad"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:ruleSetAction"minOccurs="1"maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:keyrefname="load_ruleSetAction"refer="xsf:ruleset_name_key"> <xsd:selectorxpath="./xsf:ruleSetAction"/> <xsd:fieldxpath="@ruleSet"/> </xsd:keyref> </xsd:element> <!--save--> <xsd:elementname="save"> <xsd:complexType> <xsd:choiceminOccurs="0"maxOccurs="1"> <xsd:elementref="xsf:useScriptHandler"/>
![Page 1655: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1655.jpg)
</xsd:choice> </xsd:complexType> </xsd:element> <!--roles--> <xsd:elementname="roles"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:role"minOccurs="1"maxOccurs="unbounded"/> <xsd:elementref="xsf:membership"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="default"type="xsd:string"use="required"/> <xsd:attributename="initiator"type="xsd:string"use="optional"/> <xsd:attributename="hideStatusBarDisplay"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> <!--rolenamesmustbeunique--> <xsd:uniquename="roles_name_unique"> <xsd:selectorxpath="./xsf:role"/> <xsd:fieldxpath="@name"/> </xsd:unique> <!--fieldsmustreferenceexistingrole--> <xsd:keyname="role_name_key"> <xsd:selectorxpath="./xsf:role"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:keyrefname="role_default"refer="xsf:role_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@default"/> </xsd:keyref> <xsd:keyrefname="role_initiator"refer="xsf:role_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@initiator"/> </xsd:keyref> <xsd:keyrefname="role_membership"refer="xsf:role_name_key">
![Page 1656: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1656.jpg)
<xsd:selectorxpath="./xsf:membership/*"/> <xsd:fieldxpath="@memberOf"/> </xsd:keyref> </xsd:element> <xsd:elementname="role"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdRoleName"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="membership"> <xsd:complexType> <xsd:choiceminOccurs="1"maxOccurs="unbounded"> <xsd:elementref="xsf:getUserNameFromData"/> <xsd:elementref="xsf:userName"/> <xsd:elementref="xsf:group"/> </xsd:choice> </xsd:complexType> </xsd:element> <xsd:elementname="getUserNameFromData"> <xsd:complexType> <xsd:attributename="dataObject"type="xsd:string"use="optional"/> <xsd:attributename="select"type="xsd:string"use="required"/> <xsd:attributename="memberOf"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="userName"> <xsd:complexType> <xsd:attributename="name"type="xsd:string"use="required"/> <xsd:attributename="memberOf"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="group"> <xsd:complexType>
![Page 1657: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1657.jpg)
<xsd:attributename="name"type="xsd:string"use="required"/> <xsd:attributename="memberOf"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <!--hwsWorkflow--> <xsd:elementname="hwsWorkflow"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:location"minOccurs="1"maxOccurs="1"/> <xsd:elementref="xsf:allowedActions"minOccurs="1"maxOccurs="1"/> <xsd:elementref="xsf:allowedTasks"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="taskpaneVisible"type="xsf:xdYesNo"/> </xsd:complexType> <xsd:uniquename="hws_actiontask_name"> <xsd:selectorxpath="./xsf:allowedActions/xsf:action|./xsf:allowedTasks/xsf:task"/> <xsd:fieldxpath="@name"/> </xsd:unique> </xsd:element> <!--location--> <xsd:elementname="location"> <xsd:complexType> <xsd:attributename="url"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <!--allowedActions--> <xsd:elementname="allowedActions"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:action"minOccurs="1"maxOccurs="20"/> </xsd:sequence> </xsd:complexType> <xsd:uniquename="hws_actionTypeID_unique">
![Page 1658: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1658.jpg)
<xsd:selectorxpath="./xsf:action"/> <xsd:fieldxpath="@actionTypeID"/> </xsd:unique> </xsd:element> <!--action--> <xsd:elementname="action"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdHWSname"use="required"/> <xsd:attributename="actionTypeID"type="xsd:string"use="required"/> <xsd:attributename="canInitiateWorkflow"type="xsf:xdYesNo"use="required"/> <xsd:attributename="caption"type="xsf:xdHWSCaption"use="optional"/> </xsd:complexType> </xsd:element> <!--allowedTasks--> <xsd:elementname="allowedTasks"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:task"minOccurs="1"maxOccurs="20"/> </xsd:sequence> </xsd:complexType> <xsd:uniquename="hws_taskID_unique"> <xsd:selectorxpath="./xsf:task"/> <xsd:fieldxpath="@taskTypeID"/> </xsd:unique> </xsd:element> <!--task--> <xsd:elementname="task"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdHWSname"use="required"/> <xsd:attributename="taskTypeID"type="xsd:string"use="required"/> <xsd:attributename="caption"type="xsf:xdHWSCaption"use="optional"/> </xsd:complexType> </xsd:element>
![Page 1659: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1659.jpg)
<!--fileNew--> <xsd:elementname="fileNew"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:initialXmlDocument"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="initialXmlDocument"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:customCategory"minOccurs="0"/> </xsd:sequence> <xsd:attributename="caption"type="xsf:xdTitle"use="required"/> <xsd:attributename="href"type="xsf:xdFileName"use="required"/> </xsd:complexType> </xsd:element> <!--customCategory--> <xsd:elementname="customCategory"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> </xsd:complexType> </xsd:element> <!--package--> <xsd:elementname="package"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:files"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="files"> <xsd:complexType>
![Page 1660: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1660.jpg)
<xsd:sequence> <xsd:elementref="xsf:file"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="file"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:fileProperties"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="name"type="xsf:xdFileName"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="fileProperties"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:property"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="property"> <xsd:complexType> <xsd:attributename="name"type="xsd:string"use="required"/> <xsd:attributename="value"type="xsd:string"use="required"/> <xsd:attributename="type"type="xsd:QName"use="required"/> </xsd:complexType> </xsd:element> <!--permissions--> <xsd:elementname="permissions"> <xsd:complexType> <xsd:choiceminOccurs="0"maxOccurs="unbounded"> <xsd:elementref="xsf:allowedControl"/> </xsd:choice>
![Page 1661: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1661.jpg)
</xsd:complexType> </xsd:element> <xsd:elementname="allowedControl"> <xsd:complexType> <xsd:attributename="cabFile"type="xsd:string"use="optional"/> <xsd:attributename="clsid"type="xsd:string"use="required"/> <xsd:attributename="version"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <!--ViewandContext-DrivenEditingdefinitions--> <!--ExternalViews--> <xsd:elementname="externalViews"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:externalView"minOccurs="1"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="default"type="xsd:string"/> </xsd:complexType> <xsd:uniquename="externalViews_name_unique"> <xsd:selectorxpath="./xsf:externalView"/> <xsd:fieldxpath="@default"/> </xsd:unique> <xsd:keyrefname="external_views_printView"refer="xsf:externalView_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@default"/> </xsd:keyref> </xsd:element> <xsd:elementname="externalView"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:mainpane"/> </xsd:sequence> <xsd:attributename="target"type="xsd:string"/>
![Page 1662: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1662.jpg)
<xsd:attributename="name"type="xsf:xdViewName"use="required"/> <xsd:attributename="designMode"type="xsf:xdDesignMode"/> </xsd:complexType> </xsd:element> <!--attributeData--> <xsd:elementname="attributeData"> <xsd:complexType> <xsd:attributename="attribute"type="xsd:string"use="required"/> <xsd:attributename="value"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <!--button--> <xsd:elementname="button"> <xsd:complexType> <xsd:attributename="caption"type="xsf:xdTitle"/> <xsd:attributename="icon"type="xsd:string"/> <xsd:attributename="tooltip"type="xsf:xdTitle"/> <xsd:attributename="name"type="xsd:NMTOKEN"/> <xsd:attributename="xmlToEdit"type="xsd:NMTOKEN"/> <xsd:attributename="action"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="xCollection::insert"/> <xsd:enumerationvalue="xCollection::insertBefore"/> <xsd:enumerationvalue="xCollection::insertAfter"/> <xsd:enumerationvalue="xCollection::remove"/> <xsd:enumerationvalue="xCollection::refreshFilter"/> <xsd:enumerationvalue="xCollection::removeAll"/> <xsd:enumerationvalue="xOptional::insert"/> <xsd:enumerationvalue="xOptional::remove"/> <xsd:enumerationvalue="xReplace::replace"/> <xsd:enumerationvalue="xFileAttachment::attach"/> <xsd:enumerationvalue="xFileAttachment::open"/>
![Page 1663: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1663.jpg)
<xsd:enumerationvalue="xFileAttachment::saveAs"/> <xsd:enumerationvalue="xFileAttachment::remove"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="showIf"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="always"/> <xsd:enumerationvalue="enabled"/> <xsd:enumerationvalue="immediate"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> <!--chooseFragment--> <xsd:elementname="chooseFragment"> <xsd:complexTypemixed="true"> <xsd:sequence> <xsd:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/> </xsd:sequence> <xsd:attributename="parent"type="xsd:string"/> <xsd:attributename="followingSiblings"type="xsd:string"use="optional"/> <xsd:attributename="innerFragment"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <!--editWith--> <xsd:elementname="editWith"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:masterDetail"minOccurs="0"maxOccurs="1"/> <xsd:elementref="xsf:fragmentToInsert"minOccurs="0"maxOccurs="1"/>
![Page 1664: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1664.jpg)
</xsd:sequence> <xsd:attributename="component"use="required"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="xCollection"/> <xsd:enumerationvalue="xOptional"/> <xsd:enumerationvalue="xReplace"/> <xsd:enumerationvalue="xTextList"/> <xsd:enumerationvalue="xField"/> <xsd:enumerationvalue="xImage"/> <xsd:enumerationvalue="xFileAttachment"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="caption"type="xsf:xdTitle"use="optional"/> <xsd:attributename="autoComplete"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="proofing"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="type"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="plain"/> <xsd:enumerationvalue="formatted"/> <xsd:enumerationvalue="plainMultiline"/> <xsd:enumerationvalue="formattedMultiline"/> <xsd:enumerationvalue="rich"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="useFilter"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:enumerationvalue="yes"/> <xsd:enumerationvalue="no"/>
![Page 1665: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1665.jpg)
</xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="widgetIcon"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:enumerationvalue="standard"/> <xsd:enumerationvalue="filter"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="filterDependency"type="xsd:string"use="optional"/> <xsd:attributename="field"type="xsd:string"use="optional"/> <xsd:attributename="removeAncestors"type="xsd:nonNegativeInteger"use="optional"/> <xsd:attributename="maxLength"use="optional"> <xsd:simpleType> <xsd:restrictionbase="xsd:integer"> <xsd:minInclusivevalue="-1"/> <xsd:maxInclusivevalue="9999"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="allowedFileTypes"type="xsd:string"use="optional"/> <xsd:anyAttributenamespace="http://schemas.microsoft.com/office/infopath/2003"processContents="skip"/> </xsd:complexType> </xsd:element> <!--unboundControls--> <xsd:elementname="unboundControls"> <xsd:complexType> <xsd:sequence> <!--button--> <xsd:elementname="button"minOccurs="0"maxOccurs="unbounded"> <xsd:complexType>
![Page 1666: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1666.jpg)
<xsd:sequence> <xsd:elementref="xsf:ruleSetAction"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="name"use="required"> <xsd:simpleType> <!--typeofnameisnonqualifiedname,butNCNamealsoaccepts'.'and'-', sothesecharactersare disabledbypatternrestriction--> <xsd:restrictionbase="xsd:NCName"> <xsd:patternvalue="[^\.\^-]*"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> <xsd:keyrefname="button_ruleSetAction"refer="xsf:ruleset_name_key"> <xsd:selectorxpath="./xsf:ruleSetAction"/> <xsd:fieldxpath="@ruleSet"/> </xsd:keyref> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <!--editing--> <xsd:elementname="editing"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:xmlToEdit"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <!--MasterDetail--> <xsd:elementname="masterDetail"> <xsd:complexType> <xsd:attributename="master"type="xsd:string"/>
![Page 1667: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1667.jpg)
<xsd:attributename="masterViewContext"type="xsd:string"/> <xsd:attributename="masterKey"type="xsd:string"/> <xsd:attributename="detailKey"type="xsd:string"/> </xsd:complexType> </xsd:element> <!--fragmentToInsert--> <xsd:elementname="fragmentToInsert"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:chooseFragment"minOccurs="1"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <!--mainpane--> <xsd:elementname="mainpane"> <xsd:complexType> <xsd:attributename="transform"type="xsf:xdFileName"use="required"/> </xsd:complexType> </xsd:element> <!--printSettings--> <xsd:elementname="printSettings"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:header"minOccurs="0"maxOccurs="1"/> <xsd:elementref="xsf:footer"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="orientation"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="portrait"/> <xsd:enumerationvalue="landscape"/> </xsd:restriction> </xsd:simpleType>
![Page 1668: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1668.jpg)
</xsd:attribute> <xsd:attributename="header"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="footer"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="marginUnitsType"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="in"/> <xsd:enumerationvalue="cm"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="rightMargin"> <xsd:simpleType> <xsd:restrictionbase="xsd:float"> <xsd:minInclusivevalue="0"/> <xsd:maxInclusivevalue="100"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="leftMargin"> <xsd:simpleType>
![Page 1669: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1669.jpg)
<xsd:restrictionbase="xsd:float"> <xsd:minInclusivevalue="0"/> <xsd:maxInclusivevalue="100"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="topMargin"> <xsd:simpleType> <xsd:restrictionbase="xsd:float"> <xsd:minInclusivevalue="0"/> <xsd:maxInclusivevalue="100"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="bottomMargin"> <xsd:simpleType> <xsd:restrictionbase="xsd:float"> <xsd:minInclusivevalue="0"/> <xsd:maxInclusivevalue="100"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="printerName"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="paperSize"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/>
![Page 1670: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1670.jpg)
</xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="paperSource"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="copies"> <xsd:simpleType> <xsd:restrictionbase="xsd:integer"> <xsd:minInclusivevalue="1"/> <xsd:maxInclusivevalue="9999"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="collate"type="xsf:xdYesNo"/> <xsd:attributename="pageRangeStart"> <xsd:simpleType> <xsd:restrictionbase="xsd:integer"> <xsd:minInclusivevalue="1"/> <xsd:maxInclusivevalue="32000"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attributename="pageRangeEnd"> <xsd:simpleType> <xsd:restrictionbase="xsd:integer"> <xsd:minInclusivevalue="1"/> <xsd:maxInclusivevalue="32000"/> </xsd:restriction>
![Page 1671: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1671.jpg)
</xsd:simpleType> </xsd:attribute> <xsd:attributename="printerSpecificSettings"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="255"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> <xsd:elementname="header"> <xsd:complexTypemixed="true"> <xsd:sequence> <xsd:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="footer"> <xsd:complexTypemixed="true"> <xsd:sequence> <xsd:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/> </xsd:sequence> </xsd:complexType> </xsd:element> <!--toolbar--> <xsd:elementname="toolbar"> <xsd:complexType> <xsd:sequence> <xsd:groupref="xsf:UIItem"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="name"type="xsf:xdTitle"use="required"/> <xsd:attributename="caption"type="xsf:xdTitle"use="required"/>
![Page 1672: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1672.jpg)
</xsd:complexType> </xsd:element> <!--menu--> <xsd:elementname="menu"> <xsd:complexType> <xsd:sequence> <xsd:groupref="xsf:UIItem"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="caption"type="xsf:xdTitle"use="required"/> </xsd:complexType> </xsd:element> <!--menuArea--> <xsd:elementname="menuArea"> <xsd:complexType> <xsd:sequence> <xsd:groupref="xsf:UIItem"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="name"use="required"> <xsd:simpleType> <xsd:restrictionbase="xsd:NMTOKEN"> <xsd:enumerationvalue="msoFileMenu"/> <xsd:enumerationvalue="msoEditMenu"/> <xsd:enumerationvalue="msoInsertMenu"/> <xsd:enumerationvalue="msoViewMenu"/> <xsd:enumerationvalue="msoFormatMenu"/> <xsd:enumerationvalue="msoToolsMenu"/> <xsd:enumerationvalue="msoTableMenu"/> <xsd:enumerationvalue="msoHelpMenu"/> <xsd:enumerationvalue="msoStructuralEditingContextMenu"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType>
![Page 1673: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1673.jpg)
</xsd:element> <!--UIContainer--> <xsd:groupname="UIContainer"> <xsd:choice> <xsd:elementref="xsf:toolbar"/> <xsd:elementref="xsf:menu"/> <xsd:elementref="xsf:menuArea"/> </xsd:choice> </xsd:group> <!--UIItem--> <xsd:groupname="UIItem"> <xsd:choice> <xsd:elementref="xsf:button"/> <xsd:elementref="xsf:menu"/> </xsd:choice> </xsd:group> <!--taskpane--> <xsd:elementname="taskpane"> <xsd:complexType> <xsd:attributename="caption"type="xsd:string"use="required"/> <xsd:attributename="href"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <!--views--> <xsd:elementname="views"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:view"minOccurs="1"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="default"type="xsd:string"/> </xsd:complexType> <xsd:uniquename="views_name_unique"> <xsd:selectorxpath="./xsf:view"/>
![Page 1674: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1674.jpg)
<xsd:fieldxpath="@name"/> </xsd:unique> <xsd:keyrefname="view_printView"refer="xsf:view_or_externalView_name_key"> <xsd:selectorxpath="./xsf:view"/> <xsd:fieldxpath="@printView"/> </xsd:keyref> <xsd:keyrefname="views_default"refer="xsf:view_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@default"/> </xsd:keyref> </xsd:element> <!--ViewContent--> <xsd:groupname="ViewContent"> <xsd:choice> <xsd:elementref="xsf:editing"minOccurs="0"/> <xsd:elementref="xsf:mainpane"minOccurs="0"/> <xsd:elementref="xsf:printSettings"minOccurs="0"/> <xsd:groupref="xsf:UIContainer"minOccurs="0"maxOccurs="unbounded"/> <xsd:elementref="xsf:unboundControls"minOccurs="0"/> </xsd:choice> </xsd:group> <!--view--> <xsd:elementname="view"> <xsd:complexType> <xsd:groupref="xsf:ViewContent"minOccurs="0"maxOccurs="unbounded"/> <xsd:attributename="caption"type="xsf:xdViewName"/> <xsd:attributename="name"type="xsf:xdViewName"use="required"/> <xsd:attributename="showMenuItem"type="xsf:xdYesNo"use="optional"/> <xsd:attributename="printView"type="xsd:string"/> <xsd:attributename="designMode"type="xsf:xdDesignMode"/> </xsd:complexType> <xsd:uniquename="toolbar_name_unique"> <xsd:selectorxpath="./xsf:toolbar"/>
![Page 1675: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1675.jpg)
<xsd:fieldxpath="@name"/> </xsd:unique> <xsd:uniquename="menuArea_name_unique"> <xsd:selectorxpath="./xsf:menuArea"/> <xsd:fieldxpath="@name"/> </xsd:unique> <xsd:uniquename="xmlToEdit_name_unique"> <xsd:selectorxpath="./xsf:editing/xsf:xmlToEdit"/> <xsd:fieldxpath="@name"/> </xsd:unique> <xsd:keyname="xmlToEdit_name_key"> <xsd:selectorxpath="./xsf:editing/xsf:xmlToEdit"/> <xsd:fieldxpath="@name"/> </xsd:key> <xsd:keyrefname="button_xmlToEdit_reference"refer="xsf:xmlToEdit_name_key"> <xsd:selectorxpath="./xsf:menuArea/xsf:button|./xsf:menu/xsf:button|./xsf:toolbar/xsf:button"/> <xsd:fieldxpath="@xmlToEdit"/> </xsd:keyref> </xsd:element> <!--xmlToEdit--> <xsd:elementname="xmlToEdit"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:editWith"minOccurs="0"maxOccurs="1"/> </xsd:sequence> <xsd:attributename="name"type="xsd:NMTOKEN"use="required"/> <xsd:attributename="item"type="xsd:string"use="required"/> <xsd:attributename="container"type="xsd:string"/> <xsd:attributename="viewContext"> <xsd:simpleType> <xsd:restrictionbase="xsd:string"> <xsd:patternvalue="((\.|\#|[a-zA-Z0-9_])[a-zA-Z0-9_]*)(\s((\.|\#|[a-zA-Z0-9_])[a-zA-Z0-9_]*))*"/> </xsd:restriction>
![Page 1676: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1676.jpg)
</xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> <!--DigitalSignatures--> <xsd:elementname="documentSignatures"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:signedDataBlock"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="signatureLocation"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="signedDataBlock"> <xsd:complexType> <xsd:sequence> <xsd:elementname="message"type="xsf:xdSignedDataBlockMessage"minOccurs="0"/> </xsd:sequence> <xsd:attributename="name"type="xsf:xdSignedDataBlockName"use="required"/> <xsd:attributename="data"type="xsd:string"use="required"/> <xsd:attributename="signatureLocation"type="xsd:string"use="required"/> <xsd:attributename="mode"type="xsf:xdSignatureRelationEnum"use="required"/> </xsd:complexType> <xsd:uniquename="signedDataBlock_name_unique"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@name"/> </xsd:unique> </xsd:element> <!--VersionUpgrade--> <xsd:elementname="documentVersionUpgrade"> <xsd:complexType> <xsd:choice> <xsd:elementref="xsf:useScriptHandler"/>
![Page 1677: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1677.jpg)
<xsd:elementref="xsf:useTransform"/> </xsd:choice> </xsd:complexType> </xsd:element> <xsd:elementname="useTransform"> <xsd:complexType> <xsd:attributename="transform"use="required"> <xsd:simpleType> <xsd:unionmemberTypes="xsf:xdFileNamexsf:xdEmptyString"/> </xsd:simpleType> </xsd:attribute> <xsd:attributename="minVersionToUpgrade"type="xsf:xdSolutionVersion"use="required"/> <xsd:attributename="maxVersionToUpgrade"type="xsf:xdSolutionVersion"/> </xsd:complexType> </xsd:element> <!--XSFExtensions--> <xsd:elementname="extensions"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:extension"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:elementname="extension"> <xsd:complexTypemixed="true"> <xsd:sequence> <xsd:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/> </xsd:sequence> <xsd:attributename="name"type="xsd:NMTOKEN"use="required"/> <xsd:anyAttributeprocessContents="skip"/> </xsd:complexType> </xsd:element> <!--Rules-->
![Page 1678: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1678.jpg)
<xsd:elementname="ruleSetAction"> <xsd:complexType> <xsd:attributename="ruleSet"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="rule"> <xsd:complexType> <xsd:sequence> <xsd:choiceminOccurs="0"maxOccurs="unbounded"> <xsd:elementref="xsf:dialogBoxMessageAction"/> <xsd:elementref="xsf:dialogBoxExpressionAction"/> <xsd:elementref="xsf:switchViewAction"/> <xsd:elementref="xsf:assignmentAction"/> <xsd:elementref="xsf:queryAction"/> <xsd:elementname="submitAction"> <xsd:complexType> <xsd:attributename="adapter"type="xsf:xdTitle"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementref="xsf:openNewDocumentAction"/> <xsd:elementref="xsf:closeDocumentAction"/> </xsd:choice> <xsd:elementname="exitRuleSet"minOccurs="0"> <xsd:complexType/> </xsd:element> </xsd:sequence> <xsd:attributename="caption"type="xsd:string"use="required"/> <xsd:attributename="condition"type="xsd:string"use="optional"/> <xsd:attributename="isEnabled"type="xsf:xdYesNo"use="optional"default="yes"/> </xsd:complexType> </xsd:element> <xsd:elementname="dialogBoxMessageAction"> <xsd:simpleType>
![Page 1679: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1679.jpg)
<xsd:restrictionbase="xsd:string"> <xsd:maxLengthvalue="1024"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:elementname="dialogBoxExpressionAction"type="xsd:string"/> <xsd:elementname="switchViewAction"> <xsd:complexType> <xsd:attributename="view"type="xsf:xdViewName"use="required"/> </xsd:complexType> <xsd:keyrefname="switchViewAction_view_keyref"refer="xsf:view_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@view"/> </xsd:keyref> </xsd:element> <xsd:elementname="assignmentAction"> <xsd:complexType> <xsd:attributename="targetField"type="xsd:string"use="required"/> <xsd:attributename="expression"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="queryAction"> <xsd:complexType> <xsd:attributename="adapter"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="openNewDocumentAction"> <xsd:complexType> <xsd:attributename="solutionURI"type="xsd:anyURI"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="closeDocumentAction"> <xsd:complexType>
![Page 1680: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1680.jpg)
<xsd:attributename="promptToSaveChanges"type="xsf:xdYesNo"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="ruleSet"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:rule"minOccurs="1"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="name"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element> <xsd:elementname="ruleSets"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:ruleSet"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:uniquename="ruleSets_name_unique"> <xsd:selectorxpath="./xsf:ruleSet"/> <xsd:fieldxpath="@name"/> </xsd:unique> </xsd:element> <!--DeclarativeCalculations--> <xsd:elementname="calculations"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:calculatedField"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="treatBlankValueAsZero"type="xsf:xdYesNo"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="calculatedField"> <xsd:complexType>
![Page 1681: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1681.jpg)
<xsd:attributename="target"type="xsd:string"use="required"/> <xsd:attributename="expression"type="xsd:string"use="required"/> <xsd:attributename="refresh"type="xsd:string"use="required"/> </xsd:complexType> </xsd:element></xsd:schema>
![Page 1682: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1682.jpg)
ShowAll
![Page 1683: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1683.jpg)
xsfNamespace
TheMicrosoftOfficeInfoPath2003formdefinition(.xsf)fileconformstoanXSDschemadefinition,andusesacorrespondingnamespace.
![Page 1684: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1684.jpg)
NamespaceURI
xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"
![Page 1685: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1685.jpg)
RemarksAlloftheelementswithinthe.xsffilearenamespacequalifiedusingthexsfnamespace.
![Page 1686: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1686.jpg)
ShowAll
![Page 1687: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1687.jpg)
xdDesignModeType
Specifieswhetheraview(*.xsl)filecanbeopenedindesignmodeinMicrosoftOfficeInfoPath2003.
![Page 1688: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1688.jpg)
Typexsd:NMTOKEN
![Page 1689: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1689.jpg)
Facets
Name Descriptionenumeration normalenumeration protected
![Page 1690: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1690.jpg)
RemarksThexdDesignModetypeisusedforattributesintheformdefinitionfile(.xsf)tospecifywhetheraviewcanbeopenedindesignmode("normal"),orwhethertheviewisnotpermittedtobeopenedindesignmode("protected").
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1691: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1691.jpg)
ExampleThefollowingexampleisthedeclarationofthexdDesignModetype:
<xsd:simpleTypename="xdDesignMode"><xsd:restrictionbase="xsd:NMTOKEN"><xsd:enumerationvalue="normal"/><xsd:enumerationvalue="protected"/></xsd:restriction></xsd:simpleType>
![Page 1692: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1692.jpg)
ShowAll
![Page 1693: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1693.jpg)
xdEmptyStringType
Specifiesanemptystring.
![Page 1694: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1694.jpg)
Type
xsd:string
![Page 1695: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1695.jpg)
Facets
Name DescriptionmaxLength 0
![Page 1696: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1696.jpg)
RemarksThexdEmptyStringtypeisusedforattributesintheformdefinition(.xsf)filethatspecifyanemptystring.
![Page 1697: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1697.jpg)
ExampleThefollowingexampleisthedeclarationofthexdEmptyStringtype:
<xsd:simpleTypename="xdEmptyString"><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="0"/></xsd:restriction></xsd:simpleType>
![Page 1698: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1698.jpg)
xdEnabledDisabledType
Specifieswhetherafeatureisenabledordisabled.
![Page 1699: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1699.jpg)
Typexsd:NMTOKEN
![Page 1700: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1700.jpg)
Facets
Name Descriptionenumeration enabledenumeration disabled
![Page 1701: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1701.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1702: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1702.jpg)
ExampleThefollowingexampleisthedeclarationofthexdEnabledDisabledtype:
<xsd:simpleTypename="xdEnabledDisabled"><xsd:restrictionbase="xsd:NMTOKEN"><xsd:enumerationvalue="enabled"/><xsd:enumerationvalue="disabled"/></xsd:restriction></xsd:simpleType>
![Page 1703: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1703.jpg)
ShowAll
![Page 1704: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1704.jpg)
xdErrorMessageType
Specifiesanerrormessage.
![Page 1705: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1705.jpg)
Type
xsd:string
![Page 1706: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1706.jpg)
Facets
Name DescriptionmaxLength 1023
![Page 1707: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1707.jpg)
RemarksThexdErrorMessagetypeisusedforattributesintheformdefinition(.xsf)filethatspecifyanerrormessagenogreaterthan1023charactersinlength.
![Page 1708: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1708.jpg)
ExampleThefollowingexampleisthedeclarationofthexdErrorMessagetype:
<xsd:simpleTypename="xdErrorMessage"><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="1023"/></xsd:restriction></xsd:simpleType>
![Page 1709: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1709.jpg)
ShowAll
![Page 1710: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1710.jpg)
xdExpressionLiteralsimpleType
SpecifiesatypeforidentifyingwhetheravalueshouldbeinterpretedasaliteralvalueoranXPathexpressionthatreturnsavalue.
![Page 1711: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1711.jpg)
Typexsd:NMTOKEN
![Page 1712: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1712.jpg)
RemarksThexdExpressionLiteraltypeisusedforthevalueTypeattributeinthedavAdapterandemailAdapterelements.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1713: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1713.jpg)
ExampleThefollowingexampleisthedeclarationofthexdExpressionLiteraltype:
<xsd:simpleTypename="xdExpressionLiteral"><xsd:restrictionbase="xsd:NMTOKEN"><xsd:enumerationvalue="expression"/><xsd:enumerationvalue="literal"/></xsd:restriction></xsd:simpleType>
![Page 1714: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1714.jpg)
ShowAll
![Page 1715: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1715.jpg)
xdFileNameType
Specifiesthenameofafile.
![Page 1716: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1716.jpg)
Type
xsd:string
![Page 1717: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1717.jpg)
Facets
Name DescriptionminLength 1maxLength 64
![Page 1718: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1718.jpg)
RemarksThexdFileNametypeisusedforattributesintheformdefinition(.xsf)filethatspecifyafilenamethatcanbefrom1to64charactersinlength.
![Page 1719: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1719.jpg)
ExampleThefollowingexampleisthedeclarationofthexdFileNametype:
<xsd:simpleTypename="xdFileName"><xsd:restrictionbase="xsd:string"><xsd:minLengthvalue="1"/><xsd:maxLengthvalue="64"/></xsd:restriction></xsd:simpleType>
![Page 1720: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1720.jpg)
xdHWSCaptionsimpleType
SpecifiesatypeforthecaptionoftheMicrosoftBiztalkServer2004HWS(HumanWorkflowServices)actionortaskelement.
![Page 1721: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1721.jpg)
Typexsd:string
![Page 1722: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1722.jpg)
Facets
Name DescriptionmaxLength 255charactersminLength 1character
![Page 1723: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1723.jpg)
RemarksThelengthofthecaptioncannotbelessthanonecharacterorgreaterthan255characters.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1724: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1724.jpg)
ExampleThefollowingexampleisthedeclarationofthexdHWSCaptiontype:
<xsd:simpleTypename="xdHWSCaption"><xsd:restrictionbase="xsd:string"><xsd:minLengthvalue="1"/><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType>
![Page 1725: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1725.jpg)
xdHWSnamesimpleType
SpecifiesatypeforauniquenameoftheMicrosoftBiztalkServer2004HWS(HumanWorkflowServices)actionortaskelementasspecifiedbytheHWSworkflowdesigner.
![Page 1726: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1726.jpg)
Typexsd:NCName
![Page 1727: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1727.jpg)
Facets
Name Descriptionpattern [^-^\.^\\^\[^\]^\|^\+^?^\*^@^\{^\}^\(^\)^>^<^=^;^,]*
![Page 1728: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1728.jpg)
RemarksThenamecannotcontainthefollowingcharacters:
\/"[]:<>+=;,?*@
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1729: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1729.jpg)
ExampleThefollowingexampleisthedeclarationofthexdHWSnametype:
<xsd:simpleTypename="xdHWSname"><xsd:restrictionbase="xsd:NCName"><xsd:patternvalue="[^-^\.^\\^\[^\]^\|^\+^?^\*^@^\{^\}^\(^\)^>^<^=^;^,]*"/></xsd:restriction></xsd:simpleType>
![Page 1730: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1730.jpg)
ShowAll
![Page 1731: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1731.jpg)
xdManualAutoType
Specifiesa"manual"or"automatic"value.
![Page 1732: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1732.jpg)
Typexsd:NMTOKEN
![Page 1733: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1733.jpg)
Facets
Name Descriptionenumeration manualenumeration automatic
![Page 1734: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1734.jpg)
RemarksThexdTrustManualAutotypeisusedforattributesintheformdefinition(.xsf)filethatrequirea"manual"or"automatic"value.Thedefaultvalueis"manual".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1735: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1735.jpg)
ExampleThefollowingexampleisthedeclarationofthexdManualAutotype:
<xsd:simpleTypename="xdManualAuto"><xsd:restrictionbase="xsd:NMTOKEN"><xsd:enumerationvalue="manual"/><xsd:enumerationvalue="automatic"/></xsd:restriction></xsd:simpleType>
![Page 1736: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1736.jpg)
xdRoleNameType
Specifiestherolename.
![Page 1737: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1737.jpg)
Typexsf:xdViewName
![Page 1738: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1738.jpg)
RemarksRolenamehasrestrictionsonvaluesitcancontain.Theserestrictionsarethesameastheconstrainingfacetsofthexsf:xdViewNametype.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1739: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1739.jpg)
ExampleThefollowingexampleisthedeclarationofthexdRoleNametype:
<xsd:simpleTypename="xdRoleName"><xsd:restrictionbase="xsf:xdViewName"></xsd:restriction></xsd:simpleType>
![Page 1740: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1740.jpg)
ShowAll
![Page 1741: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1741.jpg)
xdScriptLanguageType
Specifiesthenameofascriptinglanguage.
![Page 1742: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1742.jpg)
Type
xsd:NMTOKEN
![Page 1743: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1743.jpg)
Facets
Name Descriptionpattern ((([Jj][Aa][Vv][Aa])|([Jj])|([Vv][Bb]))([Ss][Cc][Rr][Ii][Pp][Tt]))
![Page 1744: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1744.jpg)
RemarksThexdScriptLanguagetypeisusedforattributesintheformdefinition(.xsf)filethatspecifythenameofascriptinglanguage.
![Page 1745: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1745.jpg)
ExampleThefollowingexampleisthedeclarationofthexdScriptLanguagetype:
<xsd:simpleTypename="xdScriptLanguage"><xsd:restrictionbase="xsd:NMTOKEN"><xsd:patternvalue="((([Jj][Aa][Vv][Aa])|([Jj])|([Vv][Bb]))([Ss][Cc][Rr][Ii][Pp][Tt]))"/></xsd:restriction></xsd:simpleType>
![Page 1746: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1746.jpg)
xdSignatureRelationEnumType
ContainsthesignaturerelationenumerationforthesignedDataBlockelement.
![Page 1747: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1747.jpg)
Typexsd:string
![Page 1748: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1748.jpg)
Facets
Name Descriptioncountersign Specifiesthateachsignaturesignstheprevioussignaturein
thesignedDataBlock.cosign SpecifiesthateachsignatureinthesignedDataBlockis
independent.single Specifiesthatonlyonesignatureisallowedforthe
signedDataBlock.
![Page 1749: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1749.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1750: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1750.jpg)
ExampleThefollowingexampleisthedeclarationofthexdSignatureRelationEnumtype:
<xsd:simpleTypename="xdSignatureRelationEnum"><xsd:restrictionbase="xsd:string"><xsd:enumerationvalue="countersign"/><xsd:enumerationvalue="cosign"/><xsd:enumerationvalue="single"/></xsd:restriction></xsd:simpleType>
![Page 1751: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1751.jpg)
xdSignedDataBlockMessageType
Definesthemaximumstringlengthforthesignaturesconfirmationmessageelement.
![Page 1752: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1752.jpg)
Typexsd:simpleType
![Page 1753: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1753.jpg)
Facets
Name DescriptionmaxLength 255characters
![Page 1754: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1754.jpg)
RemarksThesignatureconfirmationmessagehasamaximumlengthof255characters.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1755: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1755.jpg)
ExampleThefollowingexampleisthedeclarationofthexdSignedDataBlockMessagetype:
<xsd:simpleTypename="xdSignedDataBlockMessage"><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType>
![Page 1756: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1756.jpg)
xdSignedDataBlockNameType
DefinesthemaximumstringlengthforthenameattributeofthesignedDataBlockelement.
![Page 1757: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1757.jpg)
Typexsd:simpleType
![Page 1758: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1758.jpg)
Facets
Name DescriptionmaxLength 255charactersminLength 1character
![Page 1759: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1759.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1760: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1760.jpg)
ExampleThefollowingexampleisthedeclarationofthexdSignedDataBlockNametype:
<xsd:simpleTypename="xdSignedDataBlockName"><xsd:restrictionbase="xsd:ID"><xsd:minLengthvalue="1"/><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType>
![Page 1761: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1761.jpg)
ShowAll
![Page 1762: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1762.jpg)
xdSolutionVersionType
Specifiesaversionnumber.
![Page 1763: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1763.jpg)
Type
xsd:string
![Page 1764: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1764.jpg)
Facets
Name Descriptionpattern (([0-9]{1,4}.){3}[0-9]{1,4})
![Page 1765: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1765.jpg)
RemarksThexdSolutionVersiontypeisusedforattributesintheformdefinition(.xsf)filethatspecifyaversionnumber.
![Page 1766: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1766.jpg)
ExampleThefollowingexampleisthedeclarationofthexdSolutionVersiontype:
<xsd:simpleTypename="xdSolutionVersion"><xsd:restrictionbase="xsd:string"><xsd:patternvalue="(([0-9]{1,4}.){3}[0-9]{1,4})"/></xsd:restriction></xsd:simpleType>
![Page 1767: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1767.jpg)
ShowAll
![Page 1768: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1768.jpg)
xdTitleType
Specifiesatitlestring.
![Page 1769: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1769.jpg)
Type
xsd:string
![Page 1770: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1770.jpg)
Facets
Name DescriptionminLength 1maxLength 255pattern ([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*
([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
![Page 1771: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1771.jpg)
RemarksThexdTitletypeisusedforattributesintheformdefinition(.xsf)filethatareastringofcharactersthatcanbefrom1to255charactersinlength,andthatfollowaprescribedpattern.
![Page 1772: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1772.jpg)
ExampleThefollowingexampleisthedeclarationofthexdTitletype:
<xsd:simpleTypename="xdTitle"><xsd:restrictionbase="xsd:string"><xsd:minLengthvalue="1"/><xsd:maxLengthvalue="255"/><xsd:patternvalue="([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?"/></xsd:restriction></xsd:simpleType>
![Page 1773: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1773.jpg)
ShowAll
![Page 1774: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1774.jpg)
xdTrustLevelType
Specifiesa"restricted"or"domain"value.
![Page 1775: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1775.jpg)
Typexsd:string
![Page 1776: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1776.jpg)
Facets
Name Descriptionenumeration restrictedenumeration domain
![Page 1777: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1777.jpg)
RemarksThexdTrustLeveltypeisusedforattributesintheformdefinition(.xsf)filethatrequirea"restricted"or"domain"value.Thedefaultvalueis"domain".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1778: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1778.jpg)
ExampleThefollowingexampleisthedeclarationofthexdTrustLeveltype:
<xsd:simpleTypename="xdTrustLevel"><xsd:restrictionbase="xsd:string"><xsd:enumerationvalue="restricted"/><xsd:enumerationvalue="domain"/></xsd:restriction></xsd:simpleType>
![Page 1779: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1779.jpg)
ShowAll
![Page 1780: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1780.jpg)
xdViewNameType
Specifiesaviewname.
![Page 1781: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1781.jpg)
Type
xsd:string
![Page 1782: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1782.jpg)
Facets
Name DescriptionminLength 1maxLength 255pattern ([^\p{Z}\p{C}/\\#&"><])
(([^\p{Zl}\p{Zp}\p{C}/\\#&"><])*([^\p{Z}\p{C}/\\#&"><]))?
![Page 1783: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1783.jpg)
RemarksThexdViewNametypeisusedforattributesintheformdefinition(.xsf)filethatareastringofcharactersthatcanbefrom1to255charactersinlength,andthatfollowaprescribedpattern.
![Page 1784: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1784.jpg)
ExampleThefollowingexampleisthedeclarationofthexdViewNametype:
<xsd:simpleTypename="xdViewName"><xsd:restrictionbase="xsd:string"><xsd:minLengthvalue="1"/><xsd:maxLengthvalue="255"/><xsd:patternvalue="([^\p{Z}\p{C}/\\#&"><])(([^\p{Zl}\p{Zp}\p{C}/\\#&"><])*([^\p{Z}\p{C}/\\#&"><]))?"/></xsd:restriction></xsd:simpleType>
![Page 1785: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1785.jpg)
ShowAll
![Page 1786: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1786.jpg)
xdYesNoType
Specifiesayesornovalue.
![Page 1787: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1787.jpg)
Type
xsd:NMTOKEN
![Page 1788: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1788.jpg)
Facets
Name Descriptionenumeration yesenumeration no
![Page 1789: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1789.jpg)
RemarksThexdYesNotypeisusedforattributesintheformdefinition(.xsf)filethatrequireayesornovalue.
![Page 1790: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1790.jpg)
ExampleThefollowingexampleisthedeclarationofthexdYesNotype:
<xsd:simpleTypename="xdYesNo"><xsd:restrictionbase="xsd:NMTOKEN"><xsd:enumerationvalue="yes"/><xsd:enumerationvalue="no"/></xsd:restriction></xsd:simpleType>
![Page 1791: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1791.jpg)
ShowAll
![Page 1792: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1792.jpg)
UIContainerGroup
Representsacollectionofuserinterface(UI)elements.
![Page 1793: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1793.jpg)
RemarksTheUIContainergroupisusedasanelementoftheViewContentgroup.
![Page 1794: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1794.jpg)
ExampleThefollowingexampleistheXMLSchemadeclarationoftheUIContainergroup:
<xsd:groupname="UIContainer"><xsd:choice><xsd:elementref="xsf:toolbar"/><xsd:elementref="xsf:menu"/><xsd:elementref="xsf:menuArea"/></xsd:choice></xsd:group>
![Page 1795: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1795.jpg)
ShowAll
![Page 1796: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1796.jpg)
UIItemGroup
Representsacollectionofuserinterface(UI)elements.
![Page 1797: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1797.jpg)
RemarksTheUIItemgroupisusedasanelementofthetoolbar,menu,andmenuAreaelements.
![Page 1798: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1798.jpg)
ExampleThefollowingexampleistheXMLSchemadeclarationoftheUIItemgroup:
<xsd:groupname="UIItem"><xsd:choice><xsd:elementref="xsf:button"/><xsd:elementref="xsf:menu"/></xsd:choice></xsd:group>
![Page 1799: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1799.jpg)
ShowAll
![Page 1800: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1800.jpg)
ViewContentGroup
Representsacollectionofelementsusedinaview.
![Page 1801: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1801.jpg)
RemarksTheViewContentgroupisusedasanelementoftheviewelement.
![Page 1802: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1802.jpg)
ExampleThefollowingexampleistheXMLSchemadeclarationoftheViewContentgroup:
<xsd:groupname="ViewContent"><xsd:choice><xsd:elementref="xsf:editing"minOccurs="0"/><xsd:elementref="xsf:mainpane"minOccurs="0"/><xsd:elementref="xsf:printSettings"minOccurs="0"/><xsd:groupref="xsf:UIContainer"minOccurs="0"maxOccurs="unbounded"/><xsd:elementref="xsf:unboundControls"minOccurs="0"/></xsd:choice></xsd:group>
![Page 1803: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1803.jpg)
ShowAll
![Page 1804: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1804.jpg)
actionElement
ContainstheMicrosoftBiztalkServer2004HumanWorkflowServices(HWS)actioninformationthathasbeenenabledfortheform.
![Page 1805: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1805.jpg)
Typexsd:complexType
![Page 1806: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1806.jpg)
ChildElementsNone.
![Page 1807: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1807.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
name xsf:xdHWSname Yes TheuniquenameoftheactionasspecifiedbytheHWSworkflowdesigner,andusedfortheonClickeventofthebuttonintheWorkflowtaskpane.
Cannotcontainthefollowingcharacters:
\/"[]:<>+=;,?*@
actionTypeID xsd:string Yes TheuniqueIDfortheaction.
string
canInitiateWorkflow xsf:xdYesNo Yes Indicateswhethertheactioncanbeusedtostartanactivityflow.
yes
no
caption xsf:xdHWSCaption No ThelabelforthecorrespondingbuttonintheWorkflowtaskpanetostarttheaction.
minLength=1
maxLength=255
![Page 1808: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1808.jpg)
Definition
<xsd:elementname="action"><xsd:complexType><xsd:attributename="name"type="xsf:xdHWSname"use="required"></xsd:attribute><xsd:attributename="actionTypeID"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="canInitiateWorkflow"type="xsf:xdYesNo"use="required"></xsd:attribute><xsd:attributename="caption"type="xsf:xdHWSCaption"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1809: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1809.jpg)
RemarksTheactionelementisanoptionalelementoftheallowedActionselement.
EachactionenabledfortheformmusthaveacorrespondingactionelementintheallowedActionssectionoftheformdefinitionfile(.xsf).
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1810: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1810.jpg)
ExampleThefollowingisanexampleoftheactionelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 1811: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1811.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 1812: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1812.jpg)
ShowAll
![Page 1813: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1813.jpg)
adoAdapterElement
DefinesanActiveXDataObjects(ADO)dataadapterthatretrievesdatafromanADOdatasourceforthespecifieddataobject.
![Page 1814: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1814.jpg)
Type
xsd:complexType
![Page 1815: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1815.jpg)
Structure
Name DescriptioncommandText (Requiredattribute)Astringpropertythatcontains
theADOSQLcommandtexttobeusedforqueryingthedatafromthespecifieddatasource.
connectionString (Requiredattribute)AstringpropertythatcontainstheADOconnectionstringtobeusedtoconnecttothedatasource.
name (Optionalattribute)ContainsthenameoftheadoAdapterelement.
queryAllowed (Optionalattribute)SpecifieswhetherdatacanberetrievedfromthedatasourcethroughtheQuerymethodofthedataadapterobject.
submitAllowed (Optionalattribute)SpecifieswhetherdatacanbesubmittedtothedatasourcethroughtheSubmitmethodofthedataadapterobject.
![Page 1816: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1816.jpg)
RemarksTheadoAdapterelementisanoptionalelementofthequeryelement.
![Page 1817: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1817.jpg)
ExampleThefollowingisanexampleoftheadoAdapterelement:
<xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 1818: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1818.jpg)
ShowAll
![Page 1819: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1819.jpg)
allowedActionsElement
ContainstheMicrosoftBiztalkServer2004HumanWorkflowServices(HWS)actionsenabledfortheform.
![Page 1820: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1820.jpg)
Typexsd:complexType
![Page 1821: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1821.jpg)
ChildElements
Element Descriptionaction Containstheinformationforanindividualaction.
![Page 1822: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1822.jpg)
AttributesNone.
![Page 1823: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1823.jpg)
Definition
<xsd:elementname="allowedActions"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:action"minOccurs="1"maxOccurs="20"/></xsd:sequence></xsd:complexType><xsd:uniquename="hws_actionTypeID_unique"><xsd:selectorxpath="./xsf:action"/><xsd:fieldxpath="@actionTypeID"/></xsd:unique></xsd:element>
![Page 1824: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1824.jpg)
RemarksTheallowedActionselementisanoptionalelementofthehwsWorkflowelement.
EachactiontobeenabledfortheformmusthaveacorrespondingactionelementintheallowedActionssectionoftheformdefinitionfile(.xsf).
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1825: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1825.jpg)
ExampleThefollowingisanexampleoftheallowedActionselement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 1826: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1826.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 1827: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1827.jpg)
ShowAll
![Page 1828: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1828.jpg)
allowedControlElement
SpecifiestheActiveXcontrolsthatareallowedtobeinstantiated.
![Page 1829: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1829.jpg)
Typexsd:complexType
![Page 1830: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1830.jpg)
ChildElementsNone.
![Page 1831: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1831.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
cabFile xsd:string No SpecifiesthenameoftheCABfile.
string
clsid xsd:string Yes SpecifiestheCLSID(COMclassID)oftheActiveXcontrol.
string
version xsd:string No SpecifiestheActiveXcontrolversionnumber.
string
![Page 1832: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1832.jpg)
Definition
<xsd:elementname="allowedControl"><xsd:complexType><xsd:attributename="cabFile"type="xsd:string"use="optional"></xsd:attribute><xsd:attributename="clsid"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="version"type="xsd:string"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1833: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1833.jpg)
RemarksWhentheviewcontainsanOBJECTtag,thecontrolwillbeinstantiatedonlyiftheCLSIDislistedasanallowedControlelementinthepermissionselement.ControlsotherthanthosecorrespondingtotheCLSIDslistedinthepermissionselementarenotallowedtobeinstantiatedintheview.
IfanActiveXcontrollistedinthepermissionselementisnotinstalled(thatis,ifaCLSIDofacontrolisnotregistered),orifanearlierversionofthecontrolthanthatversionspecifiedinthepermissionselementistheonlyversioninstalled,thentherequiredCABfileswillbeinstalled.IftheCABfilesarenotincluded,oriftheinstallationisstopped,theformwillnotopen.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1834: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1834.jpg)
ExampleThefollowingisanexampleoftheallowedControlelement:
<xsf:permissions><xsf:allowedControlcabFile="{84F32C01-78D8-4B93-8ED4-106DA70224C2}.cab”clsid="{84F32C01-78D8-4B93-8ED4-106DA70224C2}"version=”1,0,0,1”/><xsf:allowedControlclsid="{F08DF954-8592-11D1-B16A-00C0F0283630}"/></xsf:permissions>
![Page 1835: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1835.jpg)
ShowAll
![Page 1836: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1836.jpg)
allowedTasksElement
ContainstheMicrosoftBiztalkServer2004HumanWorkflowServices(HWS)tasksenabledfortheform.
![Page 1837: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1837.jpg)
Typexsd:complexType
![Page 1838: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1838.jpg)
ChildElements
Element Descriptiontask Containstheinformationforanindividualtask.
![Page 1839: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1839.jpg)
AttributesNone.
![Page 1840: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1840.jpg)
Definition
<xsd:elementname="allowedTasks"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:task"minOccurs="1"maxOccurs="20"/></xsd:sequence></xsd:complexType><xsd:uniquename="hws_taskID_unique"><xsd:selectorxpath="./xsf:task"/><xsd:fieldxpath="@taskTypeID"/></xsd:unique></xsd:element>
![Page 1841: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1841.jpg)
RemarksTheallowedTaskselementisanoptionalelementofthehwsWorkflowelement.
EachtasktobeenabledfortheformmusthaveacorrespondingtaskelementintheallowedTaskssectionoftheformdefinitionfile(.xsf).
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1842: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1842.jpg)
ExampleThefollowingisanexampleoftheallowedTaskselement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 1843: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1843.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 1844: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1844.jpg)
ShowAll
![Page 1845: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1845.jpg)
applicationParametersElement
Containsform-specificpropertiesthatdescribehowaformshouldbeusedinMicrosoftOfficeInfoPath2003designmode.
![Page 1846: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1846.jpg)
Type
xsd:complexType
![Page 1847: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1847.jpg)
Structure
Name Descriptionapplication (Requiredattribute)Identifiesthenameofthe
applicationusedtodesigntheInfoPathform.solutionProperties (Optionalelement)Containsdesign-timeinformation
abouttheInfoPathform.
![Page 1848: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1848.jpg)
RemarksTheapplicationParameterselementisanoptionalelementofthexDocumentClasselement.
![Page 1849: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1849.jpg)
ExampleThefollowingisanexampleoftheapplicationParameterselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:names?pace1:mynames"/></xsf:applicationParameters>
![Page 1850: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1850.jpg)
ShowAll
![Page 1851: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1851.jpg)
assignmentActionElement
Definesanactiontosetthevalueofafield.
![Page 1852: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1852.jpg)
Typexsd:complexType
![Page 1853: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1853.jpg)
ChildElementsNone.
![Page 1854: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1854.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
targetField xsd:string Yes ContainsanXPathexpressionforthetargetnode.
string
expression xsd:string Yes ContainsanXPathexpressiontopopulatethevalueofthetargetField.
string
![Page 1855: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1855.jpg)
Definition
<xsd:elementname="assignmentAction"><xsd:complexType><xsd:attributename="targetField"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="expression"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1856: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1856.jpg)
RemarksTheassignmentActionelementisachildelementoftheruleelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1857: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1857.jpg)
ExampleThefollowingisanexampleoftheassignmentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 1858: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1858.jpg)
ShowAll
![Page 1859: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1859.jpg)
attachmentFileNameElement
Containsthefilenameofthefileattachmenttobeincludedwiththee-mailmessagewhentheformissubmittedbyusingtheemailAdapterelement.
![Page 1860: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1860.jpg)
Typexsd:complexType
![Page 1861: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1861.jpg)
ParentElements
Element DescriptionemailAdapter Parentelementthatcontainstheinformationtosubmita
MicrosoftOfficeInfoPathfileasanattachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 1862: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1862.jpg)
ChildElementsNone.
![Page 1863: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1863.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes ContainsthevalueoftheattachmentFileNameelement.
string
valueType xsf:xdExpressionLiteralNo SpecifieswhetherthevalueattributeisinterpretedasanXPathexpressionoraliteralstring.
expression
literal
![Page 1864: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1864.jpg)
Definition
<xsd:elementname="attachmentFileName"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1865: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1865.jpg)
RemarksTheattachmentFileNameelementisachildelementoftheemailAdapterelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1866: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1866.jpg)
ExampleThefollowingisanexampleoftheattachmentFileNameelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 1867: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1867.jpg)
attributeDataElement
Specifiesthename,andassociatedvalue,ofanattributethatwillbeinserted,ormodifiedifitalreadyexists,bytheinsertactionofthexCollectionorxOptionaleditingcomponents.
![Page 1868: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1868.jpg)
Type
xsd:complexType
![Page 1869: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1869.jpg)
Structure
Name Descriptionattribute (Requiredattribute)Specifiesthenameoftheattributetobe
inserted.value (Requiredattribute)Specifiesthevalueoftheattributetobe
inserted.
![Page 1870: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1870.jpg)
RemarksTheattributeDataelementisanoptionalelementofthechooseFragmentelement.
![Page 1871: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1871.jpg)
ExampleThefollowingisanexampleoftheattributeDataelement:
<xsf:editWithcomponent="xOptional"><xsf:fragmentToInsert><xsf:chooseFragmentparent="report"><xsf:attributeDataattribute="author"value="authorname"/></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith>
![Page 1872: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1872.jpg)
autoRecoveryElement
SpecifieswhethertheformwillsaveAutoRecoverinformationandwhethertheAutoRecoversettingcanbechangedbytheuser.
![Page 1873: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1873.jpg)
Typexsd:complexType
![Page 1874: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1874.jpg)
ChildElementsNone.
![Page 1875: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1875.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
feature xsf:xdEnabledDisabled required SetswhethertheAutoRecoverfeatureisenabled.
enabled
disabled
![Page 1876: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1876.jpg)
Definition
<xsd:elementname="autoRecovery"><xsd:complexType><xsd:attributename="feature"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1877: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1877.jpg)
RemarksTheautoRecoveryelementisanoptionalelementofthefeatureRestrictionselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1878: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1878.jpg)
ExampleThefollowingisanexampleoftheautoRecoveryelement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 1879: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1879.jpg)
ShowAll
![Page 1880: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1880.jpg)
bccElement
ContainsinformationrelatedtotheBCCrecipientsofthee-mailmessagewhentheformissubmittedusingtheemailAdapterelement.
![Page 1881: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1881.jpg)
Typexsd:complexType
![Page 1882: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1882.jpg)
ParentElements
Element DescriptionemailAdapter Parentelementthatcontainstheinformationneededto
submitaMicrosoftOfficeInfoPath2003SP1fileasanattachmenttoane-mail,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 1883: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1883.jpg)
ChildElementsNone.
![Page 1884: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1884.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes Containsthevalueofthebccelement.
string
valueType xsf:xdExpressionLiteralNo SpecifieswhetherthevalueattributeisinterpretedasanXPathexpressionorasaliteralstring.
expression
literal
![Page 1885: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1885.jpg)
Definition
<xsd:elementname="bcc"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1886: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1886.jpg)
RemarksIfmultipleaddressesarespecifedforthevalueofthebccelement,theaddressesmustbeseparatedbysemicolons.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1887: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1887.jpg)
ExampleThefollowingisanexampleofthebccelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]""valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 1888: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1888.jpg)
ShowAll
![Page 1889: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1889.jpg)
buttonElement
Definesabuttonthathasanassociatedaction.
![Page 1890: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1890.jpg)
Type
xsd:complexType
![Page 1891: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1891.jpg)
Structure
Name Descriptionaction (Optionalattribute)Specifiesanactionofanediting
component,usingthesyntax"NameOfEditingComponent::NameOfAction".
caption (Optionalattribute)Providesthecaptiondisplayedonthebutton.
icon (Optionalattribute)ProvidesaUniformResourceLocator(URL)toabitmap(.bmp)orgraphicsinterchangeformat(.gif)file,whichisusedforthebuttonormenuitem.
name (Optionalattribute)UsedtoassociatetheOnClickeventhandlerofthebuttonwithascriptingfunction.
showIf (Optionalattribute)Specifiestheeditingcontextofthebutton.tooltip (Optionalattribute)ProvidestheScreenTiptexttobeusedfor
thebutton.xmlToEdit (Optionalattribute)SpecifiesthenameofanxmlToEdit
element,forwhichthebuttonisused.
![Page 1892: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1892.jpg)
RemarksThebuttonelementisanoptionalelementofthetoolbar,menu,andmenuAreaelements.Eachbuttonelementdeclarationcorrespondstoabuttononatoolbar,menu,ormenuareaitem,andeachbuttonhasanaction(orcommand)associatedwithit.
![Page 1893: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1893.jpg)
ExampleThefollowingisanexampleofthebuttonelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 1894: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1894.jpg)
ShowAll
![Page 1895: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1895.jpg)
calculatedFieldElement
Definesanindividualcalculation,includingtheformula,whenthecalculationistobeperformed,andwheretheresultwillbestored.
![Page 1896: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1896.jpg)
Typexsd:complexType
![Page 1897: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1897.jpg)
ChildElementsNone.
![Page 1898: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1898.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
target xsd:string Yes ContainstheXPathlocationwheretheresultoftheexpressionwillbestored.
string
expression xsd:string Yes Containstheformula,intheformofanXPathexpression,tobeevaluated.Theresultisstoredinthetargetlocation.
string
refresh xsd:string Yes Specifieswhentheexpressionwillbeevaluated.
onInit
onChange
![Page 1899: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1899.jpg)
Definition
<xsd:elementname="calculatedField"><xsd:complexType><xsd:attributename="target"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="expression"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="refresh"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1900: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1900.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1901: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1901.jpg)
ExampleThefollowingisanexampleofthecalculatedFieldelement:
<xsf:calculations><xsf:calculatedFieldtarget="/my:myFields/my:average"expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"refresh="onChange"/></xsf:calculations>
![Page 1902: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1902.jpg)
ShowAll
![Page 1903: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1903.jpg)
calculationsElement
Containsdefinitionsforcalculationsperformedintheformandspecifieshowblankvaluesarehandled.
![Page 1904: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1904.jpg)
Typexsd:complexType
![Page 1905: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1905.jpg)
ChildElements
Element DescriptioncalculatedField Definesanindividualcalculation,includingtheformula,
whenthecalculationistobeperformed,andwheretheresultwillbestored.
![Page 1906: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1906.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
treatBlankValueAsZero xsf:xdYesNo No Specifieswhetherablankfieldshouldbecalculatedwithavalueofzero.Defaultisyes.
yes
no
![Page 1907: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1907.jpg)
Definition
<xsd:elementname="calculations"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:calculatedField"minOccurs="0"maxOccurs="unbounded"/></xsd:sequence><xsd:attributename="treatBlankValueAsZero"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1908: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1908.jpg)
RemarksEverycalculationintheformwillhaveacalculatedFieldelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1909: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1909.jpg)
ExampleThefollowingisanexampleofthecalculationselement:
<xsf:calculations><xsf:calculatedFieldtarget="/my:myFields/my:average"expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"refresh="onChange"/></xsf:calculations>
![Page 1910: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1910.jpg)
ShowAll
![Page 1911: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1911.jpg)
ccElement
ContainsinformationrelatedtotheCCrecipientsofthee-mailmessagewhentheformissubmittedusingtheemailAdapterelement.
![Page 1912: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1912.jpg)
Typexsd:complexType
![Page 1913: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1913.jpg)
ParentElements
Element DescriptionemailAdapter Parentelementthatcontainstheinformationneededto
submitaMicrosoftOfficeInfoPath2003SP1fileasanattachmenttoane-mail,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 1914: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1914.jpg)
ChildElementsNone.
![Page 1915: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1915.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes Containsthevalueoftheccelement.
string
valueType xdExpressionLiteral No SpecifieswhetherthevalueattributeisinterpretedasanXPathexpressionoraliteralstring.
expression
literal
![Page 1916: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1916.jpg)
Definition
<xsd:elementname="cc"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1917: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1917.jpg)
RemarksIfmultipleaddressesarespecifedforthevalueoftheccelement,theaddressesmustbeseparatedbysemicolons.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1918: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1918.jpg)
ExampleThefollowingisanexampleoftheccelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 1919: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1919.jpg)
ShowAll
![Page 1920: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1920.jpg)
chooseFragmentElement
SpecifiesanXMLfragment.
![Page 1921: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1921.jpg)
Type
xsd:complexType
![Page 1922: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1922.jpg)
Structure
Name DescriptionattributeData (Optionalelement)Specifiesthename,and
associatedvalue,ofanattributethatwillbeinserted,ormodifiedifitalreadyexists,bytheinsertactionofthexCollectionorxOptionaleditingcomponents.
followingSiblings (Optionalattribute)SpecifiesarelativeXPathexpressionfromtheparentnodethatspecifiestheXMLDocumentObjectModel(DOM)nodespriortowhichtheinsertionoftheXMLfragmentshouldoccur.
NoteThisisnotnecessaryinMicrosoftOfficeInfoPath2003ServicePack1andwillnotbeautomaticallygeneratedbyInfoPath.
parent (Optionalattribute)SpecifiesarelativeXPathexpressionfromthecontainernodethatspecifiestheXMLDOMnodeunderwhichtheXMLfragmentisinserted.
innerFragment (Optionalattribute)SpecifiesarelativeXPathexpressionfromtheparentnodetothesmallestfragmenttobeinserted.
NoteUseofthisattributerequiresMicrosoftOfficeInfoPath2003ServicePack1.
![Page 1923: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1923.jpg)
RemarksThechooseFragmentelementisarequiredelementofthefragmentToInsertelement.
ThechooseFragmentelementhasanopencontentmodel.Itmaycontaintext,oroneormoreelementnodes,ormixedcontent(bothelementnodesandtextnodes).InadditiontoorinsteadofXMLdatatobeinserteddirectlyasafragment,itcancontainoneormoreattributeDataelements.InthiscasetheattributeDataelementsarenotincludedasinsertedcontent,butareeachusedtospecifysettinganattributevalue.
ThechooseFragmentelementsaretypicallyorderedinincreasingsize.ThefirstwillbethedatafragmenttobeinsertedbytheinsertBeforeandinsertAfteractions,whenthereisalreadyatleastoneiteminthecollection.Theinsertaction,ontheotherhand,canbeinvokedwhenthereiscurrentlyanodeintheXMLtreecorrespondingtoacontainer,butnonodecorrespondingtoanitem(inotherwords,itcanbeusedtoinsertthefirstitem).
NoteMicrosoftOfficeInfoPath2003ServicePack1willgenerateonlyonechooseFragmentnode.Formoreinformation,seetheinnerFragmentattribute.
NoteAnyelementcontentwithintheXMLfragment,otherthanattributedata,correspondstonewcontenttobeinsertedintotheform'sunderlyingXMLdocument,andshouldbeintheappropriatenamespace.
![Page 1924: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1924.jpg)
ExampleThefollowingisanexampleofthechooseFragmentelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 1925: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1925.jpg)
ShowAll
![Page 1926: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1926.jpg)
closeDocumentActionElement
Definesaformcloseaction.
![Page 1927: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1927.jpg)
Typexsd:complexType
![Page 1928: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1928.jpg)
ChildElementsNone.
![Page 1929: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1929.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
promptToSaveChanges xdYesNo Yes Specifieswhethertheuserispromptedtosavechangestotheformbeforetheactioncompletes.Defaultis"yes".
yes
no
![Page 1930: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1930.jpg)
Definition
<xsd:elementname="closeDocumentAction"><xsd:complexType><xsd:attributename="promptToSaveChanges"type="xsf:xdYesNo"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1931: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1931.jpg)
RemarksThecloseDocumentActionelementisachildelementoftheruleelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1932: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1932.jpg)
ExampleThefollowingisanexampleofthecloseDocumentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 1933: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1933.jpg)
ShowAll
![Page 1934: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1934.jpg)
customCategoryElement
SpecifiesthecategorythattheformtemplateappearsunderintheFillOutaFormtaskpane.
![Page 1935: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1935.jpg)
Typexsd:complexType
![Page 1936: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1936.jpg)
ChildElementsNone.
![Page 1937: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1937.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xsf:xdTitle required Specifies
thenameofthecustomcategory.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
![Page 1938: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1938.jpg)
Definition
<xsd:elementname="customCategory"><xsd:complexType><xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1939: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1939.jpg)
RemarksThecustomCategoryelementisanoptionalelementoftheinitialXmlDocumentelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1940: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1940.jpg)
ExampleThefollowingisanexampleofthecustomCategoryelement:
<xsf:fileNew><xsf:initialXmlDocumentcaption="TravelReport"href="TravelReportTemplate.xml"><xsf:customCategoryname="Reports"/></xsf:initialXmlDocument></xsf:fileNew>
![Page 1941: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1941.jpg)
ShowAll
![Page 1942: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1942.jpg)
customValidationElement
Definesrule-basedcustomvalidationontopofallvalidationenforcedthroughtheXMLSchema.
![Page 1943: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1943.jpg)
Type
xsd:complexType
![Page 1944: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1944.jpg)
Structure
Name DescriptionerrorCondition (Optionalelement)Definesacustomvalidation(orerror
condition)foraspecificXMLDocumentObjectModel(DOM)nodeinaform'sunderlyingXMLdocument.
![Page 1945: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1945.jpg)
RemarksThecustomValidationelementisanoptionalelementofthexDocumentClasselement.
NoteItispossibletocreatemultipleerrorconditionsonafieldinaformusingmultipleerrorConditionelements,buttheywillnotappearintheDataValidationdialogboxwhileindesignmode.
![Page 1946: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1946.jpg)
ExampleThefollowingisanexampleofthecustomValidationelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 1947: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1947.jpg)
ShowAll
![Page 1948: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1948.jpg)
dataAdaptersElement
Containsinformationaboutsubmitadaptersthatareusedasthemainsubmitadaptersfortheformandthatthereforearenotdeclaredinlinewithinthesubmitelement.
![Page 1949: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1949.jpg)
Typexsd:complexType
![Page 1950: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1950.jpg)
ChildElements
Element DescriptionwebServiceAdapter ContainsinformationtoenableInfoPathformsto
besubmittedtoanXMLWebservice.davAdapter ContainsinformationtoenableInfoPathformsto
besubmittedtoaserverrunningMicrosoftWindowsSharePointServicesortoaWeb-basedDistributedAuthoringandVersioning(WebDAV)server.
emailAdapter ContainsinformationtoenablesubmissionofanInfopathformasanattachmenttoane-mail,withaspecifiedsetofrecipients,asubject,andanintroduction.
hwsAdapter DefinestheMicrosoftBiztalk2004HumanWorkflowServices(HWS)dataadapterthatisusedtostartorextendanactivityflowandrespondtoatask.
![Page 1951: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1951.jpg)
AttributesNone.
![Page 1952: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1952.jpg)
Definition
<xsd:elementname="dataAdapters"><xsd:complexType><xsd:choiceminOccurs="0"maxOccurs="unbounded"><xsd:elementref="xsf:webServiceAdapter"/><xsd:elementref="xsf:davAdapter"/><xsd:elementref="xsf:emailAdapter"/><xsd:elementref="xsf:hwsAdapter"/></xsd:choice></xsd:complexType></xsd:element>
![Page 1953: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1953.jpg)
RemarksThedataAdapterselementisanoptionalelementofthexDocumentClasselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1954: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1954.jpg)
ExampleThefollowingisanexampleofthedataAdapterselement:
<xsf:dataAdapters><xsf:webServiceAdaptername="submit2"...submitAllowed="yes">...</xsf:webServiceAdapter><xsf:emailAdaptername="submit4"…submitAllowed="yes"/></xsf:dataAdapters>
![Page 1955: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1955.jpg)
ShowAll
![Page 1956: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1956.jpg)
dataObjectElement
DefinesasecondarydataobjectthatisusedinaMicrosoftOfficeInfoPath2003form.
![Page 1957: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1957.jpg)
Type
xsd:complexType
![Page 1958: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1958.jpg)
Structure
Name DescriptioninitOnLoad (Optionalattribute)Specifieswhetherthedataobjectshould
beinitializedondocumentload.name (Requiredattribute)Theuniquenameforthedataobject.schema (Optionalattribute)ThenameofanXMLSchemafile.query (Requiredelement)Associatesthedataadapterwiththe
dataobjectoraform'sunderlyingXMLdocument.
![Page 1959: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1959.jpg)
RemarksThedataObjectelementisanoptionalelementofthedataObjectselement.
MultipledataObjectelementsareallowedwithinaform.EachdataobjectisanXMLDocumentObjectModel(DOM)populatedfromanexternaldatasourcethatcanbeaccesseddirectly(byname)fromtheXSLTransformation(XSLT)–basedviewcodeandanyscript-basedbusinesslogiccodeintheform.
![Page 1960: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1960.jpg)
ExampleThefollowingisanexampleofthedataObjectelement:
<xsf:dataObjects><xsf:dataObjectname="EmployeeNames"schema="EmployeeNames.xsd"initOnLoad="yes"><xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter> </xsf:query> </xsf:dataObject> </xsf:dataObjects>
![Page 1961: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1961.jpg)
ShowAll
![Page 1962: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1962.jpg)
dataObjectsElement
DefinesallsecondarydataobjectsusedinaMicrosoftOfficeInfoPath2003form.
![Page 1963: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1963.jpg)
Type
xsd:complexType
![Page 1964: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1964.jpg)
Structure
Name DescriptiondataObject (Optionalelement)Definesasecondarydataobjectthatis
usedinanInfoPathform.
![Page 1965: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1965.jpg)
RemarksThedataObjectselementisanoptionalelementofthexDocumentClasselement.
ThedataObjectselementcontainsacollectionofdataobjectsthatareusedtopopulatevariousXMLDocumentObjectModels(DOMs)fromexternaldatasources.Thesedataobjectscanbeaccesseddirectly(byname)fromtheXSLTransformation(XSLT)–basedviewcodeandanyscript-basedbusinesslogiccodeintheform.
![Page 1966: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1966.jpg)
ExampleThefollowingisanexampleofthedataObjectselement:
<xsf:dataObjects><xsf:dataObjectname="EmployeeNames"schema="EmployeeNames.xsd"initOnLoad="yes"><xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter> </xsf:query> </xsf:dataObject> </xsf:dataObjects>
![Page 1967: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1967.jpg)
ShowAll
![Page 1968: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1968.jpg)
davAdapterElement
ContainsinformationtoenableInfoPathformstobesubmittedtoaserverrunningMicrosoftWindowsSharePointServicesortoaWeb-basedDistributedAuthoringandVersioning(WebDAV)server.
![Page 1969: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1969.jpg)
Typexsd:complexType
![Page 1970: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1970.jpg)
ChildElements
Element DescriptionfolderURL ContainstheUniformResourceLocator(URL)oftheserver
towhichthefileissubmitted.fileName ContainsthenameofthefileasaliteralstringorXPath
expression.
![Page 1971: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1971.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xdTitle Yes Thenameof
theadapter.UsedwheninvokingthedavAdapterfromcode.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
overwriteAllowed xdYesNo No Specifieswhethertheadaptercanoverwriteanexistingfile.
yes
no
queryAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforqueryingthedatasource.OmittedforthedavAdapter,correspondingtoadefaultvalueof"no".
yes
no
submitAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.Alwayssetto
yes
no
![Page 1972: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1972.jpg)
"yes"forthedavAdapter.
![Page 1973: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1973.jpg)
Definition
<xsd:elementname="davAdapter"><xsd:complexType><xsd:all><xsd:elementname="folderURL"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementname="fileName"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element></xsd:all><xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute><xsd:attributename="overwriteAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute><xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute><xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 1974: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1974.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1975: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1975.jpg)
ExampleThefollowingisanexampleofthedavAdapterelement:
<xsf:davAdaptername="SubmitToSharePoint"overwriteAllowed="yes"submitAllowed="yes"><xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/><xsf:folderURLvalue="http://some_server/some_doc_lib"/></xsf:davAdapter>
![Page 1976: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1976.jpg)
ShowAll
![Page 1977: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1977.jpg)
dialogBoxExpressionActionElement
DefinesanXPathexpressiontobedisplayedinadialogbox.
![Page 1978: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1978.jpg)
Typexsd:string
![Page 1979: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1979.jpg)
ChildElementsNone.
![Page 1980: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1980.jpg)
AttributesNone.
![Page 1981: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1981.jpg)
Definition
<xsd:elementname="dialogBoxExpressionAction"type="xsd:string"></xsd:element>
![Page 1982: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1982.jpg)
RemarksThedialogBoxExpressionActionelementisachildelementoftheruleelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1983: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1983.jpg)
ExampleThefollowingisanexampleofthedialogBoxExpressionActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 1984: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1984.jpg)
dialogBoxMessageActionElement
Definesaliteralmessagetobedisplayedinadialogbox.
![Page 1985: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1985.jpg)
Typexsd:simpleType
![Page 1986: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1986.jpg)
ChildElementsNone.
![Page 1987: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1987.jpg)
AttributesNone.
![Page 1988: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1988.jpg)
Definition
<xsd:elementname="dialogBoxMessageAction"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="1024"/></xsd:restriction></xsd:simpleType></xsd:element>
![Page 1989: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1989.jpg)
RemarksThedialogBoxMessageActionelementisachildelementoftheruleelement.
Themaximumlengthofthemessageis1,024characters.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 1990: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1990.jpg)
ExampleThefollowingisanexampleofthedialogBoxMessageActionelement:
<<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 1991: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1991.jpg)
ShowAll
![Page 1992: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1992.jpg)
documentSchemaElement
DefinesanXMLSchemaforaform.
![Page 1993: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1993.jpg)
Type
xsd:complexType
![Page 1994: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1994.jpg)
Structure
Name Descriptionlocation (Requiredattribute)ContainsthenamespaceUniform
ResourceIdentifier(URI)andlocation(aUniformResourceLocator(URL),relativetotheformdefinition(.xsf)file),anddelimitedbyawhitespace,ofthe.xsdfiledefiningtheXMLSchema.
rootSchema (Optionalattribute)IdentifiesanXMLSchemaasthetop-levelschemaoftheformbeingfilledout.
![Page 1995: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1995.jpg)
RemarksThedocumentSchemaelementisarequiredelementofthedocumentSchemaselement.OnedocumentSchemaelementispresentforeachdeclaredXMLSchemaintheform.
MicrosoftOfficeInfoPath2003includesallXMLSchemasintheformtemplateandmodifiestheschemareferencesinthe.xsdfilestoberelativepathnames.Ifaform'sunderlyingXMLdocumentcontainsreferencestomultipleXMLSchemas,theyarelistedwithseparatedocumentSchemaelementsandthetop-levelXMLSchemahasitsrootSchemaattributesetto"yes".
IfanXMLSchemafilecontainsreferencestootherXMLSchemafilesusingtheincludeorimportsettings,thosereferencedfilesdonothavetobelistedinthedocumentSchemaselement.However,theymustbeincludedintheformtemplatewiththeirreferenceschangedtorelativefilenames.
![Page 1996: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1996.jpg)
ExampleThefollowingisanexampleofthedocumentSchemaelement:
<xsf:documentSchemas><xsf:documentSchemalocation="urn:schema:custom:NamespacecustomFilename.xsd"rootSchema="yes"/></xsf:documentSchemas>
![Page 1997: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1997.jpg)
ShowAll
![Page 1998: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1998.jpg)
documentSchemasElement
DefinestheXMLSchemasthattheMicrosoftOfficeInfoPath2003formisdesignedtohandle.
![Page 1999: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/1999.jpg)
Type
xsd:complexType
![Page 2000: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2000.jpg)
Structure
Name DescriptiondocumentSchema (Requiredelement)DefinesanXMLSchemafora
form.OnedocumentSchemaelementispresentforeachdeclaredXMLSchemaintheform.
![Page 2001: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2001.jpg)
RemarksThedocumentSchemaselementisanoptionalelementofthexDocumentClasselement.ItdefinesallofthetargetXMLSchemasthatareusedintheform.
![Page 2002: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2002.jpg)
ExampleThefollowingisanexampleofthedocumentSchemaselement:
<xsf:documentSchemas><xsf:documentSchemalocation="urn:schema:custom:NamespacecustomFilename.xsd"rootSchema="yes"/></xsf:documentSchemas>
![Page 2003: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2003.jpg)
ShowAll
![Page 2004: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2004.jpg)
documentSignaturesElement
ContainsthesignedDataBlockelement,whichdefineshowdigitalsignaturesareappliedtoaformorsectionofaform.
![Page 2005: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2005.jpg)
Type
xsd:complexType
![Page 2006: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2006.jpg)
Structure
Name DescriptionsignatureLocation (Optionalattribute)ContainsanXPathexpression
thatpointstotheXMLDOMnodewithintheform'sunderlyingXMLdocumentthatisusedforstoringthedigitalsignature.
![Page 2007: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2007.jpg)
ChildElements
Element DescriptionsignedDataBlock Definesanodesetintheform'sunderlyingXML
documenttowhichadigitalsignaturecanbeapplied.
![Page 2008: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2008.jpg)
Definition
<xsd:elementname="documentSignatures"> <xsd:complexType> <xsd:sequence> <xsd:elementref="xsf:signedDataBlock"minOccurs="0"maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributename="signatureLocation"type="xsd:string"use="optional"/> </xsd:complexType> </xsd:element> <xsd:elementname="signedDataBlock"> <xsd:complexType> <xsd:sequence> <xsd:elementname="message"type="xsf:xdSignedDataBlockMessage"minOccurs="0"/> </xsd:sequence> <xsd:attributename="name"type="xsf:xdSignedDataBlockName"use="required"/> <xsd:attributename="data"type="xsd:string"use="required"/> <xsd:attributename="signatureLocation"type="xsd:string"use="required"/> <xsd:attributename="mode"type="xsf:xdSignatureRelationEnum"use="required"/> </xsd:complexType> <xsd:uniquename="signedDataBlock_name_unique"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@name"/> </xsd:unique> </xsd:element>
![Page 2009: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2009.jpg)
RemarksThesignedDataBlockelementisanewXSFelementadditioninMicrosoftOfficeInfoPath2003ServicePack1.Seebelowforbackwardcompatibilityinformationwith1.0formsolutions.
Forbackwardcompatibility,thedocumentsignatureselementdefinesthelocationofthedigitalsignatureXMLDocumentObjectModel(DOM)nodewithintheform'sunderlyingXMLdocument.
ThedocumentSignatureselementisanoptionalelementofthexDocumentClasselement.
![Page 2010: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2010.jpg)
ExampleThefollowingisanexampleofthedocumentSignatureselement:
<xsf:documentSignaturessignatureLocation=”my:myfields/my:subtree1|my:myfields/my:subtree2”/>
ThefollowingisanexampleofthedocumentSignatureselementusedinMicrosoftOfficeInfoPath2003ServicePack1:
<xsf:documentSignatures><xsf:signedDataBlockname="main"data="my:myfields/my:subtree1|my:myfields/my:subtree2"signatureLocation="my:mifields/sig:signatures/main"mode="countersign"><xsf:message>Bypressingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 2011: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2011.jpg)
ShowAll
![Page 2012: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2012.jpg)
documentVersionUpgradeElement
Defineshowformscreatedwithanolderversionoftheformtemplatecanbeupgradedtothelatestversionoftheformtemplate.
![Page 2013: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2013.jpg)
Type
xsd:complexType
![Page 2014: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2014.jpg)
Structure
Name DescriptionuseScriptHandler (Optionalelement)Specifiesthattheupgradewillbe
handledusingscriptingcode.useTransform (Optionalelement)Specifiesthattheupgradewillbe
handledbyanXSLTransformation(XSLT)suppliedbythenewerversionoftheformtemplate.
![Page 2015: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2015.jpg)
RemarksThedocumentVersionUpgradeelementisanoptionalelementofthexDocumentClasselement.
![Page 2016: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2016.jpg)
ExampleThefollowingisanexampleofthedocumentVersionUpgradeelement:
<xsf:documentVersionUpgrade><xsf:useTransformtransform="upgrade.xsl"minVersionToUpgrade="0.0.0.0"maxVersionToUpgrade="1.0.0.5"/></xsf:documentVersionUpgrade>
![Page 2017: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2017.jpg)
ShowAll
![Page 2018: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2018.jpg)
domEventHandlerElement
DefinesaneventhandlerforoneormorespecificXMLDocumentObjectModel(DOM)nodes.
![Page 2019: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2019.jpg)
Type
xsd:complexType
![Page 2020: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2020.jpg)
Structure
Name DescriptionhandlerObject (Requiredattribute)Identifiestheuniquenameofthe
eventhandlerinthescriptingcode.match (Requiredattribute)IdentifiestheXMLDOMnodefor
whichtheeventhandlerisdeclared.ValuemustbeavalidXPathexpressionthatidentifiestheXMLnode.
dataObject (Optionalattribute)ContainsthenameofthedataObjecttobeusedintheeventhandler.
NoteUseofthisattributerequiresMicrosoftOfficeInfoPath2003ServicePack1.
![Page 2021: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2021.jpg)
RemarksThedomEventHandlerelementisanoptionalelementofthedomEventHandlerselement.
![Page 2022: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2022.jpg)
ExampleThefollowingisanexampleofthedomEventHandlerelement:
<xsf:domEventHandlers><xsf:domEventHandlermatch="TravelReport/Expenses"handlerObject="TravelExpenses"/></xsf:domEventHandlers>
![Page 2023: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2023.jpg)
ShowAll
![Page 2024: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2024.jpg)
domEventHandlersElement
Containspointerstovariousscript-basedeventhandlersthatreacttochangesinXMLDocumentObjectModel(DOM)nodesofaform'sunderlyingXMLdocumentwhentheformisbeingfilledout.
![Page 2025: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2025.jpg)
Type
xsd:complexType
![Page 2026: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2026.jpg)
Structure
Name DescriptiondomEventHandler (Optionalelement)Definesaneventhandlerobject
foroneormorespecificXMLDOMnodes.
![Page 2027: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2027.jpg)
RemarksThedomEventHandlerselementisanoptionalelementofthexDocumentClasselement.
![Page 2028: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2028.jpg)
ExampleThefollowingisanexampleofthedomEventHandlerselement:
<xsf:domEventHandlers><xsf:domEventHandlermatch="TravelReport/Expenses"handlerObject="TravelExpenses"/></xsf:domEventHandlers>
![Page 2029: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2029.jpg)
ShowAll
![Page 2030: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2030.jpg)
editingElement
Containsinformationabouttheeditingcomponentsusedintheview.
![Page 2031: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2031.jpg)
Type
xsd:complexType
![Page 2032: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2032.jpg)
Structure
Name DescriptionxmlToEdit (Optionalelement)Specifiesaninstanceofanediting
component.
![Page 2033: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2033.jpg)
RemarksTheeditingelementisanoptionalelementoftheviewelement.
TheeditingcomponentssectionoftheMicrosoftOfficeInfoPath2003formdefinition(.xsf)filedefineshowandwhenusersareabletoeditspecifiedXMLDocumentObjectModel(DOM)nodesofaform'sunderlyingXMLdocument.Onlyoneeditingelementisallowedperview.EacheditingelementcancontainzeroormorexmlToEditelements.
![Page 2034: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2034.jpg)
ExampleThefollowingisanexampleoftheeditingelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2035: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2035.jpg)
ShowAll
![Page 2036: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2036.jpg)
editWithElement
Specifiesaninstanceofaneditingcomponent,andprovidesthecorrespondingparameterstodetermineitsexactbehavior.
![Page 2037: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2037.jpg)
Type
xsd:complexType
![Page 2038: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2038.jpg)
Structure
Name DescriptionallowedFileTypes (Optionalattribute)Specifiesthefileextensionsof
filesthatcanbeattachedtotheform.autoComplete (Optionalattribute)Switchestheauto-completionof
fieldsonoroff.caption (Optionalattribute)Specifiesanidentifierfor
alternateformsofXMLdatatobeusedintheeditingcomponent.
component (Requiredattribute)Specifiesthenameoftheeditingcomponentthatwillbereferencedwithintheactionattributeofabuttonelement.
field (Optionalattribute)SpecifiesarelativeXPathexpressionfromtheXMLDocumentObjectModel(DOM)nodespecifiedbytheitemattributeofthexmlToEditelement.
fragmentToInsert (Optionalelement)ContainsalternateversionsofXMLdata(fragments).
proofing (Optionalattribute)Switchestheproofingfeatures,suchasthespellingchecker,onoroff.
removeAncestors (Optionalattribute)Specifiesthenumberofancestor(parent)elementstoberemovedwhenthelastitemisremoved.
type (Optionalattribute)SpecifiesthetypeofeditingforthefieldsthatmatchtheXPathexpressionspecifiedbytheitemattributeofthexmlToEditelement.
widgetIcon (Optionalattribute)Specifieswhetherornotamodifiedwidgeticonwillbeshownforfiltereditems.
useFilter (Optionalattribute)Indicatestheuserwantsafilterwidget.
filterDependency (Optionalattribute)Specifiesautomaticreapplicationofthefilterwhenfilterfieldschange.
![Page 2039: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2039.jpg)
maxLength (Optionalattribute)Specifiesthemaximumnumberofcharactersallowedfortextboxes.
![Page 2040: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2040.jpg)
RemarksTheeditWithelementisanoptionalelementofthexmlToEditelement.
IftheviewContextattributeofthexmlToEditelementisdefined,theparametersoftheeditWithelementareassociatedwiththespecifiedviewcontext.
![Page 2041: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2041.jpg)
ExampleThefollowingisanexampleoftheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2042: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2042.jpg)
emailAdapterElement
ContainstheinformationneededtosubmitanInfoPathformasanattachmenttoane-mail,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 2043: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2043.jpg)
Typexsd:complexType
![Page 2044: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2044.jpg)
ChildElements
Element Descriptionto Containsalistofaddresses,separatedby
semicolons,tobeaddedtothetolineofthesubmittede-mail.
cc Containsalistofaddresses,separatedbysemicolons,tobeaddedtothecclineofthesubmittede-mail.
bcc Containsalistofaddresses,separatedbysemicolons,tobeaddedtothebcclineofthesubmittede-mail.
subject Containsthesubjectofthesubmittede-mail.intro Containstheintroductionofthesubmittede-mail.attachmentFileName Containsthefilenameoftheattachmenttobe
submittedwiththee-mail.
![Page 2045: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2045.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xdTitle Yes Containsthe
nameoftheemailAdapter.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
queryAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforqueryingthedatasource.OmittedfortheemailAdapter,correspondingtoadefaultvalueof"no".
yes
no
submitAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.Alwayssetto"yes"fortheemailAdapter.
yes
no
![Page 2046: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2046.jpg)
Definition
<xsd:elementname="emailAdapter"><xsd:complexType><xsd:all><xsd:elementname="to"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementname="cc"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementname="bcc"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementname="subject"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementname="intro"minOccurs="0"><xsd:complexType>
![Page 2047: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2047.jpg)
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementname="attachmentFileName"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element></xsd:all><xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute><xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute><xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2048: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2048.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2049: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2049.jpg)
ExampleThefollowingisanexampleoftheemailAdapterelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 2050: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2050.jpg)
ShowAll
![Page 2051: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2051.jpg)
errorConditionElement
Definesacustomvalidation(orerrorcondition)foraspecificXMLDocumentObjectModel(DOM)nodeinaform'sunderlyingXMLdocument.
![Page 2052: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2052.jpg)
Type
xsd:complexType
![Page 2053: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2053.jpg)
Structure
Name Descriptionexpression (Requiredattribute)AnXPathexpression(relative
totheexpressionContextattribute,ifspecified)thatmustbeevaluatedtovalidatetheXMLDOMnodespecifiedinthematchattribute.
expressionContext (Optionalattribute)SpecifiestheXMLDOMnodeonwhichtheexpressionspecifiedintheexpressionattributeisrooted.
match (Requiredattribute)IdentifiestheXMLDOMnodesonwhichthecustomvalidationisdeclared.
showErrorOn (Optionalattribute)IdentifiesXMLDOMnodes(withinthecontextoftheexpressioncontextXMLDOMnode)onwhichtheerrorshouldbedisplayedwhentheformisfilledout.
errorMessage (Requiredelement)SpecifiestheerrormessagetobereturnedifthevalueofthespecifiedXMLDOMnodeisconsideredtobeinvalid.
![Page 2054: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2054.jpg)
RemarksTheerrorConditionelementisanoptionalelementofthecustomValidationelement.
![Page 2055: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2055.jpg)
ExampleThefollowingisanexampleoftheerrorConditionelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 2056: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2056.jpg)
ShowAll
![Page 2057: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2057.jpg)
errorMessageElement
SpecifiestheerrormessagethatshouldbereturnedifthevalueofthespecifiedXMLDocumentObjectModel(DOM)nodeisconsideredtobeinvalid.
![Page 2058: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2058.jpg)
Type
xsf:xdErrorMessage
![Page 2059: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2059.jpg)
Structure
Name DescriptionshortMessage (Requiredattribute)Identifiestheshorterrormessageto
returnincaseofinvaliddata.type (Optionalattribute)Identifiesthetypeoferrormessage
toreturn.
![Page 2060: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2060.jpg)
RemarksTheerrorMessageelementisarequiredelementoftheerrorCondition,override,andsubmitelements.
YoucansupplyadetailederrormessageasthevalueoftheerrorMessageelement.Thedetailederrormessageisdisplayedbyclickingtheshortcutmenu'sFullerrordescriptionbuttonwhenerrorinformationisdisplayedandwhentheerrormessagetypeattributeissetto"modal".
![Page 2061: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2061.jpg)
ExampleThefollowingisanexampleoftheerrorMessageelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 2062: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2062.jpg)
ShowAll
![Page 2063: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2063.jpg)
exitRuleSetElement
AnelementthatstopsfurtherruleprocessingoftheentireruleSet.
![Page 2064: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2064.jpg)
Typexsd:complexType
![Page 2065: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2065.jpg)
ParentElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccurredinthe
form.
![Page 2066: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2066.jpg)
ChildElementsNone.
![Page 2067: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2067.jpg)
AttributesNone.
![Page 2068: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2068.jpg)
Definition
<xsd:elementname="exitRuleSet"minOccurs="0"><xsd:complexType/></xsd:element>
![Page 2069: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2069.jpg)
RemarksTheexitRuleSetelementmustbethelastchildelementoftheruleelement.TheruleSetelementprocessingwillbehaltedonlyiftheruleelementisexecuted.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2070: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2070.jpg)
ExampleThefollowingisanexampleoftheexitRuleSetelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2071: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2071.jpg)
ShowAll
![Page 2072: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2072.jpg)
exportToExcelElement
Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstoexporttheformtoaMicrosoftOfficeExcel2003workbook.
![Page 2073: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2073.jpg)
Typexsd:complexType
![Page 2074: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2074.jpg)
ChildElementsNone.
![Page 2075: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2075.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
ui xsf:xdEnabledDisabled required SetswhethertheusercanexportthecontentsoftheformtoanExcelworkbook.
enabled
disabled
![Page 2076: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2076.jpg)
Definition
<xsd:elementname="exportToExcel"><xsd:complexType><xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2077: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2077.jpg)
RemarksTheexportToExcelelementisanoptionalelementofthefeatureRestrictionselement.Ifthiselementisnotincludedintheformdefinitionfile(.xsf),theusercanusetheform'smenus,toolbars,orkeyboardshortcutstoexporttheformtoanExcelworkbook.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2078: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2078.jpg)
ExampleThefollowingisanexampleoftheexportToExcelelement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 2079: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2079.jpg)
ShowAll
![Page 2080: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2080.jpg)
exportToWebElement
Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstoexporttheformtoaWebpage.
![Page 2081: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2081.jpg)
Typexsd:complexType
![Page 2082: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2082.jpg)
ChildElementsNone.
![Page 2083: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2083.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
ui xsf:xdEnabledDisabled required SetswhethertheusercanexportthecontentsoftheformtoaWebpage.
enabled
disabled
![Page 2084: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2084.jpg)
Definition
<xsd:elementname="exportToWeb"><xsd:complexType><xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2085: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2085.jpg)
RemarksTheexportToWebelementisanoptionalelementofthefeatureRestrictionselement.Ifthiselementisnotincludedintheformdefinitionfile(.xsf),theusercanusetheform'smenus,toolbars,orkeyboardshortcutstoexporttheformtoaWebpage.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2086: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2086.jpg)
ExampleThefollowingisanexampleoftheexportToWebelement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 2087: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2087.jpg)
ShowAll
![Page 2088: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2088.jpg)
extensionElement
Containsopencontentmodelinformation.
![Page 2089: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2089.jpg)
Type
xsd:complexType
![Page 2090: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2090.jpg)
Structure
Name Descriptionname (Requiredattribute)Auniquenameidentifyingtheextension
beingspecified.
![Page 2091: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2091.jpg)
RemarksTheextensionelementisanoptionalelementoftheextensionselement.
NoteUseoftheextensionelementisreserved.MicrosoftOfficeInfoPath2003ignoresanycontentwithintheextensionelement.
![Page 2092: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2092.jpg)
ExampleThefollowingisanexampleoftheextensionelement:
<xsf:extensions><xsf:extensionname="someValue"anyAttributesHere="someValue">...opencontentmodelhere...</xsf:extension><xsf:extensions>
![Page 2093: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2093.jpg)
ShowAll
![Page 2094: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2094.jpg)
extensionsElement
IncludesminorupgradestotheMicrosoftOfficeInfoPath2003formdefinition(.xsf)filethatcanbeusedbyspecificfutureversionsofInfoPathorbyspecificforms.
![Page 2095: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2095.jpg)
Type
xsd:complexType
![Page 2096: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2096.jpg)
Structure
Name Descriptionextension (Optionalelement)Containsopencontentmodelinformation.
![Page 2097: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2097.jpg)
RemarksTheextensionselementisanoptionalelementofthexDocumentClasselement.
Theextensionselementcontainszeroormoreextensionelements,eachofwhichhasanopencontentmodel.
NoteUseoftheextensionelementisreserved.MicrosoftOfficeInfoPath2003ignoresanycontentwithintheextensionelement.
![Page 2098: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2098.jpg)
ExampleThefollowingisanexampleoftheextensionselement:
<xsf:extensions><xsf:extensionname="someValue"anyAttributesHere="someValue">...opencontentmodelhere...</xsf:extension><xsf:extensions>
![Page 2099: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2099.jpg)
ShowAll
![Page 2100: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2100.jpg)
externalViewElement
DefinesaviewthatcannotbeeditedinMicrosoftOfficeInfoPath.
![Page 2101: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2101.jpg)
Typexsd:complexType
![Page 2102: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2102.jpg)
ChildElements
Element Descriptionmainpane SpecifiestheXSLTransformation(XSLT)tobeappliedtothe
view.
![Page 2103: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2103.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xsf:xdViewName Yes Containsthe
nameoftheexternalViewelement.
minlength=1
maxlength=255
pattern=([^\p{Z}\p{C}/\\#&"><])(([^\p{Zl}\p{Zp}\p{C}/\\#&"><])*([^\p{Z}\p{C}/\\#&"><]))?
![Page 2104: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2104.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2105: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2105.jpg)
Definition
<xsd:elementname="externalView"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:mainpane"/></xsd:sequence><xsd:attributename="name"type="xsf:xdViewName"use="required"/></xsd:complexType></xsd:element>
![Page 2106: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2106.jpg)
ExampleThefollowingisanexampleoftheexternalViewelement:
<xsf:externalViews><xsf:externalViewname="SalesDoc"><xsf:mainpanetransform="myWordView.xsl"/></xsf:externalView><xsf:externalViews>
![Page 2107: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2107.jpg)
ShowAll
![Page 2108: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2108.jpg)
externalViewsElement
ContainsoneormoreexternalViewelements.
![Page 2109: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2109.jpg)
Typexsd:complexType
![Page 2110: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2110.jpg)
ChildElements
Element DescriptionexternalViewDefinesaviewthatcannotbeeditedinMicrosoftOffice
InfoPath.
![Page 2111: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2111.jpg)
AttributesNone.
![Page 2112: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2112.jpg)
Definition
<xsd:elementname="externalViews"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:externalView"minOccurs="1"maxOccurs="unbounded"/></xsd:sequence></xsd:complexType><xsd:uniquename="externalViews_name_unique"><xsd:selectorxpath="./xsf:externalView"/><xsd:fieldxpath="@default"/></xsd:unique><xsd:keyrefname="external_views_printView"refer="xsf:externalView_name_key"><xsd:selectorxpath="."/><xsd:fieldxpath="@default"/></xsd:keyref></xsd:element>
![Page 2113: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2113.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2114: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2114.jpg)
ExampleThefollowingisanexampleoftheexternalViewselement:
<xsf:externalViews><xsf:externalViewname="SalesDoc"><xsf:mainpanetransform="myWordView.xsl"/></xsf:externalView><xsf:externalViews>
![Page 2115: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2115.jpg)
ShowAll
![Page 2116: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2116.jpg)
featureRestrictionsElement
Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstosavetheform,exporttheform,printtheform,orsendtheformasane-mailattachment.
![Page 2117: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2117.jpg)
Typexsd:complexType
ChildElements
Element Descriptionsave (Optionalelement)Specifieswhethertheusercanuse
theform'smenus,toolbars,orkeyboardshortcutstosavetheform.
exportToWeb (Optionalelement)Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstoexporttheformtoaWebpage.
exportToExcel (Optionalelement)Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstoexporttheformtoanMicrosoftOfficeExcel2003workbook.
print (Optionalelement)Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstoprinttheform.
sendMail (Optionalelement)Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstosendtheformasane-mailattachment.
autoRecovery (Optionalelement)SpecifieswhethertheformwillsaveAutoRecoverinformationandwhethertheAutoRecoversettingcanbechangedbytheuser.
![Page 2118: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2118.jpg)
AttributesNone.
![Page 2119: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2119.jpg)
Definition
<xsd:elementname="featureRestrictions"><xsd:complexType><xsd:all><xsd:elementname="save"minOccurs="0"><xsd:complexType><xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementref="xsf:exportToWeb"minOccurs="0"/><xsd:elementref="xsf:exportToExcel"minOccurs="0"/><xsd:elementref="xsf:print"minOccurs="0"/><xsd:elementref="xsf:sendMail"minOccurs="0"/><xsd:elementref="xsf:autoRecovery"minOccurs="0"/></xsd:all></xsd:complexType></xsd:element>
![Page 2120: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2120.jpg)
RemarksDisablinganyofthefeatureRestrictionselement'schildelementsdoesnotdisabletheuseofformcodetosavetheform,exporttheform,printtheform,orsendtheformasanemailattachment.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2121: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2121.jpg)
ExampleThefollowingisanexampleofthefeatureRestrictionselement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 2122: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2122.jpg)
ShowAll
![Page 2123: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2123.jpg)
fieldElement
Definesonefieldforformlibrarycolumns.
![Page 2124: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2124.jpg)
Type
xsd:complexType
![Page 2125: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2125.jpg)
Structure
Name Descriptionaggregation (Optionalattribute)SpecifieshowtheXMLDocument
ObjectModel(DOM)nodesreturnedfromanXPathexpressioninthenodeattributeshouldbeaggregatedtoobtainasinglevalueforthedocument.Caneitherbeanaggregationactionoranindicationoftheparticularelementinthecollection.
columnName (Requiredattribute)IdentifiesthecolumnnameintheSQLtable(underlyingtheformlistview).
maxLength (Optionalattribute)Definesthelengthofthefieldinnumberofbytes.
name (Requiredattribute)Identifiesthefriendlynameofthefieldtobeusedontheformlistview.
node (Requiredattribute)DefinestheXPathexpressionneededtoextractthevalueofthespecifiedpropertyfromtheform'sunderlyingXMLdocument.
required (Optionalattribute)Specifieswhetherthisfieldacceptsnullvalues.
type (Requiredattribute)IdentifiesthestandardXMLSchemadatatype.
viewable (Optionalattribute)Specifieswhetherthisfieldshouldbeaddedtothedefaultview.Possiblevalues"yes"and"no".Thedefaultvalueis"no".
![Page 2126: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2126.jpg)
RemarksThefieldelementisanoptionalelementofthefieldselement.
![Page 2127: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2127.jpg)
ExampleThefollowingisanexampleofthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 2128: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2128.jpg)
fieldElement(sharepointListAdapterElement)
ContainsfieldmappinginformationforeachfieldinaSharePointlistandthecorrespondingnameusedinInfoPath.
![Page 2129: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2129.jpg)
Typexsd:ComplexType
![Page 2130: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2130.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationtoquery
aSharePointlistorlibrary.
![Page 2131: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2131.jpg)
ChildElementsNone.
![Page 2132: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2132.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
sharepointName xsd:string Yes ContainsthenameofafieldinaSharePointlist.
string
infopathName xsd:string Yes ContainsthecorrespondingInfoPathfieldnameforthesharepointName.
string
isLookup xdYesNo No SpecifieswhetherafieldinaSharePointlistisalookupfield.Thedefaultis"no".
yes
no
![Page 2133: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2133.jpg)
Definition
<xsd:elementname="field"minOccurs="0"maxOccurs="unbounded"><xsd:complexType><xsd:attributename="sharepointName"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="infopathName"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="isLookup"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2134: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2134.jpg)
RemarksEachfieldreturnedfromaSharePointlistorlibrarybythesharepointListAdapterdataadapterwillhaveafieldelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2135: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2135.jpg)
ExampleThefollowingisanexampleofthefieldelement:
<xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"isLookup="no"></xsf:field>
![Page 2136: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2136.jpg)
fieldsElement
Definesasetofoneormorefieldelements.
![Page 2137: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2137.jpg)
Type
xsd:complexType
![Page 2138: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2138.jpg)
Structure
Name Descriptionfield (Optionalelement)Definesonefieldforformlibrarycolumns.
![Page 2139: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2139.jpg)
RemarksThefieldselementisanoptionalelementofthelistPropertieselement.
![Page 2140: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2140.jpg)
ExampleThefollowingisanexampleofthefieldselement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 2141: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2141.jpg)
fileElement
IdentifiesafileaspartofaMicrosoftOfficeInfoPath2003form.
![Page 2142: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2142.jpg)
Type
xsd:complexType
![Page 2143: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2143.jpg)
Structure
Name Descriptionname (Requiredattribute)Specifiesthenameofthefile.fileProperties (Optionalelement)Definesthepropertiesofafile.
![Page 2144: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2144.jpg)
RemarksThefileelementisanoptionalelementofthefileselement.
![Page 2145: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2145.jpg)
ExampleThefollowingisanexampleofthefileelement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 2146: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2146.jpg)
ShowAll
![Page 2147: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2147.jpg)
fileNameElement
SpecifiesthefilenameoranexpressionthatreturnsafilenamewhentheformissubmittedusingthedavAdapter.
![Page 2148: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2148.jpg)
Typexsd:complexType
![Page 2149: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2149.jpg)
ParentElements
Element DescriptiondavAdapter Theparentelementthatcontainsalltheinformation
necessarytosubmitfilestoaserverthatisrunningMicrosoftWindowsSharePointServicesoraWebbasedDistributedAuthoringandVersioning(WebDAV)server.
![Page 2150: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2150.jpg)
ChildElementsNone.
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes Containsthenameofthefile,oncesubmittedtotheserver.
string
valueType xsf:xdExpressionLiteralNo SpecifieswhetherthenameofthefileshouldbeinterpretedasanXPathexpressionorasaliteralstring.
expression
literal
![Page 2151: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2151.jpg)
Definition
<xsd:elementname="fileName"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2152: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2152.jpg)
RemarksTheextension".xml"isappendedtothefilenameifafilenameextensionisnotspecified.
Thefollowingsystemreservedcharacterswillbereplacedbyanunderscore("_")characterwhenaformissubmitted:
\/:*?"<>|
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2153: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2153.jpg)
ExampleThefollowingisanexampleofthefileNameelement:
<xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/>
![Page 2154: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2154.jpg)
ShowAll
![Page 2155: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2155.jpg)
fileNewElement
Providesareferencetoan.xmlfilecontainingsampledatatobeloadedwhenauserchoosestocreateanewformbasedontheformtemplate.
![Page 2156: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2156.jpg)
Type
xsd:complexType
![Page 2157: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2157.jpg)
Structure
Name DescriptioninitialXmlDocument (Requiredelement)Containsareferencetothe
XMLtemplatefilethatisusedforthecreationofanewformbasedontheformtemplate.
![Page 2158: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2158.jpg)
RemarksThefileNewelementisanoptionalelementofthexDocumentClasselement.
ThefileNewelementoftheMicrosoftOfficeInfoPath2003formdefinition(.xsf)filedefinesthenameandlocationofanXMLtemplatefilethatisusedwhenauserclicksFillOutaFormontheFilemenu.TheXMLtemplatefilecontainsthesampledatathatisloadedwhentheuserchoosestocreateanewformbasedontheformtemplate.
![Page 2159: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2159.jpg)
ExampleThefollowingisanexampleofthefileNewelement:
<xsf:fileNew><xsf:initialXmlDocumentcaption="TravelReport"href="TravelReportTemplate.xml"/></xsf:fileNew>
![Page 2160: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2160.jpg)
filePropertiesElement
Definesthepropertiesofafile.
![Page 2161: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2161.jpg)
Type
xsd:complexType
![Page 2162: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2162.jpg)
Structure
Name Descriptionproperty (Optionalelement)Definesonespecificpropertyforthe
specifiedfile.
![Page 2163: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2163.jpg)
RemarksThefilePropertieselementisanoptionalelementofthefileelement.
![Page 2164: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2164.jpg)
ExampleThefollowingisanexampleofthefilePropertieselement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 2165: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2165.jpg)
filesElement
IdentifiesalistoffilesthatareusedbyaMicrosoftOfficeInfoPath2003form.
![Page 2166: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2166.jpg)
Type
xsd:complexType
![Page 2167: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2167.jpg)
Structure
Name Descriptionfile (Optionalelement)IdentifiesafileaspartofanInfoPathform.
![Page 2168: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2168.jpg)
RemarksThefileselementisarequiredelementofthepackageelement.
Thefileselementmayincludespecificpropertynamesandvaluesforeachfile.
![Page 2169: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2169.jpg)
ExampleThefollowingisanexampleofthefileselement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 2170: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2170.jpg)
ShowAll
![Page 2171: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2171.jpg)
folderURLElement
SpecifiestheUniformResourceLocator(URL)ofaWeb-basedDistributedAuthoringandVersioning(WebDAV)serveroraserverthatisrunningMicrosoftWindowsSharePointServices.
![Page 2172: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2172.jpg)
Typexsd:complexType
![Page 2173: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2173.jpg)
ParentElements
Element DescriptiondavAdapter Theparentelement,whichcontainsallinformation
necessarytosubmitInfopathformstoaWeb-basedDistributedAuthoringandVersioning(WebDAV)serveroraserverthatisrunningSharePointServices.
![Page 2174: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2174.jpg)
ChildElementsNone.
![Page 2175: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2175.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes TheURLoftheWeb-basedDistributedAuthoringandVersioning(WebDAV)serverortheserverthatisrunningSharePointServices.
string
![Page 2176: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2176.jpg)
Definition
<xsd:elementname="folderURL"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2177: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2177.jpg)
RemarksTheURLmustbeginwith"http://"or"https://".Othercommonprotocolswillcauseanerror.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2178: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2178.jpg)
ExampleThefollowingisanexampleofthefolderURLelement:
<folderURLvalue="http://some_server/some_doc_lib"/>
![Page 2179: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2179.jpg)
footerElement
Specifiesthefootertext.
![Page 2180: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2180.jpg)
Typexsd:simpleType
![Page 2181: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2181.jpg)
ChildElementsNone.
![Page 2182: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2182.jpg)
AttributesNone.
![Page 2183: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2183.jpg)
Definition
<xsd:elementname="footer"><xsd:complexTypemixed="true"><xsd:sequence><xsd:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/></xsd:sequence></xsd:complexType></xsd:element>
![Page 2184: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2184.jpg)
RemarksThefooterelementisachildelementoftheprintSettingselement.Thefootertextshouldnotexceed255characters.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2185: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2185.jpg)
ExampleThefollowingisanexampleofthefooterelement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 2186: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2186.jpg)
fragmentToInsertElement
ContainsalternateversionsofXMLdata(fragments).
![Page 2187: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2187.jpg)
Type
xsd:complexType
![Page 2188: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2188.jpg)
Structure
Name DescriptionchooseFragment (Requiredelement)SpecifiesanXMLfragment.
![Page 2189: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2189.jpg)
RemarksThefragmentToInsertelementisanoptionalelementoftheeditWithelement.
XMLfragmentsaresourcesofXMLdatathatcanbeusedwithinanassociatededitingcomponent.MorethanonechooseFragmentelementcanbedefinedwithinafragmentToInsertelement.
ThefragmentToInsertelementisusedbythexCollection,xOptional,andxReplaceeditingcomponents.
![Page 2190: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2190.jpg)
ExampleThefollowingisanexampleofthefragmentToInsertelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2191: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2191.jpg)
ShowAll
![Page 2192: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2192.jpg)
getUserNameFromDataElement
AllowsusernamestobedeterminedbyanXPathqueryintothedatainthemaindatasourceorasecondarydatasourceandtobeassociatedwitharole.
![Page 2193: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2193.jpg)
Typexsd:complexType
![Page 2194: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2194.jpg)
ChildElementsNone.
![Page 2195: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2195.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
dataObject xsd:string No Thenameofthesecondarydatasourcewheretheusernamecanbefound.
string
select xsd:string Yes AnXPathqueryexpressionreturningoneormoredatanodescontainingtheusernames.
string
memberOf xsd:string Yes SpecifiestheroletobeassociatedwithauserwhoseusernameisreturnedbytheXPathquery.
string
![Page 2196: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2196.jpg)
Definition
<xsd:elementname="getUserNameFromData"><xsd:complexType><xsd:attributename="dataObject"type="xsd:string"use="optional"></xsd:attribute><xsd:attributename="select"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="memberOf"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2197: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2197.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2198: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2198.jpg)
ExampleThefollowingisanexampleofthegetUserNameFromDataelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="Domain\username1"memberOf="A"/><xsf:userNamename="Domain\username2"memberOf="B"/><xsf:groupname="Domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2199: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2199.jpg)
groupElement
Associatesagroupwithaparticularrole.
![Page 2200: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2200.jpg)
Typexsd:complexType
![Page 2201: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2201.jpg)
ChildElementsNone.
![Page 2202: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2202.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
name xsd:string Yes Specifiesusersintheformof"domain\groupname"or"groupname".
string
memberOf xsd:string Yes Specifiestheroletobeassociatedwiththegroup.
string
![Page 2203: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2203.jpg)
Definition
<xsd:elementname="group"><xsd:complexType><xsd:attributename="name"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="memberOf"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2204: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2204.jpg)
RemarksUserscanbeassignedrolesthroughgroupingthatcanbemanagedexternally,withoutrequiringaformupdate.GroupscanbesetupthroughtheActiveDirectorydirectoryservice.Permissionsspecifyingwhocanaccessthemembershipinformationcanbesetforgroups.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2205: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2205.jpg)
ExampleThefollowingisanexampleofthegroupelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="Domain\username1"memberOf="A"/><xsf:userNamename="Domain\username2"memberOf="B"/><xsf:groupname="Domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2206: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2206.jpg)
headerElement
Specifiestheheadertext.
![Page 2207: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2207.jpg)
Typexsd:simpleType
![Page 2208: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2208.jpg)
ChildElementsNone.
![Page 2209: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2209.jpg)
AttributesNone.
![Page 2210: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2210.jpg)
Definition
<xsd:elementname="header"><xsd:complexTypemixed="true"><xsd:sequence><xsd:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/></xsd:sequence></xsd:complexType></xsd:element>
![Page 2211: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2211.jpg)
RemarksTheheaderelementisachildelementoftheprintSettingselement.Theheadertextshouldnotexceed255characters.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2212: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2212.jpg)
ExampleThefollowingisanexampleoftheheaderelement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 2213: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2213.jpg)
ShowAll
![Page 2214: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2214.jpg)
hwsAdapterElement
DefinestheMicrosoftBizTalk2004HumanWorkflowServices(HWS)dataadapter,whichcanbeusedtostartorextendanactivityflowandrespondtoatask.
![Page 2215: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2215.jpg)
Typexsd:complexType
![Page 2216: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2216.jpg)
ChildElements
Element DescriptionhwsOperation DefinestheHWSoperationtype,suchasaddingan
actiontoanewactivityflow,addinganactiontoanexistingactivityflow,andrespondingtoatask.
![Page 2217: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2217.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xdTitle Yes Containsthe
nameofthedataadapter.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
wsdlUrl xsd:string Yes ContainstheUniformResourceLocator(URL)oftheHWSWebservice.
string
queryAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforqueryingthedatasource.CanbeomittedforthehwsAdapter,correspondingtoadefaultvalueof"no".
yes
no
submitAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforsubmittingtothedata
yes
no
![Page 2218: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2218.jpg)
source.Alwayssetto"yes"forthehwsAdapter.
![Page 2219: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2219.jpg)
Definition
<xsd:elementname="hwsAdapter"><xsd:complexType><xsd:choice><xsd:elementref="xsf:hwsOperation"/></xsd:choice><xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute><xsd:attributename="wsdlUrl"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute><xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2220: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2220.jpg)
RemarksUponsubmit,thehwsAdapterautomaticallycreatesagloballyuniqueidentifier(GUID),asrequiredbytheHWSWebservice;encodestheXMLfile;andupdatestheprocessinginstructionsoftheXMLinstancefile.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2221: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2221.jpg)
ExampleThefollowingisanexampleofthehwsAdapterelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 2222: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2222.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2223: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2223.jpg)
ShowAll
![Page 2224: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2224.jpg)
hwsOperationElement
DefinestheMicrosoftBizTalk2004HumanWorkflowServices(HWS)operationtype,suchasaddinganactiontoanewactivityflow,addinganactiontoanexistingactivityflow,andrespondingtoatask.
![Page 2225: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2225.jpg)
Typexsd:complexType
![Page 2226: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2226.jpg)
ChildElements
Element Descriptioninput SpecifiestheXMLformfile,whichisencodedandsubmitted
withtheHWSoperation.
![Page 2227: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2227.jpg)
Attributes
Attribute Type Required Description PossibleValuestype xsd:string Yes Specifies
theHWSoperationtype.
addActionToNewActivityFlow
addActionToActivityFlow
sendTaskResponse
typeID xsd:string Yes Containsthegloballyuniqueidentifier(GUID)fortheoperation.
string
serviceUrl xsd:string Yes SpecifiestheUniformResourceLocator(URL)locationoftheHWSWebservice.
string
![Page 2228: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2228.jpg)
Definition
<xsd:elementname="hwsOperation"><xsd:complexType><xsd:choice><xsd:elementref="xsf:input"/></xsd:choice><xsd:attributename="type"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="typeID"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="serviceUrl"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2229: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2229.jpg)
RemarksUponsubmit,thehwsAdapterelementautomaticallycreatesagloballyuniqueidentifier(GUID),asrequiredbytheHWSWebservice;encodestheXMLfile;andupdatestheprocessinginstructionsoftheXMLinstancefilewiththenewGUID.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2230: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2230.jpg)
ExampleThefollowingisanexampleofthehwsOperationelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 2231: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2231.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2232: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2232.jpg)
ShowAll
![Page 2233: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2233.jpg)
hwsWorkflowElement
ContainstheinformationtoenabletheWorkflowtaskpaneandtoenableindividualactionsandtasksassociatedwithaMicrosoftBizTalk2004HumanWorkflowServices(HWS)server.
![Page 2234: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2234.jpg)
Typexsd:complexType
![Page 2235: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2235.jpg)
ChildElements
Element Descriptionlocation (Required)ContainstheUniformResourceLocator
(URL)oftheHWSWebservice.allowedActions ContainstheHWSactionsenabledfortheform.allowedTasks ContainstheHWStasksenabledfortheform.
![Page 2236: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2236.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
taskpaneVisible xdYesNo No SpecifieswhethertheWorkflowtaskpaneisvisible.Defaultvalueis"yes".
yes
no
![Page 2237: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2237.jpg)
Definition
<xsd:elementname="hwsWorkflow"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:location"minOccurs="1"maxOccurs="1"/><xsd:elementref="xsf:allowedActions"minOccurs="1"maxOccurs="1"/><xsd:elementref="xsf:allowedTasks"minOccurs="0"maxOccurs="1"/></xsd:sequence><xsd:attributename="taskpaneVisible"type="xsf:xdYesNo"></xsd:attribute></xsd:complexType><xsd:uniquename="hws_actiontask_name"><xsd:selectorxpath="./xsf:allowedActions/xsf:action|./xsf:allowedTasks/xsf:task"/><xsd:fieldxpath="@name"/></xsd:unique></xsd:element>
![Page 2238: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2238.jpg)
RemarksForeveryactionandtaskincludedinthehwsWorkflowelement,abuttonisenabledontheWorkflowtaskpane;however,thebuttoneventmustbescriptedmanuallyforeachactionandtask.
InfoPathdoesnotsupportmultipleactionsinaformanddoesnotsupportHWSactivitymodels(predefinedsetsofactions).
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2239: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2239.jpg)
ExampleThefollowingisanexampleofthehwsWorkflowelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
![Page 2240: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2240.jpg)
ShowAll
![Page 2241: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2241.jpg)
importParametersElement
Containsalltheparametersthatdefinehowtheimport(merge)formsfeatureworksfortheform.
![Page 2242: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2242.jpg)
Type
xsd:complexType
![Page 2243: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2243.jpg)
Structure
Name Descriptionenabled (Requiredattribute)Specifieswhetherformmerging
isenabledfortheform.importSource (Optionalelement)Specifiesallparameterstobe
usedwhenmergingaformofaspecificXMLSchemaintoadestinationform.
useScriptHandler (Optionalattribute)SpecifieswhethertousetheeventhandlerdefinedfortheOnMergeRequesteventwhenimporting(merging)forms.
![Page 2244: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2244.jpg)
RemarksTheimportParameterselementisanoptionalelementofthexDocumentClasselement.
![Page 2245: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2245.jpg)
ExampleThefollowingisanexampleoftheimportParameterselement:
<xsf:importParametersenabled="yes"useScriptHandler="yes"><xsf:importSourcename="MySource"schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 2246: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2246.jpg)
ShowAll
![Page 2247: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2247.jpg)
importSourceElement
SpecifiesallparameterstobeusedwhenmergingaformofaspecificXMLSchemaintoadestinationform.
![Page 2248: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2248.jpg)
Type
xsd:complexType
![Page 2249: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2249.jpg)
Structure
Name Descriptionname (Requiredattribute)Identifiesthenameofthesourceformas
definedintheprocessinginstructionofthatform’sunderlyingXMLdocument.
schema (Requiredattribute)IdentifiestheXMLSchemafilethatshouldbeusedduringthemergeoperationtovalidatetheformbeingmerged.
transform (Requiredattribute)Identifiesthe.xsltfilethatshouldbeusedduringthemergeoperationwhenthesourceform(theonethatisbeingmergedin)matchestheXMLSchemaspecifiedinthecorrespondingschemaattribute.
![Page 2250: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2250.jpg)
RemarksTheimportSourceelementisanoptionalelementoftheimportParameterselement.
IftheimportSourceelementisnotdefined,thedefault.xsltfileisusedforalltransformationsduringamergeoperation.
![Page 2251: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2251.jpg)
ExampleThefollowingisanexampleoftheimportSourceelement:
<xsf:importParametersenabled="yes"<xsf:importSourcename=""schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 2252: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2252.jpg)
ShowAll
![Page 2253: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2253.jpg)
initialXmlDocumentElement
ContainsareferencetotheXMLtemplatefilethatisusedforthecreationofanewformbasedontheformtemplate.
![Page 2254: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2254.jpg)
Type
xsd:complexType
![Page 2255: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2255.jpg)
Structure
Name Descriptioncaption (Requiredattribute)Definesthetextstringtobeused
asthenameoftheformintheTemplateGalleryandinthemostrecentlyusedlist.
customCategory (Optionalelement)SpecifiesthecategorythattheformtemplateappearsunderintheFillOutaFormtaskpane.
href (Requiredattribute)SpecifiestheUniformResourceLocator(URL)oftheXMLtemplatefiletobeusedwhenauserclicksFillOutaFormontheFilemenu.
![Page 2256: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2256.jpg)
RemarksTheinitialXmlDocumentelementisarequiredelementofthefileNewelement.
![Page 2257: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2257.jpg)
ExampleThefollowingisanexampleoftheinitialXmlDocumentelement:
<xsf:fileNew><xsf:initialXmlDocumentcaption="TravelReport"href="TravelReportTemplate.xml"/></xsf:fileNew>
![Page 2258: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2258.jpg)
ShowAll
![Page 2259: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2259.jpg)
inputElement
ContainsthesubstitutioninformationforpartsoftheinputSimpleObjectAccessProtocol(SOAP)messagetotheWebservice.
![Page 2260: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2260.jpg)
Type
xsd:complexType
![Page 2261: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2261.jpg)
Structure
Name Descriptionsource (Requiredattribute)Containsthenameoftheresource
fileintheformtemplatethatcontainstheXMLSchemafortheinputSOAPmessageoftheselectedoperationoftheWebservice.
partFragment (Optionalelement)DefinesonesubstitutiongroupforaspecificpartoftheinputSOAPmessage.
![Page 2262: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2262.jpg)
RemarksTheinputelementisanoptionalelementoftheoperationelement.
SpecifiedpartsintheSOAPmessagearereplacedwhentheformtemplateisfilledoutwithdatafromwithintheform.ItisusedwhenasecondarydatasourceispopulatedfromaWebservicecallandMicrosoftOfficeInfoPath2003needssomeinputargumentstomaketheWebservicecalls.
![Page 2263: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2263.jpg)
ExampleThefollowingisanexampleoftheinputelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 2264: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2264.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2265: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2265.jpg)
introElement
Containstheintroductionforthee-mailmessagewhentheformissubmittedbyusingtheemailAdapterelement.
![Page 2266: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2266.jpg)
Typexsd:complexType
![Page 2267: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2267.jpg)
ParentElements
Element DescriptionemailAdapter Parentelementthatcontainstheinformationneededto
submitanInfoPathformasanattachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 2268: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2268.jpg)
ChildElementsNone.
![Page 2269: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2269.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes Containsthevalueoftheintroelement.
string
![Page 2270: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2270.jpg)
Definition
<xsd:elementname="intro"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2271: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2271.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2272: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2272.jpg)
ExampleThefollowingisanexampleoftheintroelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 2273: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2273.jpg)
ShowAll
![Page 2274: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2274.jpg)
listPropertiesElement
Identifiesthepropertiesthatshouldbeonalistviewofallformsbelongingtotheformtemplate.
![Page 2275: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2275.jpg)
Type
xsd:complexType
![Page 2276: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2276.jpg)
Structure
Name Descriptionfields (Optionalelement)Definesasetofoneormorefieldelements.
![Page 2277: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2277.jpg)
RemarksThelistPropertieselementisanoptionalelementofthexDocumentClasselement.
XMLdocumentsbelongingtoaformcanbeplacedinasinglefolderorformlibrary.Dependingontheunderlyingsupportinthefilesystemorserver,thisinformationcanbeusedtocreatemeaningfullistviewsonasetofforms.Forexample,whenMicrosoftOfficeInfoPath2003formsaresavedtoaWindowsSharePointServicesformlibrarythatisbasedonanInfoPathformtemplate,formpropertiesspecifiedinthissectionareautomaticallypromotedandmadeavailabletothedefaultviewoftheformlibrary.
![Page 2278: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2278.jpg)
ExampleThefollowingisanexampleofthelistPropertieselement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 2279: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2279.jpg)
ShowAll
![Page 2280: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2280.jpg)
locationElement
ContainstheUniformResourceLocator(URL)oftheMicrosoftBizTalk2004HumanWorkflowServices(HWS)Webservice.
![Page 2281: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2281.jpg)
Typexsd:complexType
![Page 2282: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2282.jpg)
ChildElementsNone.
![Page 2283: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2283.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
url xsd:string Yes ThelocationoftheHWSWebservice.
string
![Page 2284: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2284.jpg)
Definition
<xsd:elementname="location"><xsd:complexType><xsd:attributename="url"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2285: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2285.jpg)
RemarksThelocationelementisachildelementofthehwsWorkflowelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2286: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2286.jpg)
ExampleThefollowingisanexampleofthelocationelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
![Page 2287: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2287.jpg)
ShowAll
![Page 2288: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2288.jpg)
mainpaneElement
Determineswhatisdisplayedinthemainpane.
![Page 2289: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2289.jpg)
Type
xsd:complexType
![Page 2290: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2290.jpg)
Structure
Name Descriptiontransform (Requiredattribute)SpecifiestherelativeURLtotheXSL
Transformation(XSLT)thatisusedfortheview.
![Page 2291: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2291.jpg)
RemarksThemainpaneelementisarequiredelementoftheviewelement.
ThemainpaneelementisanoptionalelementoftheexternalViewelement.
Themainpaneisthemainformarea,asopposedtosecondaryuserinterfaceareassuchasthetaskpane.
![Page 2292: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2292.jpg)
ExampleThefollowingisanexampleofthemainpaneelement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
ThefollowingisanexampleofthemainpaneelementusedwithintheexternalViewelement:
<xsf:externalViews><xsf:externalViewname="SalesDoc"><xsf:mainpanetransform="myWordView.xsl"/></xsf:externalView><xsf:externalViews>
![Page 2293: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2293.jpg)
ShowAll
![Page 2294: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2294.jpg)
masterDetailElement
DefinestheXMLfragmentsthatformamasteranddetailrelationshipinaview'srepeatingtablesorrepeatingsections.
![Page 2295: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2295.jpg)
Typexsd:complexType
![Page 2296: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2296.jpg)
ChildElementsNone.
![Page 2297: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2297.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
master xsd:string No ContainstheXPathoftheXMLfragmentthatisboundtoamastertableorsection.
string
masterViewContext xsd:string No SpecifiesastringthatidentifiesanHTMLelementintheview.
string
masterKey xsd:string No ContainstheXPathofthefieldinthemasterXMLfragmentthatformstherelationshiptothedetailXMLfragment.
string
detailKey xsd:string No ContainstheXPathofthefieldinthedetailXMLfragmentthatformstherelationshiptothemasterXMLfragment.
string
![Page 2298: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2298.jpg)
Definition
<xsd:elementname="masterDetail"><xsd:complexType><xsd:attributename="master"type="xsd:string"></xsd:attribute><xsd:attributename="masterViewContext"type="xsd:string"></xsd:attribute><xsd:attributename="masterKey"type="xsd:string"></xsd:attribute><xsd:attributename="detailKey"type="xsd:string"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2299: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2299.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2300: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2300.jpg)
ExampleThefollowingisanexampleofthemasterDetailelement:
<xsf:editWithcaption="group2"xd:autogeneration="template"component="xCollection"><xsf:masterDetailmasterViewContext="CTRL1_5"master="my:group2"masterKey="my:field1"detailKey="my:field3"></xsf:masterDetail></xsf:editWith>
![Page 2301: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2301.jpg)
ShowAll
![Page 2302: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2302.jpg)
membershipElement
Associatesauserorgroupofuserswitharole.
![Page 2303: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2303.jpg)
Typexsd:complexType
![Page 2304: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2304.jpg)
ChildElements
Element DescriptiongetUserNameFromData Allowsusernamestobedeterminedbyan
XPathqueryintothedatainthemaindatasourceorasecondarydatasourceandtobeassociatedwitharole.
userName Definesausertoaparticularrole.group Defineswhichgroupauserbelongsto.
![Page 2305: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2305.jpg)
AttributesNone.
![Page 2306: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2306.jpg)
Definition
<xsd:elementname="membership"><xsd:complexType><xsd:choiceminOccurs="1"maxOccurs="unbounded"><xsd:elementref="xsf:getUserNameFromData"/><xsd:elementref="xsf:userName"/><xsd:elementref="xsf:group"/></xsd:choice></xsd:complexType></xsd:element>
![Page 2307: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2307.jpg)
RemarksInfoPathassociatesarolewiththecurrentuserbasedonthemembershiporderintheformdefinitionfile(.xsf).Developerscanmodifythisorderbyhandintheformdefinitionfile.Themembershipelementmustbeachildoftheroleselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2308: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2308.jpg)
ExampleThefollowingisanexampleofthemembershipelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="Domain\username1"memberOf="A"/><xsf:userNamename="Domain\username2"memberOf="B"/><xsf:groupname="Domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2309: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2309.jpg)
menuElement
Containsinformationaboutthecustommenususedintheview.
![Page 2310: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2310.jpg)
Type
xsd:complexType
![Page 2311: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2311.jpg)
Structure
Name Descriptionbutton (Optionalelement)Definesabuttonthathasanassociated
action.caption (Requiredattribute)Usedasthecaptionforamenu.menu (Optionalelement)Containsinformationaboutthemenusused
withinamenu(cascadingmenus).
![Page 2312: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2312.jpg)
RemarksThemenuelementisanoptionalelementoftheview,toolbar,andmenuAreaelements.Multiplemenuscanbedeclaredforaform,andeachmenucancontainmultiplemenuorbuttonelements.
NoteTocreatecascadingmenus,amenuelementcanbenestedinsideanothermenuelement.
![Page 2313: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2313.jpg)
ExampleThefollowingisanexampleofthemenuelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 2314: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2314.jpg)
menuAreaElement
ContainsinformationabouttheMicrosoftOfficeInfoPath2003built-inmenususedintheview.
![Page 2315: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2315.jpg)
Type
xsd:complexType
![Page 2316: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2316.jpg)
Structure
Name Descriptionbutton (Optionalelement)Definesabuttonthathasanassociated
action.name (Requiredattribute)Correspondstooneofthebuilt-inInfoPath
top-levelmenus.menu (Optionalelement)Containsinformationaboutthemenusused
withinthemenuarea.
![Page 2317: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2317.jpg)
RemarksThemenuAreaelementisanoptionalelementoftheviewelement.
ThemenuAreaelementisanalogoustothetop-levelmenusfoundinInfoPathwhenfillingoutaform.MultiplebuttonsormenuscanbedeclaredwithinamenuAreaelement.Eachbuttonelementcreatesanadditionalmenuitemwithinthecorrespondingbuilt-inmenu,specifiedbythenameattributeofthemenuAreaelement,andhasanaction(orcommand)associatedwithit.IfamenuelementisnestedwithinamenuAreaelement,thiscreatesacascadingmenuoffofthebuilt-inmenu.
![Page 2318: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2318.jpg)
ExampleThefollowingisanexampleofthemenuAreaelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 2319: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2319.jpg)
messageElement
Containsthesignatureconfirmationmessagethatisshownwhenasignatureisappliedtotheformorsectionoftheform.
![Page 2320: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2320.jpg)
Typexsf:xdSignedDataBlockMessage
ParentElements
Element DescriptionsignedDataBlock Definesanodesetintheform'sunderlyingXML
document,towhichadigitalsignaturecanbeapplied.
![Page 2321: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2321.jpg)
ChildElementsNone.
![Page 2322: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2322.jpg)
AttributesNone.
![Page 2323: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2323.jpg)
Definition
<xsd:elementname="message"type="xsf:xdSignedDataBlockMessage"minOccurs="0"></xsd:element>
![Page 2324: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2324.jpg)
RemarksTheconfirmationmessageislimitedto255characters.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2325: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2325.jpg)
ExampleThefollowingisanexampleofthemessageelement:
<xsf:documentSignatures><xsf:signedDataBlockname=”main”data=”my:myfields/my:subtree1|my:myfields/my:subtree2”signatureLocation=”my:mifields/sig:signatures/main”mode=”countersign”><xsf:message>Bypressingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 2326: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2326.jpg)
ShowAll
![Page 2327: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2327.jpg)
onLoadElement
ContainsoneruleSetelementthatisinvokedwhentheformisopened.
![Page 2328: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2328.jpg)
Typexsd:complexType
![Page 2329: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2329.jpg)
ChildElements
Element DescriptionruleSetActionDefinestheruleSetactionelementtobeinvoked.
![Page 2330: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2330.jpg)
AttributesNone.
![Page 2331: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2331.jpg)
Definition
<xsd:elementname="onLoad"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:ruleSetAction"minOccurs="1"maxOccurs="1"/></xsd:sequence></xsd:complexType><xsd:keyrefname="load_ruleSetAction"refer="xsf:ruleset_name_key"><xsd:selectorxpath="./xsf:ruleSetAction"/><xsd:fieldxpath="@ruleSet"/></xsd:keyref></xsd:element>
![Page 2332: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2332.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2333: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2333.jpg)
ExampleThefollowingisanexampleoftheonLoadelement:
<xsf:onLoad><xsf:ruleSetActionruleSet="RuleSet4"/></xsf:onLoad>
![Page 2334: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2334.jpg)
ShowAll
![Page 2335: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2335.jpg)
openNewDocumentActionElement
Definesaformcreateaction.
![Page 2336: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2336.jpg)
Typexsd:complexType
![Page 2337: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2337.jpg)
ChildElementsNone.
![Page 2338: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2338.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
solutionURI xsd:anyURI Yes TheUniformResourceIdentifier(URI)ofthesolutiononwhichthenewformwillbebased.
anyURI
![Page 2339: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2339.jpg)
Definition
<xsd:elementname="openNewDocumentAction"><xsd:complexType><xsd:attributename="solutionURI"type="xsd:anyURI"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2340: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2340.jpg)
RemarksTheopenNewDocumentActionelementisachildelementoftheruleelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2341: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2341.jpg)
ExampleThefollowingisanexampleoftheopenNewDocumentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2342: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2342.jpg)
ShowAll
![Page 2343: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2343.jpg)
operationElement
Definestheoperation(method)oftheWebservicetobeusedforretrievingandsubmittingdata.
![Page 2344: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2344.jpg)
Type
xsd:complexType
![Page 2345: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2345.jpg)
Structure
Name Descriptionname (Requiredattribute)ContainstheuniquenameoftheWeb
servicemethod.serviceUrl (Requiredattribute)ContainstheWebserviceUniform
ResourceLocator(URL)towhichtherequestshouldbesent.
soapAction (Requiredattribute)ContainsthevalueoftheSOAPActionattributeintheSimpleObjectAccessProtocol(SOAP)requestmessage.
input (Optionalelement)ContainsthesubstitutioninformationforpartsoftheinputSOAPmessagetotheWebservice.
![Page 2346: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2346.jpg)
RemarksTheoperationelementisarequiredelementofthewebServiceAdapterelement.
![Page 2347: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2347.jpg)
ExampleThefollowingisanexampleoftheoperationelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 2348: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2348.jpg)
ShowAll
![Page 2349: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2349.jpg)
overrideElement
DefinesoneoverridingerrormessageforXMLSchemadatatypeerrorsforanindividualXMLDocumentObjectModel(DOM)node.
![Page 2350: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2350.jpg)
Type
xsd:complexType
![Page 2351: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2351.jpg)
Structure
Name DescriptionerrorMessage (Requiredelement)Specifiestheerrormessagethat
shouldbereturnedifthevalueofthespecifiedXMLDOMnodeisconsideredtobeinvalid.
match (Requiredattribute)IdentifiestheXMLDOMnodeforwhichtheerrormessageoverrideisdefined.
![Page 2352: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2352.jpg)
RemarksTheoverrideelementisanoptionalelementoftheschemaErrorMessageselement.
![Page 2353: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2353.jpg)
ExampleThefollowingisanexampleoftheoverrideelement:
<xsf:schemaErrorMessages><xsf:overridematch="/sampleData/number"><xsf:errorMessageshortMessage="InvalidNumber.">Thevalueenteredmustbeavalidnumber.</xsf:errorMessage></xsf:override></xsf:schemaErrorMessages>
![Page 2354: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2354.jpg)
packageElement
ContainsinformationaboutallofthefilesusedinaMicrosoftOfficeInfoPath2003form.
![Page 2355: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2355.jpg)
Type
xsd:complexType
![Page 2356: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2356.jpg)
Structure
Name Descriptionfiles (Requiredelement)Identifiesalistoffilesthatareusedbyan
InfoPathform.
![Page 2357: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2357.jpg)
RemarksThepackageelementisarequiredelementofthexDocumentClasselement.
![Page 2358: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2358.jpg)
ExampleThefollowingisanexampleofthepackageelement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 2359: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2359.jpg)
ShowAll
![Page 2360: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2360.jpg)
partFragmentElement
DefinesonesubstitutiongroupforaspecificpartoftheinputSimpleObjectAccessProtocol(SOAP)message.
![Page 2361: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2361.jpg)
Type
xsd:complexType
![Page 2362: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2362.jpg)
Structure
Name Descriptionmatch (Requiredattribute)ContainsanXPathexpressionthat
identifiestheelementsandattributesinsidetheinputSOAPmessagethataretobereplacedatruntime.
replaceWith (Requiredattribute)ContainsanXPathexpressionthatidentifiesthevaluesinthesourcedocumentthatshouldbeusedtoreplacepartsoftheinputSOAPmessage.
sendAsString (Optionalattribute)SpecifiesthatthedataissubmittedasastringthroughthewebServiceAdapterdataadapter.
dataObject (Optionalattribute)SpecifiesthenameofthedataobjecttousewhensubmittingapartFragmentelementtoaMicrosoftBiztalk2004HumanWorkflowServices(HWS)server.
filter (Optionalattribute)SpecifiestheXPathexpressionofthestructuredXMLsubtreewhensubmittingasubsetoftheXMLdata.
![Page 2363: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2363.jpg)
RemarksThepartFragmentelementisanoptionalelementoftheinputelement.
MultiplepartFragmentelementsareallowed.
![Page 2364: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2364.jpg)
ExampleThefollowingisanexampleofthepartFragmentelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"><xsf:partFragmentmatch="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"replaceWith="/dfs:myFields/dfs:dataFields/s0:IsPrime"/></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 2365: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2365.jpg)
permissionsElement
AssertsthepermissionstheInfoPathformrequiresfortheActiveXcontrolsintheview.
![Page 2366: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2366.jpg)
Typexsd:complexType
![Page 2367: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2367.jpg)
ChildElements
Element DescriptionallowedControl SpecifiestheActiveXcontrolsthatareallowedtobe
instantiated.
![Page 2368: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2368.jpg)
AttributesNone.
![Page 2369: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2369.jpg)
Definition
<xsd:elementname="permissions"><xsd:complexType><xsd:choiceminOccurs="0"maxOccurs="unbounded"><xsd:elementref="xsf:allowedControl"/></xsd:choice></xsd:complexType></xsd:element>
![Page 2370: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2370.jpg)
RemarksThepermissionselementalsoprovidesinstallationinformationforActiveXcontrolsthatarenotalreadyinstalledontheuser'scomputer.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2371: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2371.jpg)
ExampleThefollowingisanexampleofthepermissionselement:
<xsf:permissions><xsf:allowedControlcabFile="{84F32C01-78D8-4B93-8ED4-106DA70224C2}.cab”clsid="{84F32C01-78D8-4B93-8ED4-106DA70224C2}"version="1,0,0,1"/><xsf:allowedControlclsid="{F08DF954-8592-11D1-B16A-00C0F0283630}"/></xsf:permissions>
![Page 2372: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2372.jpg)
ShowAll
![Page 2373: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2373.jpg)
printElement
Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstoprinttheform.
![Page 2374: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2374.jpg)
Typexsd:complexType
![Page 2375: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2375.jpg)
ChildElementsNone.
![Page 2376: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2376.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
ui xsf:xdEnabledDisabled Yes Setswhethertheusercanprinttheform.
enabled
disabled
![Page 2377: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2377.jpg)
Definition
<xsd:elementname="print"><xsd:complexType><xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2378: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2378.jpg)
RemarksTheprintelementisanoptionalelementofthefeatureRestrictionselement.Ifthiselementisnotincludedintheformdefinitionfile(.xsf),theusercanusetheform'smenus,toolbars,orkeyboardshortcutstoprinttheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2379: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2379.jpg)
ExampleThefollowingisanexampleoftheprintelement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 2380: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2380.jpg)
printSettingsElement
Specifiestheprintersettingsusedwhenprintingtheview.
![Page 2381: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2381.jpg)
Type
xsd:complexType
![Page 2382: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2382.jpg)
Structure
Name DescriptionbottomMargin (Optionalattribute)Specifiesthebottom
margin.collate (Optionalattribute)Specifieswhetherthepaper
iscollated.copies (Optionalattribute)Specifiesthenumberof
copies.footer (Optionalattribute)Specifiesthefootertext.header (Optionalattribute)Specifiestheheadertext.leftMargin (Optionalattribute)Specifiestheleftmargin.marginUnitsType (Optionalattribute)Specifiesthemarginunit
size.orientation (Optionalattribute)Specifiestheorientation.pageRangeEnd (Optionalattribute)Specifiesthelastpageto
beprinted.pageRangeStart (Optionalattribute)Specifiesthefirstpageto
beprinted.paperSize (Optionalattribute)Specifiesthesizeofthe
paper.paperSource (Optionalattribute)Specifiesthesourceofthe
paper.printerName (Optionalattribute)Specifiesthenameofthe
printer.printerSpecificSettings (Optionalattribute)Specifiesprinterspecific
settings.rightMargin (Optionalattribute)Specifiestherightmargin.topMargin (Optionalattribute)Specifiesthetopmargin.
![Page 2383: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2383.jpg)
RemarksTheprintSettingselementisanoptionalelementoftheviewelement.
![Page 2384: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2384.jpg)
ExampleThefollowingisanexampleoftheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 2385: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2385.jpg)
ShowAll
![Page 2386: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2386.jpg)
propertyElement
Definesonespecificpropertyforthespecifiedfile.
![Page 2387: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2387.jpg)
Type
xsd:complexType
![Page 2388: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2388.jpg)
Structure
Name Descriptionname (Requiredattribute)Definesthenameoftheproperty.type (Requiredattribute)Definesthetypeoftheproperty.value (Requiredattribute)Forsimpleproperties,specifiesavaluefor
theproperty.Forcomplexandmulti-valuedproperties,thespecifiedvalueisdefinedasacontainerXMLtreeusinganopencontentmodel.
![Page 2389: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2389.jpg)
RemarksThepropertyelementisanoptionalelementofthefilePropertieselement.
![Page 2390: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2390.jpg)
ExampleThefollowingisanexampleofthepropertyelement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 2391: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2391.jpg)
ShowAll
![Page 2392: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2392.jpg)
queryElement
Associatesadataadapterwithadataobjectoraform'sunderlyingXMLdocument.
![Page 2393: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2393.jpg)
Type
xsd:complexType
![Page 2394: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2394.jpg)
Structure
Name DescriptionadoAdapter (Optionalelement)DefinesanActiveXData
Objects(ADO)dataadapterthatretrievesdatafromanADOdatasourceforthespecifieddataobject.
webServiceAdapter (Optionalelement)DefinesaWebservicedataadapterthatretrievesdatafromaWebserviceforthespecifieddataobject.
xmlFileAdapter (Optionalelement)Definesan.xmlfiledataadapterthatretrievesdatafroman.xmlfileforthespecifieddataobject.
queryAction (Optionalelement)Definesadataconnectionqueryaction.
sharepointListAdapter (Optionalelement)ContainsthedataadapterinformationtoqueryaSharePointlistorlibrary.
![Page 2395: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2395.jpg)
RemarksThequeryelementisanoptionalelementofthexDocumentClasselementandthedataObjectelement.
Onlyonedataadaptercanbespecifiedinthequeryelement.
![Page 2396: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2396.jpg)
ExampleThefollowingisanexampleofthequeryelement:
<xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 2397: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2397.jpg)
ShowAll
![Page 2398: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2398.jpg)
queryElement(dataObjectElement)
Associatesadataadapterwithadataobject.
![Page 2399: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2399.jpg)
Typexsd:complexType
![Page 2400: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2400.jpg)
ParentElements
Element DescriptiondataObject DefinesasecondarydataobjectthatisusedinaMicrosoft
OfficeInfoPathform.
![Page 2401: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2401.jpg)
ChildElements
Element DescriptionadoAdapter (Optionalelement)DefinesanActiveXData
Objects(ADO)dataadapterthatretrievesdatafromanADOdatasourceforthespecifieddataobject.
webServiceAdapter (Optionalelement)DefinesaWebservicedataadapterthatretrievesdatafromaWebserviceforthespecifieddataobject.
xmlFileAdapter (Optionalelement)Definesan.xmlfiledataadapterthatretrievesdatafroman.xmlfileforthespecifieddataobject.
sharepointListAdapter (Optionalelement)ContainsthedataadapterinformationtoqueryaSharePointlistorlibrary.
![Page 2402: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2402.jpg)
AttributesNone.
![Page 2403: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2403.jpg)
Definition
<xsd:elementname="query"><xsd:complexType><xsd:choice><xsd:elementref="xsf:adoAdapter"/><xsd:elementref="xsf:webServiceAdapter"/><xsd:elementref="xsf:xmlFileAdapter"/><xsd:elementref="xsf:sharepointListAdapter"/></xsd:choice></xsd:complexType></xsd:element>
![Page 2404: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2404.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2405: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2405.jpg)
ExampleThefollowingisanexampleofthequeryelement:
<xsf:dataObjects><xsf:dataObjectname="EmployeeNames"schema="EmployeeNames.xsd"initOnLoad="yes"><xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query></xsf:dataObject></xsf:dataObjects>
![Page 2406: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2406.jpg)
queryActionElement
Definesadataconnectionqueryaction.
![Page 2407: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2407.jpg)
Typexsd:complexType
![Page 2408: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2408.jpg)
ChildElementsNone.
![Page 2409: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2409.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
adapter xsd:string Yes Containsthenameofthedataadaptertoquery.
string
![Page 2410: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2410.jpg)
Definition
<xsd:elementname="queryAction"><xsd:complexType><xsd:attributename="adapter"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2411: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2411.jpg)
RemarksThequeryActionelementisachildelementoftheruleelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2412: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2412.jpg)
ExampleThefollowingisanexampleofthequeryActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2413: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2413.jpg)
ShowAll
![Page 2414: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2414.jpg)
roleElement
Definesrole.
![Page 2415: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2415.jpg)
Typexsd:complexType
![Page 2416: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2416.jpg)
ChildElementsNone.
![Page 2417: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2417.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xdRoleName Yes Usedto
identifytherole.
SamerestrictionasxdViewName.
![Page 2418: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2418.jpg)
Definition
<xsd:elementname="role"><xsd:complexType><xsd:attributename="name"type="xsf:xdRoleName"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2419: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2419.jpg)
RemarksEachtimearoleiscreatedforaform,acorrespondingroleelementiscreatedintheformdefinitionfile(.xsf).Youcanassignuserstorolesbyusingusernames,groups,andXPathusernames.Userscanbeselectedforrolesinoneoffourways:
Initiator—rolefornewdocuments.
Username—NTdomainusers(intranetortrustedonly).
XPathusername—usernamesstoredinXMLdata(intranetortrustedonly).
Group—ActiveDirectorydirectoryservicegroups(intranetortrustedonly).
InfoPathmakestheuserassignmentbyfollowingthemembershiporderintheformdefinitionfile.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2420: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2420.jpg)
ExampleThefollowingisanexampleoftheroleelement:
<rolesinitiator=”xsd:string”default=”xsd:string”hideStatusBarDisplay="xsf:xdYesNo"><rolename=”xsf:xdRoleName”/><membership><getUserNameFromDatadataObject=”xsd:string”select=”xsd:string”memberOf=”xsd:string”/><userNamename=”xsd:string”memberOf=”xsd:string”/><userNamename=”xsd:string”memberOf=”xsd:string”/><groupname=”xsd:string”memberOf=”xsd:string”/></membership></roles>
![Page 2421: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2421.jpg)
rolesElement
Definesroles.
![Page 2422: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2422.jpg)
Typexsd:complexType
![Page 2423: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2423.jpg)
ChildElements
Element Descriptionrole Definesrole.membershipMapsauserorgroupofuserstoarole.
![Page 2424: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2424.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
default xsd:string Yes Specifiesthenameidentifieroftherolethatisthedefaultrole.
string
initiator xsd:string No Specifiesthenameidentifieroftherolechosentobetheinitiatorrole.
string
hideStatusBarDisplay xdYesNo No Specifieswhetherthecurrentroleshouldbedisplayedinthestatusbar.
yes
no
![Page 2425: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2425.jpg)
Definition
<xsd:elementname="roles"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:role"minOccurs="1"maxOccurs="unbounded"/><xsd:elementref="xsf:membership"minOccurs="0"maxOccurs="1"/></xsd:sequence><xsd:attributename="default"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="initiator"type="xsd:string"use="optional"></xsd:attribute><xsd:attributename="hideStatusBarDisplay"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType><!--rolenamesmustbeunique--><xsd:uniquename="roles_name_unique"><xsd:selectorxpath="./xsf:role"/><xsd:fieldxpath="@name"/></xsd:unique><!--fieldsmustreferenceexistingrole--><xsd:keyname="role_name_key"><xsd:selectorxpath="./xsf:role"/><xsd:fieldxpath="@name"/></xsd:key><xsd:keyrefname="role_default"refer="xsf:role_name_key"><xsd:selectorxpath="."/><xsd:fieldxpath="@default"/></xsd:keyref><xsd:keyrefname="role_initiator"refer="xsf:role_name_key"><xsd:selectorxpath="."/><xsd:fieldxpath="@initiator"/></xsd:keyref><xsd:keyrefname="role_membership"refer="xsf:role_name_key">
![Page 2426: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2426.jpg)
<xsd:selectorxpath="./xsf:membership/*"/><xsd:fieldxpath="@memberOf"/></xsd:keyref></xsd:element>
![Page 2427: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2427.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2428: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2428.jpg)
ExampleThefollowingisanexampleoftheroleselement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="Domain\username1"memberOf="A"/><xsf:userNamename="Domain\username2"memberOf="B"/><xsf:groupname="Domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2429: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2429.jpg)
ShowAll
![Page 2430: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2430.jpg)
ruleElement
Definesanactioninvokedafteraneventhasoccurredintheform.
![Page 2431: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2431.jpg)
Typexsd:complexType
![Page 2432: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2432.jpg)
ChildElements
Element DescriptionassignmentAction Definesanactiontosetthevalueofa
field.closeDocumentAction Definesaformcloseaction.dialogBoxExpressionAction DefinesanXPathexpressiontobe
displayedinadialogbox.dialogBoxMessageAction Definesaliteralmessagetobedisplayed
inadialogbox.exitRuleSet Anelementwhich,ifpresentattheendof
therule,stopsfurtherruleprocessingoftheentireruleSetwhentheruleisexecuted.
openNewDocumentAction Definesaformcreateaction.queryAction Definesadataconnectionqueryaction.submitAction Definesaformsubmitaction.switchViewAction Definesaviewswitchaction.
![Page 2433: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2433.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
caption xsd:string Yes Containsthenameoftheruleasitappearsintheuserinterface.
string
condition xsd:string No DefinestheXPathexpression,evaluatedasaBooleanvalue,thatdetermineswhethertheassociatedactionwillbeinvoked.
string
isEnabled xdYesNo No Specifieswhethertheruleisenabledfortheform.Thedefaultvalueis"yes".
yes
no
![Page 2434: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2434.jpg)
Definition
<xsd:elementname="rule"><xsd:complexType><xsd:sequence><xsd:choiceminOccurs="0"maxOccurs="unbounded"><xsd:elementref="xsf:dialogBoxMessageAction"/><xsd:elementref="xsf:dialogBoxExpressionAction"/><xsd:elementref="xsf:switchViewAction"/><xsd:elementref="xsf:assignmentAction"/><xsd:elementref="xsf:queryAction"/><xsd:elementname="submitAction"><xsd:complexType><xsd:attributename="adapter"type="xsf:xdTitle"use="required"></xsd:attribute></xsd:complexType></xsd:element><xsd:elementref="xsf:openNewDocumentAction"/><xsd:elementref="xsf:closeDocumentAction"/></xsd:choice><xsd:elementname="exitRuleSet"minOccurs="0"><xsd:complexType/></xsd:element></xsd:sequence><xsd:attributename="caption"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="condition"type="xsd:string"use="optional"></xsd:attribute><xsd:attributename="isEnabled"type="xsf:xdYesNo"use="optional"default="yes"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2435: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2435.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2436: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2436.jpg)
ExampleThefollowingisanexampleoftheruleelement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 2437: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2437.jpg)
ShowAll
![Page 2438: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2438.jpg)
ruleSetElement
Containsoneormoreruleelements.
![Page 2439: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2439.jpg)
Typexsd:complexType
![Page 2440: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2440.jpg)
ChildElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccurredinthe
form.
![Page 2441: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2441.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
name xsd:string Yes ContainsthenameoftheruleSetelement.
string
![Page 2442: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2442.jpg)
Definition
<xsd:elementname="ruleSet"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:rule"minOccurs="1"maxOccurs="unbounded"/></xsd:sequence><xsd:attributename="name"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2443: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2443.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2444: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2444.jpg)
ExampleThefollowingisanexampleoftheruleSetelement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 2445: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2445.jpg)
ruleSetActionElement
DefinestheruleSetactionelementtobeinvoked.
![Page 2446: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2446.jpg)
Typexsd:complexType
![Page 2447: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2447.jpg)
ChildElementsNone.
![Page 2448: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2448.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
ruleSet xsd:string Yes ContainsthenameoftheruleSettobeinvoked.
string
![Page 2449: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2449.jpg)
Definition
<xsd:elementname="ruleSetAction"><xsd:complexType><xsd:attributename="ruleSet"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2450: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2450.jpg)
RemarksTheruleSetActionelementisachildofthesubmit,domEventHandler,onLoad,andbuttonelements.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2451: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2451.jpg)
ExampleThefollowingisanexampleoftheruleSetActionelement:
<xsf:onLoad><xsf:ruleSetActionruleSet="RuleSet4"/></xsf:onLoad>
![Page 2452: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2452.jpg)
ruleSetsElement
ContainsoneormoreruleSetelements.
![Page 2453: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2453.jpg)
Typexsd:complexType
![Page 2454: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2454.jpg)
ChildElements
Element DescriptionruleSet Containsoneormoreruleelements.
![Page 2455: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2455.jpg)
AttributesNone.
![Page 2456: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2456.jpg)
Definition
<xsd:elementname="ruleSets"><xsd:complexType><xsd:sequence><xsd:elementref="xsf:ruleSet"minOccurs="0"maxOccurs="unbounded"/></xsd:sequence></xsd:complexType><xsd:uniquename="ruleSets_name_unique"><xsd:selectorxpath="./xsf:ruleSet"/><xsd:fieldxpath="@name"/></xsd:unique></xsd:element>
![Page 2457: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2457.jpg)
RemarksTheruleSetselementisanoptionalelementofthexDocumentClasselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2458: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2458.jpg)
ExampleThefollowingisanexampleoftheruleSetselement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 2459: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2459.jpg)
ShowAll
![Page 2460: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2460.jpg)
saveElement
ShowswhethertheSaveusingcustomcodecheckboxoptionisenabled.
![Page 2461: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2461.jpg)
Typexsd:complexType
![Page 2462: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2462.jpg)
ChildElements
Element DescriptionuseScriptHandler Specifiesthatthesubmit,save,orversionupgrade
operationwillbehandledusingformcode.
![Page 2463: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2463.jpg)
AttributesNone.
![Page 2464: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2464.jpg)
Definition
<xsd:elementname="save"><xsd:complexType><xsd:choiceminOccurs="0"maxOccurs="1"><xsd:elementref="xsf:useScriptHandler"/></xsd:choice></xsd:complexType></xsd:element>
![Page 2465: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2465.jpg)
RemarksIftheSaveusingcustomcodecheckboxoptionisenabled,the<xsf:save><xsf:useScriptHandler/></xsf:save>elementswillbeaddedtotheformdefinitionfile(.xsf)asachildofthexDocumentClasselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2466: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2466.jpg)
ExampleThefollowingisanexampleofthesaveelement:
<xsf:save><xsf:useScriptHandler/></xsf:save>
![Page 2467: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2467.jpg)
ShowAll
![Page 2468: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2468.jpg)
saveElement(featureRestrictionsElement)
Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstosavetheform.
![Page 2469: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2469.jpg)
Typexsd:complexType
![Page 2470: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2470.jpg)
ParentElements
Element DescriptionfeatureRestrictions Specifieswhethertheusercanusetheform's
menus,toolbars,orkeyboardshortcutstosavetheform,exporttheform,printtheform,orsendtheformasane-mailattachment.
![Page 2471: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2471.jpg)
ChildElementsNone.
Attributes
Attribute Type Required DescriptionPossibleValues
ui xsf:xdEnabledDisabled Yes Setswhethertheusercansavetheform.
enabled
disabled
![Page 2472: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2472.jpg)
Definition
<xsd:elementname="save"minOccurs="0"><xsd:complexType><xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2473: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2473.jpg)
RemarksThesaveelementisanoptionalelementofthefeatureRestrictionselement.Ifthiselementisnotincludedintheformdefinitionfile(.xsf),thentheusercanusetheform'smenus,toolbars,orkeyboardshortcutstosavetheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2474: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2474.jpg)
ExampleThefollowingisanexampleofthesaveelement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 2475: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2475.jpg)
ShowAll
![Page 2476: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2476.jpg)
schemaErrorMessagesElement
ContainscustomerrormessagesusedtooverrideXMLSchemadatatypeerrors.
![Page 2477: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2477.jpg)
Type
xsd:complexType
![Page 2478: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2478.jpg)
Structure
Name Descriptionoverride (Optionalelement)Definesoneoverridingerrormessagefor
XMLSchemadatatypeerrorsforanindividualXMLDocumentObjectModel(DOM)node.
![Page 2479: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2479.jpg)
RemarksTheschemaErrorMessageselementisanoptionalelementofthexDocumentClasselement.
![Page 2480: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2480.jpg)
ExampleThefollowingisanexampleoftheschemaErrorMessageselement:
<xsf:schemaErrorMessages><xsf:overridematch="/sampleData/number"><xsf:errorMessageshortMessage="InvalidNumber.">Thevalueenteredmustbeavalidnumber.</xsf:errorMessage></xsf:override></xsf:schemaErrorMessages>
![Page 2481: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2481.jpg)
ShowAll
![Page 2482: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2482.jpg)
scriptElement
Definesthesourcescriptingfilecontainingallthedata-levelscriptcontentreferencedintheform.
![Page 2483: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2483.jpg)
Type
xsd:complexType
![Page 2484: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2484.jpg)
Structure
Name Descriptionsrc (Requiredattribute)ProvidesarelativeURLwithintheform
templatetothespecifiedscriptsourcefile.
![Page 2485: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2485.jpg)
RemarksThescriptelementisanoptionalelementofthescriptselement.
![Page 2486: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2486.jpg)
ExampleThefollowingisanexampleofthescriptelement:
<xsf:scriptslanguage="jscript"><xsf:scriptsrc="myscripts.js"/></xsf:scripts>
![Page 2487: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2487.jpg)
ShowAll
![Page 2488: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2488.jpg)
scriptsElement
Definesthesourceofallbusinesslogicscriptsusedatthedocumentlevelintheform.
![Page 2489: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2489.jpg)
Type
xsd:complexType
![Page 2490: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2490.jpg)
Structure
Name Descriptionlanguage (Requiredattribute)Definesthescriptlanguage
usedinthebusinesslogicsourcefiles.script (Optionalelement)Definesthesourcescripting
filecontainingallthedata-levelscriptcontentreferencedintheform.
enforceScriptTimeout (Optionalelement)Specifieswhethertoenableordisableatime-outperiodforscripts.
![Page 2491: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2491.jpg)
RemarksThescriptselementisanoptionalelementofthexDocumentClasselement.
Therecanpotentiallybemorethanonescriptelementinthescriptselement;however,theyshouldallbewritteninthesamescriptinglanguage.Alldefinedscriptsourcesareconcatenatedandloadedintoasinglescriptengineenvironmentwhentheformisbeingfilledout.Thismeansthatduplicatefunctionsandpropertynamesareresolvedbydefaultbythescriptengine,andthelastdeclarationistheonethatisused.Formdevelopersmustensureuniquenamesacrossscriptingsourcefilesthatareusedinaform.
Inordertoaddencodedjscriptfilestoaform,youneedtoedittheformdefinitionfile(.xsf)tochangethelanguagepropertyinthescriptselement.Afterthepropertyhasbeenupdated,thescriptssectioninthe.xsffilewilllooklikethefollowing:
<xsf:scriptslanguage="jscript.encode"> <xsf:scriptsrc="scriptenc.js"></xsf:script></xsf:scripts>
Thescriptselementisnotpresentinthe.xsffileiftheformusesmanagedcode.
![Page 2492: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2492.jpg)
ExampleThefollowingisanexampleofthescriptselement:
<xsf:scriptslanguage="jscript"enforceScriptTimeout="no"><xsf:scriptsrc="internal.js"/><xsf:scriptsrc="script.js"/></xsf:scripts>
![Page 2493: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2493.jpg)
ShowAll
![Page 2494: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2494.jpg)
sendMailElement
Specifieswhethertheusercanusetheform'smenus,toolbars,orkeyboardshortcutstosendtheformasanemailattachment.
![Page 2495: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2495.jpg)
Typexsd:complexType
![Page 2496: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2496.jpg)
ChildElementsNone.
![Page 2497: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2497.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
ui xdEnabledDisabled required Setswhethertheusercansendtheformasanemailattachment.
enabled
disabled
![Page 2498: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2498.jpg)
Definition
<xsd:elementname="sendMail"><xsd:complexType><xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2499: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2499.jpg)
RemarksThesendMailelementisanoptionalelementofthefeatureRestrictionselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2500: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2500.jpg)
ExampleThefollowingisanexampleofthesendMailelement:
<xsf:featureRestrictions><xsf:saveui="disabled"/><xsf:sendMailui="disabled"/><xsf:exportToWebui="disabled"/><xsf:exportToExcelui="disabled"/><xsf:printui="enabled"/><xsf:autoRecoveryfeature="disabled"/></xsf:featureRestrictions>
![Page 2501: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2501.jpg)
ShowAll
![Page 2502: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2502.jpg)
sharepointListAdapterElement
ContainsthedataadapterinformationtoqueryaSharePointlistorlibrary.
![Page 2503: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2503.jpg)
Typexsd:complexType
![Page 2504: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2504.jpg)
ChildElements
Element Descriptionfield Containsfieldmappinginformationforeachfieldina
SharePointlistandthecorrespondingnameusedinMicrosoftOfficeInfoPath2003ServicePack1.
![Page 2505: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2505.jpg)
Attributes
Attribute Type Required Description PossibleValuesname xdTitle Yes Containsthenameof
thesharepointListAdapterandisusedasthesecondarydatasourcename.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
siteUrl xsd:string Yes ContainstheUniformResourceLocator(URL)oftheSharePointsite.
string
sharepointGuid xsd:string Yes ContainstheGUIDoftheSharePointlist.
string
infopathGroup xsd:string Yes ContainsthenameofthegroupunderwhichallfieldsintheSharePointlistwillbestored.
string
queryAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforqueryingthedatasource.Alwayssetto"yes"forthesharepointListAdapter.
yes
no
submitAllowed xdYesNo No Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.OmittedforthesharepointListAdapter,correspondingtoadefaultvalueof"no".
yes
no
![Page 2506: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2506.jpg)
Definition
<xsd:elementname="sharepointListAdapter"><xsd:complexType><xsd:sequence><xsd:elementname="field"minOccurs="0"maxOccurs="unbounded"><xsd:complexType><xsd:attributename="sharepointName"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="infopathName"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="isLookup"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element></xsd:sequence><xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute><xsd:attributename="siteUrl"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="sharepointGuid"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="infopathGroup"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute><xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2507: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2507.jpg)
RemarksEachfieldintheSharePointlistthatisreturnedbythedataadapterwillhaveafieldelement.ThesharepointListAdaptercanonlybeusedasasecondarydatasourceanddoesnotsupportasubmitaction.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2508: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2508.jpg)
ExampleThefollowingisanexampleofthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl=”http://xyzco/reports/”sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="XyzReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 2509: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2509.jpg)
ShowAll
![Page 2510: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2510.jpg)
signedDataBlockElement
Definesanodesetintheform'sunderlyingXMLdocumenttowhichadigitalsignaturecanbeapplied.
![Page 2511: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2511.jpg)
Typexsd:complexType
![Page 2512: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2512.jpg)
ChildElements
Element Descriptionmessage Thesignatureconfirmationmessageshownwhenadigital
signatureisappliedtotheformortoasectionoftheform.
![Page 2513: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2513.jpg)
Attributes
Attribute Type Required Descriptionname xdSignedDataBlockName Yes Containsthe
nameofthesignedDataBlockelement.
data xsd:string Yes ContainsanXPathmatchexpressionthatdefinesthenodesettowhichthesignaturewillbeapplied.
signatureLocation xsd:string Yes ContainsanXPathexpressionthatpointstotheXMLDocumentObjectModel(DOM)nodewithintheform'sunderlyingXMLdocumentthatisusedforstoringthedigitalsignature.
mode xdSignatureRelationEnum Yes SpecifiesthesignaturerelationshipforthesignedDatablockelement.Thedefaultis"single".
![Page 2514: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2514.jpg)
Definition
<xsd:elementname="signedDataBlock"><xsd:complexType><xsd:sequence><xsd:elementname="message"type="xsf:xdSignedDataBlockMessage"minOccurs="0"></xsd:element></xsd:sequence><xsd:attributename="name"type="xsf:xdSignedDataBlockName"use="required"></xsd:attribute><xsd:attributename="data"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="signatureLocation"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="mode"type="xsf:xdSignatureRelationEnum"use="required"></xsd:attribute></xsd:complexType><xsd:uniquename="signedDataBlock_name_unique"><xsd:selectorxpath="."/><xsd:fieldxpath="@name"/></xsd:unique></xsd:element>
![Page 2515: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2515.jpg)
RemarksThenodesetmustbetheunionofconnectedsubtrees.IfanonleafnodeisincludedinasignedDataBlock,thenallchildrenmustbeincluded.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2516: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2516.jpg)
ExampleThefollowingisanexampleofthesignedDataBlockelement:
<xsf:documentSignatures><xsf:signedDataBlockname=”main”data=”my:myfields/my:subtree1|my:myfields/my:subtree2”signatureLocation=”my:mifields/sig:signatures/main”mode=”countersign”><xsf:message>Bypressingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 2517: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2517.jpg)
ShowAll
![Page 2518: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2518.jpg)
solutionPropertiesElement
Containsdesign-timeinformationaboutaMicrosoftOfficeInfoPath2003form.
![Page 2519: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2519.jpg)
Type
xsd:complexType
![Page 2520: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2520.jpg)
Structure
Name DescriptionallowCustomization (Optionalattribute)Indicateswhether
theformcanbemodifiedorcustomized.automaticallyCreateNodes (Optionalattribute)Indicateswhether
XMLDocumentObjectModel(DOM)nodeswillbeautomaticallygeneratedwhencontrolsareinsertedintheviewindesignmode.
fullyEditableNamespace (Optionalattribute)IdentifiesthenamespaceofanXMLSchemaintheformtemplatethatcanbeentirelymodifiedinInfoPathdesignmode.
lastOpenView (Optionalattribute)IdentifiesthenameoftheviewthatwaslastopeninInfoPathwhendesigningaform.
lastVersionNeedingTransform (Optionalattribute)Identifies,temporarily,thevalueofthemaxToVersionUpgradeattributeinthedocumentVersionUpgradeelementforupgradewithan.xsltfileifscriptingcodeisbeingusedfortheupgrade.
scriptLanguage (Optionalattribute)Identifiesthenameofthescriptinglanguageusedtoimplementthebusinesslogicoftheform.
publishSaveUrl (Optionalattribute)ContainsthelocationofthesavedformtemplateifdifferentfromthevalueofthepublishUrlattribute.
![Page 2521: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2521.jpg)
RemarksThesolutionPropertieselementisanoptionalelementoftheapplicationParameterselement.
![Page 2522: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2522.jpg)
ExampleThefollowingisanexampleofthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:names?pace1:mynames"/></xsf:applicationParameters>
![Page 2523: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2523.jpg)
ShowAll
![Page 2524: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2524.jpg)
subjectElement
Containsthesubjectlineofthee-mailmessagewhentheformissubmittedusingtheemailAdapterelement.
![Page 2525: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2525.jpg)
Typexsd:complexType
![Page 2526: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2526.jpg)
ParentElements
Element DescriptionemailAdapter Parentelementthatcontainstheinformationneededto
submitanInfoPathformasanattachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 2527: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2527.jpg)
ChildElementsNone.
![Page 2528: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2528.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes Containsthevalueofthesubjectelement.
string
valueType xdExpressionLiteral No SpecifieswhetherthevalueattributeisinterpretedasanXPathexpressionoraliteralstring.
expression
literal
![Page 2529: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2529.jpg)
Definition
<xsd:elementname="subject"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2530: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2530.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2531: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2531.jpg)
ExampleThefollowingisanexampleofthesubjectelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 2532: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2532.jpg)
ShowAll
![Page 2533: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2533.jpg)
submitElement
Containsinformationaboutthesubmissionfunctionalityofaform.
![Page 2534: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2534.jpg)
Type
xsd:complexType
![Page 2535: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2535.jpg)
Structure
Name Descriptioncaption (Optionalattribute)Definesthenameofthe
submitbuttonandcorrespondingmenuitemthatwillappearontheFilemenuwhenauserisfillingouttheform.
disableMenuItem (Optionalattribute)Specifieswhetherthemenuitemforthesubmitoperationshouldbedisabled.
errorMessage (Optionalelement)Specifiesthetexttobeusedintheerrormessage.IftheshowStatusDialogattributeofthesubmitelementissetto"no",thiselementwillbeignored.
onAfterSubmit (Optionalattribute)Specifieswhethertheformshouldbeclosed,keptopen,orifanewformshouldbecreatedafterasuccessfulsubmission.
showSignatureReminder (Optionalattribute)Specifieswhetheradialogboxshouldbedisplayedtoprompttheusertodigitallysigntheformbeforesubmittingit.
showStatusDialog (Optionalattribute)Specifieswhetherthestatusdialogboxshouldbeshownafterthesubmitoperation.Valuesinclude"yes"and"no".Thedefaultvaluesis"yes".
successMessage (Optionalelement)Specifiesthetexttobeusedtonotifytheuserthatthesubmissionwassuccessful.
useHttpHandler (Optionalelement)SpecifiesthattheformistobesubmittedtothespecifiedUniformResourceLocator(URL)usingthespecifiedHTTPmethod.
useScriptHandler (Optionalelement)Specifiesthattheformis
![Page 2536: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2536.jpg)
tobesubmittedbyscriptingcodeintheassociatedscriptfile.SubmitcodemustbewrittenintheOnSubmitRequesteventhandlerintheform'sprimaryscriptingfile.
useQueryAdapter (Optionalelement)Specifiesthattheformistobesubmittedtothesamedataadapterasspecifiedinthequeryelement.
webServiceAdapter (Optionalelement)SpecifiesthattheformistobesubmittedtoaWebserviceadapter.
submitAction (Optionalelement)Specifiesthedataadapterusedtosubmittheform.
![Page 2537: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2537.jpg)
RemarksThesubmitelementisanoptionalelementofthexDocumentClasselement.
![Page 2538: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2538.jpg)
ExampleThefollowingisanexampleofthesubmitelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 2539: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2539.jpg)
ShowAll
![Page 2540: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2540.jpg)
submitActionElement(ruleElement)
Definesaformsubmitaction.
![Page 2541: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2541.jpg)
Typexsd:complexType
![Page 2542: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2542.jpg)
ParentElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccurredinthe
form.
![Page 2543: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2543.jpg)
ChildElementsNone.
![Page 2544: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2544.jpg)
Attributes
Attribute Type Required Description PossibleValuesadapter xsf:xdTitle Yes Contains
thenameofthedataadaptertosubmit.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
![Page 2545: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2545.jpg)
Definition
<xsd:elementname="submitAction"><xsd:complexType><xsd:attributename="adapter"type="xsf:xdTitle"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2546: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2546.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2547: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2547.jpg)
ExampleThefollowingisanexampleofthesubmitActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2548: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2548.jpg)
ShowAll
![Page 2549: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2549.jpg)
submitActionElement(submitElement)
Specifiesthedataadapterusedtosubmittheform.
![Page 2550: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2550.jpg)
Typexsd:complexType
![Page 2551: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2551.jpg)
ParentElements
Element Descriptionsubmit Containsinformationaboutthesubmissionfunctionalityofa
form.
![Page 2552: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2552.jpg)
ChildElementsNone.
![Page 2553: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2553.jpg)
Attributes
Attribute Type Required Description PossibleValuesadapter xsf:xdTitle Yes Thename
ofthedataadapterusedforsubmittingtheform.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
![Page 2554: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2554.jpg)
Definition
<xsd:elementname="submitAction"minOccurs="0"><xsd:complexType><xsd:attributename="adapter"type="xsf:xdTitle"use="required"></xsd:attribute></xsd:complexType><xsd:keyrefname="submitAdapter_name_keyref"refer="xsf:adapter_name_key"><xsd:selectorxpath="."/><xsd:fieldxpath="@adapter"/></xsd:keyref></xsd:element>
![Page 2555: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2555.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2556: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2556.jpg)
ExampleThefollowingisanexampleofthesubmitActionelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="keepOpen"showStatusDialog="yes"><xsf:submitActionadapter="dav"/></xsf:submit>
<xsf:dataAdapters><xsf:davAdaptername="dav"folderUrl="http://some_server/some_doc_lib"getFileNameFromData="/my:myFields/my:field1"overwriteAllowed="no"></xsf:davAdapter></xsf:dataAdapters>
![Page 2557: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2557.jpg)
successMessageElement
Specifiesthetexttobeusedtonotifytheuserthatthesubmissionwassuccessful.
![Page 2558: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2558.jpg)
Type
xsd:string
![Page 2559: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2559.jpg)
RemarksThesuccessMessageelementisanoptionalelementofthesubmitelement.
ThesuccessMessageelementdoesnotcontainanyattributesorchildelements.
ThesuccessMessageelementisignorediftheshowStatusDialogattributeofthesubmitelementissetto"no".
![Page 2560: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2560.jpg)
ExampleThefollowingisanexampleofthesuccessMessageelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage<xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 2561: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2561.jpg)
ShowAll
![Page 2562: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2562.jpg)
switchViewActionElement
Definesaviewswitchaction.
![Page 2563: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2563.jpg)
Typexsd:complexType
![Page 2564: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2564.jpg)
ParentElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccurredinthe
form.
![Page 2565: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2565.jpg)
ChildElementsNone.
![Page 2566: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2566.jpg)
Attributes
Attribute Type Required Description PossibleValuesview xsf:xdViewName Yes Contains
thenameoftheview.
minLength=1
maxLength=255
pattern=([^\p{Z}\p{C}/\\#&"><])(([^\p{Zl}\p{Zp}\p{C}/\\#&"><])*([^\p{Z}\p{C}/\\#&"><]))?
![Page 2567: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2567.jpg)
Definition
<xsd:elementname="switchViewAction"><xsd:complexType> <xsd:attributename="view"type="xsf:xdViewName"use="required"/></xsd:complexType><xsd:keyrefname="switchViewAction_view_keyref"refer="xsf:view_name_key"> <xsd:selectorxpath="."/> <xsd:fieldxpath="@view"/></xsd:keyref></xsd:element>
![Page 2568: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2568.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2569: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2569.jpg)
ExampleThefollowingisanexampleoftheswitchViewActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2570: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2570.jpg)
ShowAll
![Page 2571: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2571.jpg)
taskElement
ContainstheMicrosoftBizTalkServer2004HumanWorkflowServices(HWS)taskinformationenabledfortheform.
![Page 2572: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2572.jpg)
Typexsd:complexType
![Page 2573: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2573.jpg)
ChildElementsNone.
![Page 2574: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2574.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
name xsf:xdHWSname Yes Theuniquenameofthetask,asspecifiedintheHWSWorkflowdesigner;usedfortheonClickeventofthebuttonintheHWSWorkflowtaskpane.
Cannotcontainthefollowingcharacters:
\/"[]:<>+=;,?*@
taskTypeID xsd:string Yes TheuniqueIDforthetask.
string
caption xsf:xdHWSCaption No ThelabelforthecorrespondingbuttonintheHWSWorkflowtaskpanetostartorrespondtoatask.
minLength=1
maxLength=255
![Page 2575: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2575.jpg)
Definition
<xsd:elementname="task"> <xsd:complexType> <xsd:attributename="name"type="xsf:xdHWSname"use="required"/> <xsd:attributename="taskTypeID"type="xsd:string"use="required"/> <xsd:attributename="caption"type="xsf:xdHWSCaption"use="optional"/> </xsd:complexType> </xsd:element>
![Page 2576: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2576.jpg)
RemarksThetaskelementisanoptionalelementoftheallowedTaskselement.
EachtaskenabledfortheformmusthaveacorrespondingtaskelementintheallowedTaskssectionoftheformdefinitionfile(.xsf).
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2577: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2577.jpg)
ExampleThefollowingisanexampleofthetaskelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"replaceWith="/a:some/b:thing"dataObject="Aux1"/>
![Page 2578: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2578.jpg)
</xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2579: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2579.jpg)
ShowAll
![Page 2580: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2580.jpg)
taskpaneElement
DefinesacustomtaskpanetobeusedinaMicrosoftOfficeInfoPath2003form.
![Page 2581: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2581.jpg)
Type
xsd:complexType
![Page 2582: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2582.jpg)
Structure
Name Descriptioncaption (Requiredattribute)Definesthecaptionusedinthetaskpane
drop-downlistbox.href (Requiredattribute)SpecifiestherelativeorabsoluteUniform
ResourceLocator(URL)toan.htmlfile.
![Page 2583: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2583.jpg)
RemarksThetaskpaneelementisanoptionalelementofthexDocumentClasselement.
Thetaskpaneisamodelesspanelthatappearstotherightofthemainformarea.Taskpanescontaincommandsspecifictocompletingtasksthatarerelatedtoasingleform.InfoPathsupportstheuseofasinglecustomtaskpane.
Togetmultipletaskpanebehavior,youcanincludemultiple.htmfilesintheformtemplateandusetheNavigatemethodoftheHTMLTaskPaneobjectintheMicrosoftOfficeInfoPath2003objectmodeltonavigatetodifferent.htmfiles.
![Page 2584: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2584.jpg)
ExampleThefollowingisanexampleofthetaskpaneelement:
<xsf:xDocumentClass>...<xsf:taskpanecaption="DesignIssuesHelp"href="DesignIssuesHelp.htm"/>...</xsf:xDocumentClass>
![Page 2585: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2585.jpg)
ShowAll
![Page 2586: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2586.jpg)
toElement
Containstherecipientinformationforthetolineofthee-mailmessagewhentheformissubmittedusingtheemailAdapterelement.
![Page 2587: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2587.jpg)
Typexsd:complexType
![Page 2588: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2588.jpg)
ParentElements
Element DescriptionemailAdapter Parentelementthatcontainstheinformationneededto
submitanInfoPathformasanattachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 2589: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2589.jpg)
ChildElementsNone.
![Page 2590: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2590.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
value xsd:string Yes Containsthevalueofthetoelement.
string
valueType xsf:xdExpressionLiteralNo SpecifieswhetherthevalueattributeisinterpretedasanXPathexpressionorasaliteralstring.
expression
literal
![Page 2591: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2591.jpg)
Definition
<xsd:elementname="to"minOccurs="0"><xsd:complexType><xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2592: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2592.jpg)
RemarksMultipleaddressesonthetolinemustbeseparatedbysemicolons.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2593: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2593.jpg)
ExampleThefollowingisanexampleofthetoelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 2594: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2594.jpg)
toolbarElement
Containsinformationaboutthetoolbarsusedintheview.
![Page 2595: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2595.jpg)
Type
xsd:complexType
![Page 2596: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2596.jpg)
Structure
Name Descriptionbutton (Optionalelement)Definesabuttonthathasanassociated
action.caption (Requiredattribute)Usedasthetitleofthetoolbar,whenthe
toolbarisnotdockedtotheuserinterface.name (Requiredattribute)Identifiesthecorrespondingtoolbarwithin
differentviews.Mustbeuniquewithinagivenview.menu (Optionalelement)Containsinformationaboutthemenusused
withinthetoolbar.
![Page 2597: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2597.jpg)
RemarksThetoolbarelementisanoptionalelementoftheviewelement.Therecanbemultipletoolbarsdeclaredforaview,andeachtoolbarcanhavemultiplemenuorbuttonelements.
![Page 2598: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2598.jpg)
ExampleThefollowingisanexampleofthetoolbarelement:
<xsf:toolbarcaption="CDCollectionToolbar"name="CDCollectionToolbar"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="NewCD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="NewTrack"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="NewLabel"showIf="always"></xsf:button><xsf:menucaption="Remove"><xsf:buttonaction="xCollection::remove"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::remove"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::remove"xmlToEdit="Label_16"caption="Label"showIf="always"></xsf:button></xsf:menu></xsf:toolbar>
![Page 2599: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2599.jpg)
ShowAll
![Page 2600: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2600.jpg)
unboundControlsElement
Definestheunboundbuttoncontrolsthatareusedintheview.
![Page 2601: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2601.jpg)
Type
xsd:complexType
![Page 2602: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2602.jpg)
Structure
Name Descriptionbutton (Optionalelement)Definesabuttonthathasanassociated
action.
![Page 2603: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2603.jpg)
RemarksTheunboundControlselementisanoptionalelementoftheviewelement.
UnboundcontrolsinMicrosoftOfficeInfoPath2003arethebuttonsthataredraggedfromtheControlstaskpaneontotheviewindesignmode.Thenameassignedtothebuttoncontrolisusedinthenameattributeofthebuttonelement,andwhenauserclicksonthebutton,thescriptingcodeassociatedwiththebuttonwillbecalled.
![Page 2604: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2604.jpg)
ExampleThefollowingisanexampleoftheunboundControlselement:
<xsf:view><xsf:unboundControls><xsf:buttonname="MyButton"></xsf:button></xsf:unboundControls>...</xsf:view>
Thefollowingscripthandler,includedinthescriptfile,willbecalledwhenthebuttonisclicked:
functionMyButton::OnClick(){//Writeyourcodehere.}
![Page 2605: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2605.jpg)
ShowAll
![Page 2606: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2606.jpg)
useHttpHandlerElement
SpecifiesthattheformistobesubmittedtothespecifiedUniformResourceLocator(URL)usingthespecifiedHTTPmethod.
![Page 2607: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2607.jpg)
Type
xsd:complexType
![Page 2608: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2608.jpg)
Structure
Name Descriptionhref (Requiredattribute)SpecifiestheURLtowhichtheformshould
besubmitted.method (Requiredattribute)SpecifiestheHTTPmethodtouseforthe
submitoperation.
![Page 2609: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2609.jpg)
RemarksTheuseHttpHandlerelementisanoptionalelementofthesubmitelement.
![Page 2610: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2610.jpg)
ExampleThefollowingisanexampleoftheuseHttpHandlerelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useHttpHandler>href="http://MyServer/InfoPathScripts/MyScript.asp"method="POST"</xsf:useHttpHandler><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 2611: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2611.jpg)
ShowAll
![Page 2612: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2612.jpg)
useQueryAdapterElement
Specifiesthattheformistobesubmittedtothesamedataadapterasspecifiedinthequeryelement.
![Page 2613: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2613.jpg)
Type
xsd:complexType
![Page 2614: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2614.jpg)
RemarksTheuseQueryAdapterelementisanoptionalelementofthesubmitelement.
ThequeryelementusedistheonethatisthechildelementofthexDocumentClasselement,notthequeryelementthatisachildofthedataObjectelement.
TheuseQueryAdapterelementdoesnotcontainanyattributesorchildelements.
![Page 2615: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2615.jpg)
ExampleThefollowingisanexampleoftheuseQueryAdapterelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useQueryAdapter/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 2616: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2616.jpg)
userNameElement
Associatesauserwithaparticularrole.
![Page 2617: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2617.jpg)
Typexsd:complexType
![Page 2618: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2618.jpg)
ChildElementsNone.
![Page 2619: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2619.jpg)
Attributes
Attribute Type Required DescriptionPossibleValues
name xsd:string Yes Specifiesthenameofauserforinclusioninthemembershiplistofarole.
string
memberOf xsd:string Yes Specifiestheroletobeassociatedwiththeuser.
string
![Page 2620: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2620.jpg)
Definition
<xsd:elementname="userName"><xsd:complexType><xsd:attributename="name"type="xsd:string"use="required"></xsd:attribute><xsd:attributename="memberOf"type="xsd:string"use="required"></xsd:attribute></xsd:complexType></xsd:element>
![Page 2621: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2621.jpg)
RemarksInfoPathrequiresthatauserbeassociatedwithonlyoneroleatatime.
IfausercreatesanewInfoPathdocumentfromaformtemplate,thatuserisassignedtotherolespecifiedintheoptionalinitiatorattributeoftheroleselement.Ifnorolehasbeendesignatedastheinitiatorrole,InfoPathassignstheusertotherolespecifiedinthememberOfattributeofthefirstentrythatcorrespondstotheuserinthemembershiplistoftheroleselement.Anentryinthemembershiplistcorrespondstoauserifanyoneofthefollowingconditionsistrue:
ThenameoftheusermatchesthevalueofthenameattributeofauserNameelementinthemembershiplist.
Theuserisincludedinagroupidentifiedbyagroupelementinthemembershiplist.
ThenameoftheusermatchesanamereturnedbyagetUserNameFromDataelementinthemembershiplist.
Ifnoentryfortheuserisfoundinthemembershiplist,InfoPathassociatestheuserwiththerolespecifiedinthedefaultattributeoftheroleselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2622: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2622.jpg)
ExampleThefollowingisanexampleoftheuserNameelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="Domain\username1"memberOf="A"/><xsf:userNamename="Domain\username2"memberOf="B"/><xsf:groupname="Domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2623: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2623.jpg)
ShowAll
![Page 2624: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2624.jpg)
useScriptHandlerElement
Specifiesthatthesubmit,save,orversionupgradeoperationwillbehandledusingformcode.
![Page 2625: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2625.jpg)
Type
xsd:element
![Page 2626: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2626.jpg)
RemarksTheuseScriptHandlerelementisanoptionalelementofthesubmitelement,thesaveelementandthedocumentVersionUpgradeelement.TheuseScriptHandlerelementcontainsnoattributesorchildelements.
Whenusedwiththesubmitelement,itdeclaresthattheformdatawillbeprocessedbyscriptcodeintheassociatedformfile.ThesubmitformcodemustbewrittenintheOnSubmitRequesteventhandlerintheform'sprimaryscriptfile.
Whenusedwiththesaveelement,itdeclaresthatthesaveoperationoftheformdatawillbeprocessedbyformcodeintheassociatedformcodefile.ThecodemustbewrittenintheOnSaveRequesteventhandlerintheform'sprimaryscriptingfile.
WhenusedwiththedocumentVersionUpgradeelement,itdeclaresthattheupgradeofolderforms(createdwithanolderversionoftheformtemplate)willbeprocessedbyformcodeintheassociatedscriptingfile.TheformupgradecodemustbewrittenintheOnVersionUpgradeeventhandlerintheform'sprimaryscriptfile.
![Page 2627: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2627.jpg)
ExampleThefollowingisanexampleoftheuseScriptHandlerelement:
<xsf:documentVersionUpgrade><xsf:useScriptHandler/></xsf:documentVersionUpgrade>
![Page 2628: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2628.jpg)
ShowAll
![Page 2629: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2629.jpg)
useTransformElement
SpecifiesthattheupgradewillbehandledbyanXSLTransformation(XSLT)suppliedbythenewerversionoftheformtemplate.
![Page 2630: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2630.jpg)
Type
xsd:complexType
![Page 2631: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2631.jpg)
Structure
Name DescriptionmaxToVersionUpgrade (Optionalattribute)Inclusivevalueforthelatest
formthatneedstobeupgraded.minVersionToUpgrade (Requiredattribute)Inclusivevalueforthe
oldestformthatcanbeupgraded.transform (Requiredattribute)SpecifiestheXSLTfile
namerelativetotheformtemplate.
![Page 2632: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2632.jpg)
RemarksTheuseTransformelementisanoptionalelementofthedocumentVersionUpgradeelement.
Whenauserfillsoutaform,MicrosoftOfficeInfoPath2003automaticallyrunsthespecifiedXSLTontheform'sunderlyingXMLdocumentandusestheoutputastheXMLdatatobeedited,iftheversionoftheformisgreaterthanorequaltotheminVersionToUpgradeattributeandtheversionislessthanorequaltothemaxVersionToUpgradeattribute.
![Page 2633: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2633.jpg)
ExampleThefollowingisanexampleoftheuseTransformelement:
<xsf:documentVersionUpgrade><xsf:useTransformtransform="upgrade.xsl"minVersionToUpgrade="0.0.0.0"maxVersionToUpgrade="1.0.0.5"/></xsf:documentVersionUpgrade>
![Page 2634: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2634.jpg)
ShowAll
![Page 2635: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2635.jpg)
viewElement
ContainsinformationaboutaMicrosoftOfficeInfoPath2003view.
![Page 2636: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2636.jpg)
Type
xsd:complexType
![Page 2637: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2637.jpg)
Structure
Name Descriptioncaption (Optionalattribute)Providesthedisplaycaptionfor
theviewwithintheviewlist.designMode (Optionalattribute)Determineswhethertheviewcan
beopenedindesignmode.editing (Optionalelement)Containsinformationaboutthe
editingcomponentsusedintheview.mainpane (Requiredelement)Determineswhatisdisplayedin
themainpane(formarea).menu (Optionalelement)Containsinformationaboutthe
custommenususedintheview.menuArea (Optionalelement)Containsinformationaboutthe
custommenuitemsthatcanbeaddedtotheInfoPathbuilt-inmenus.
name (Requiredattribute)Identifiestheviewforobjectmodelcallswhenswitchingviews,andforspecifyingthedefaultview.
printSettings (Optionalelement)Specifiestheprintersettingsusedwhenprintingtheview.
printView (Optionalattribute)Specifiesthenameofanotherviewtouseforprintingthisview.
toolbar (Optionalelement)Containsinformationaboutthetoolbarsusedintheview.
unboundControls (Optionalelement)Definestheunboundbuttoncontrolsthatareusedintheview.
showMenuItem (Optionalelement)ProvidesthedisplayofthemenuitemintheViewmenuwithacheckmarkwhenenabled.
![Page 2638: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2638.jpg)
RemarksTheviewelementisarequiredelementoftheviewselement.
![Page 2639: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2639.jpg)
ExampleThefollowingisanexampleoftheviewelement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 2640: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2640.jpg)
viewsElement
DefinesalloftheviewsthathavebeenimplementedinaMicrosoftOfficeInfoPath2003form.
![Page 2641: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2641.jpg)
Type
xsd:complexType
![Page 2642: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2642.jpg)
Structure
Name Descriptiondefault (Optionalattribute)Specifiesthenameoftheviewchosentobe
thedefaultview.view (Requiredelement)ContainsinformationaboutanInfoPathview.
![Page 2643: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2643.jpg)
RemarksTheviewselementisarequiredelementofthexDocumentClasselement.
![Page 2644: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2644.jpg)
ExampleThefollowingisanexampleoftheviewselement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 2645: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2645.jpg)
ShowAll
![Page 2646: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2646.jpg)
webServiceAdapterElement
DefinesaWebservicedataadapterthatretrievesdatafromaWebserviceforthespecifieddataobject.
![Page 2647: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2647.jpg)
Type
xsd:complexType
![Page 2648: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2648.jpg)
Structure
Name DescriptionqueryAllowed (Optionalattribute)Specifieswhetherdatacanbe
retrievedfromthedatasourcethroughthequerymethodoftheadapterobject.
submitAllowed (Optionalattribute)Specifieswhetherdatacanbesubmittedtothedatasourcethroughthesubmitmethodoftheadapterobject.
wsdUrl (Requiredattribute)ContainstheUniformResourceLocator(URL)oftheWebServicesDescriptionLanguage(WSDL)filethatdescribestheWebservicespecification.
operation (Requiredelement)Definestheoperation(method)oftheWebservicetobeusedforretrievingandsubmittingdata.
useDataSet (Optionalattribute)SpecifieswhethertheadapterwillsupportanADO.NetDataSet.Defaultis"no".
![Page 2649: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2649.jpg)
RemarksThewebServiceAdapterelementisanoptionalelementofthequeryelement.
ThewebServiceAdapterelementcanalsobeusedtodefineaWebserviceadapterusedtosubmitthemainorsecondaryformdata.
![Page 2650: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2650.jpg)
ExampleThefollowingisanexampleofthewebServiceAdapterelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"useDataSet="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 2651: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2651.jpg)
ShowAll
![Page 2652: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2652.jpg)
xDocumentClassElement
Therootelementoftheformdefinition(.xsf)filefile.Containsallotherelementsandattributesofthe.xsffile.
![Page 2653: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2653.jpg)
Type
xsd:complexType
![Page 2654: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2654.jpg)
Structure
Name Descriptionauthor (Optionalattribute)Identifiestheauthorof
theform.dataFormSolution (Optionalattribute)Identifiestheformasa
databaseform.description (Optionalattribute)Abriefdescriptionofthe
form.name (Optionalattribute)Providesaunique,
UniformResourceName(URN)–basednamefortheformthatthe.xsffiledefines.
productVersion (Optionalattribute)IdentifiestheversionnumberofInfoPathwithwhichtheformhasbeencreatedorforwhichaparticularformisintended.
publishUrl (Optionalattribute)Identifieswheretheformwaspublishedandwheretheformtemplateshoulddownloadupdatesfrom.
requireFullTrust (Optionalattribute)Allowstheformtorunasafullytrustedformwhenaformtemplateisregisteredorsignedwithacertificate.
solutionFormatVersion (Requiredattribute)Identifiestheversionnumberthatrepresentstheformatofthe.xsffile.
solutionVersion (Optionalattribute)Identifiestheversionnumberoftheform.
xmlns (Requiredattribute)Definesthexsfnamespace.
applicationParameters (Optionalelement)Containsform-specificpropertiesthatdescribehowaformshouldbeusedinInfoPathdesignmode.
customValidation (Optionalelement)Definesrule-basedcustomvalidationontopofallvalidation
![Page 2655: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2655.jpg)
enforcedthroughtheXMLSchema.dataObjects (Optionalelement)Definesallsecondary
dataobjectsusedinanInfoPathform.documentSchemas (Optionalelement)DefinestheXML
SchemasthattheInfoPathformisdesignedtohandle.
documentSignatures (Optionalelement)DefinesthelocationofthedigitalsignatureXMLDocumentObjectModel(DOM)nodewithintheform'sunderlyingXMLdocument.
documentVersionUpgrade (Optionalelement)Defineshowformscreatedwithanolderversionoftheformtemplatecanbeupgradedtothelatestversionoftheformtemplate.
domEventHandlers (Optionalelement)Containspointerstovariousscript-basedeventhandlersthatreacttochangesinXMLDOMnodesofaform'sunderlyingXMLdocumentwhiletheformisbeingfilledout.
extensions (Optionalelement)IncludesminorupgradestotheInfoPath.xsffilethatcanbeusedbyfuturereleasesofInfoPathorbyspecificforms.
fileNew (Optionalelement)Providesareferencetoan.xmlfilecontainingsampledata,tobeloadedwhenauserchoosestocreateanewformbasedontheformtemplate.
importParameters (Optionalelement)Containsalltheparametersthatdefinehowtheimport(merge)formsfeatureworksfortheform.
listProperties (Optionalelement)Identifiesthepropertiesthatshouldbeonalistviewofallformsbelongingtoaformtemplate.
package (Requiredelement)ContainsinformationaboutallofthefilesusedinanInfoPathform.
![Page 2656: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2656.jpg)
query (Optionalelement)Associatesadataadapterwiththeform'sunderlyingXMLdocument.
schemaErrorMessages (Optionalelement)ContainscustomerrormessagesusedtooverrideXMLSchemadatatypeerrors.
scripts (Optionalelement)Definesthesourceofallbusinesslogicscriptsusedatthedocumentlevelintheform.
submit (Optionalelement)Containsinformationaboutthesubmissionfunctionalityofaform.
taskpane (Optionalelement)DefinesacustomtaskpanetobeusedinanInfoPathform.
views (Requiredelement)DefinesalloftheviewsthathavebeenimplementedinanInfoPathform.
trustLevel (Optionalattribute)Specifiesthetrustlevelofaform.
trustSetting (Optionalattribute)Specifiesthetrustsettingofaform.
![Page 2657: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2657.jpg)
RemarksThexDocumentClasselementisarequiredelementandmustbepresentintheInfoPath.xsffile.
TheattributesthatarecontainedwithinthexDocumentClasselementarecollectivelycalledtheglobalmetadatasection.Theglobalmetadatasectionofthe.xsffileisarequiredsectionthatcontainsglobalinformationabouttheInfoPathform.
![Page 2658: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2658.jpg)
ExampleThefollowingisanexampleofthexDocumentClasselement:
xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:schemas-microsoft-com:myTravelReport"author="FrankMiller"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">dataFormSolution="yes"requireFullTrust="yes"trustLevel="restricted"trustSetting="manual"publishUrl="http://www.contoso.com/InfoPathTemplates/MyTemplate.xsn">...</xsf:xDocumentClass
![Page 2659: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2659.jpg)
ShowAll
![Page 2660: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2660.jpg)
xmlFileAdapterElement
Definesan.xmlfiledataadapterthatretrievesdatafroman.xmlfileforthespecifieddataobject.
![Page 2661: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2661.jpg)
Type
xsd:complexType
![Page 2662: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2662.jpg)
Structure
Name DescriptionfileUrl (Requiredattribute)ContainstheUniformResourceLocator
(URL)ofthe.xmlfile.name (Optionalattribute)ContainsthenameofthexmlFileAdapter
element.
![Page 2663: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2663.jpg)
RemarksThexmlFileAdapterelementisanoptionalelementofthequeryelement.
![Page 2664: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2664.jpg)
ExampleThefollowingisanexampleofthexmlFileAdapterelement:
<xsf:query><xsf:xmlFileAdapterfileUrl="currencies.xml"/></xsf:query>
![Page 2665: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2665.jpg)
ShowAll
![Page 2666: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2666.jpg)
xmlToEditElement
Specifiesaninstanceofaneditingcomponent.
![Page 2667: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2667.jpg)
Type
xsd:complexType
![Page 2668: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2668.jpg)
Structure
Name Descriptioncontainer (Optionalattribute)SpecifiesanXPathexpressionthat
determinesthecontextinwhichthecontrolwillbeselectableanditsactionsenabled.
editWith (Optionalelement)Definesaninstanceofaneditingcomponent,andprovidesthecorrespondingparameterstodetermineitsexactbehavior.
item (Requiredattribute)SpecifiesanXPathexpressionthatdeterminestheXMLDocumentObjectModel(DOM)nodestobeeditedusingtheeditingcomponentdefinedintheeditWithelement.
name (Requiredattribute)UsedinthexmlToEditattributeofthebuttonelementtoassociateactionsoftheassociatededitingcomponentwithbuttonsdefinedinmenusandtoolbars.
viewContext (Optionalattribute)SpecifiesastringthatidentifiesanHTMLelementintheview.
![Page 2669: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2669.jpg)
RemarksThexmlToEditelementisanoptionalelementoftheeditingelement.
xmlToEditelementsareusedtodefinetheeditingcomponentsthatcanbeusedinaform.ThexmlToEditelementscancontainmultipleeditWithelementsthatspecifytheeditingcomponentsthatwillbeusedtoeditvarioustypesofXMLDOMnodes.
![Page 2670: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2670.jpg)
ExampleThefollowingisanexampleofthexmlToEditelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2671: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2671.jpg)
actionAttribute
Specifiesanactionofaneditingcomponent,usingthesyntax"NameOfEditingComponent::NameOfAction".
![Page 2672: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2672.jpg)
Type
xsd:NMTOKEN
![Page 2673: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2673.jpg)
RemarksTheactionattributeisanoptionalattributeofthebuttonelement,butisrequiredforbuttonsusedwitheditingcomponents.
Thefollowingaretheeditingactionsthatmaybeusedasthevalueoftheactionattribute.
Name DescriptionxCollection::insert Insertsanitem.xCollection::insertBefore Insertsanitembeforethecurrentselection.xCollection::insertAfter Insertsanitemafterthecurrentselection.xCollection::remove Removesanitem.xCollection::removeAll Removesallitems.xOptional::insert Insertsanoptionalitem.xOptional::remove Removesanoptionalitem.xReplace::replace Replacesanexistingitem.xFileAttachment::attach Opensadialogboxtobrowseforfilestoattach
toaform.xFileAttachment::open Opensafileattachedtoaform.xFileAttachment::saveAs Openstheadialogboxtobrowseforalocation
whereafileistobesaved.xFileAttachment::remove Removesthefilefromtheform.
![Page 2674: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2674.jpg)
ExampleThefollowingisanexampleoftheactionattributeasitisusedinthebuttonelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 2675: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2675.jpg)
ShowAll
![Page 2676: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2676.jpg)
actionTypeIDAttribute
ContainsauniqueIDfortheactionelement.
![Page 2677: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2677.jpg)
Typexsd:string
![Page 2678: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2678.jpg)
ParentElements
Element Descriptionaction Containstheinformationforanaction.
![Page 2679: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2679.jpg)
Definition
<xsd:attributename="actionTypeID"type="xsd:string"use="required"></xsd:attribute>
![Page 2680: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2680.jpg)
RemarksTheactionTypeIDattributeisanattributeoftheactionelement.
ThevalueoftheactionTypeIDattributemustbeuniqueintheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2681: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2681.jpg)
ExampleThefollowingisanexampleoftheactionTypeIDattributeasitisusedintheactionelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 2682: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2682.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2683: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2683.jpg)
adapterAttribute(queryActionElement)
ContainstheadapternameforthedataconnectionusedforthequeryActionelement.
![Page 2684: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2684.jpg)
Typexsd:string
![Page 2685: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2685.jpg)
ParentElements
Element DescriptionqueryAction Definesadataconnectionqueryaction.
![Page 2686: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2686.jpg)
Definition
<xsd:attributename="adapter"type="xsd:string"use="required"></xsd:attribute>
![Page 2687: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2687.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2688: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2688.jpg)
ExampleThefollowingisanexampleoftheadapterattributeasitisusedinthequeryActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2689: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2689.jpg)
ShowAll
![Page 2690: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2690.jpg)
adapterAttribute(submitActionElement)
Containsthenameofthedataadaptertosubmit.
![Page 2691: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2691.jpg)
Typexsf:xdTitle
![Page 2692: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2692.jpg)
ParentElements
Element DescriptionsubmitActionDefinesasubmitactionforaform.
![Page 2693: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2693.jpg)
Definition
<xsd:attributename="adapter"type="xsf:xdTitle"use="required"></xsd:attribute>
![Page 2694: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2694.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2695: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2695.jpg)
ExampleThefollowingisanexampleoftheadapterattributeasitisusedinthesubmitActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2696: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2696.jpg)
ShowAll
![Page 2697: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2697.jpg)
adapterAttribute(submitActionElement)
Containsthenameofthedataadapterusedforsubmittingtheform.
![Page 2698: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2698.jpg)
Typexsd:complexType
![Page 2699: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2699.jpg)
ParentElements
Element DescriptionsubmitAction Specifiesthedataadapterusedtosubmittheform.
![Page 2700: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2700.jpg)
Definition
<xsd:elementname="submitAction"minOccurs="0"><xsd:complexType><xsd:attributename="adapter"type="xsf:xdTitle"use="required"></xsd:attribute></xsd:complexType><xsd:keyrefname="submitAdapter_name_keyref"refer="xsf:adapter_name_key"><xsd:selectorxpath="."/><xsd:fieldxpath="@adapter"/></xsd:keyref></xsd:element>
![Page 2701: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2701.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2702: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2702.jpg)
ExampleThefollowingisanexampleoftheadapterattributeasitisusedinthesubmitActionelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="keepOpen"showStatusDialog="yes"><xsf:submitActionadapter="dav"/></xsf:submit><xsf:dataAdapters><xsf:davAdaptername="dav"folderUrl="http://some_server/some_doc_lib"getFileNameFromData="/my:myFields/my:field1"overwriteAllowed="no"></xsf:davAdapter></xsf:dataAdapters>
![Page 2703: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2703.jpg)
ShowAll
![Page 2704: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2704.jpg)
aggregationAttribute
SpecifieshowthenodesreturnedfromanXPathexpressioninthenodeattributeshouldbeaggregatedtoobtainasinglevalueforthedocument.
![Page 2705: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2705.jpg)
Type
xsd:simpleType
![Page 2706: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2706.jpg)
RemarksTheaggregationattributeisanoptionalattributeofthefieldelement.
Theaggregationattributecaneitherbeanaggregationactionoranindicationoftheparticularelementinthecollection.Itusesthefollowingaggregationactions:sum,count,average,min,max,first,last,merge,andplaintext.
![Page 2707: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2707.jpg)
ExampleThefollowingisanexampleoftheaggregationattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 2708: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2708.jpg)
ShowAll
![Page 2709: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2709.jpg)
allowCustomizationAttribute
IdentifieswhethertheMicrosoftOfficeInfoPath2003formcanbemodifiedorcustomized.
![Page 2710: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2710.jpg)
Type
xsf:xdYesNo
![Page 2711: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2711.jpg)
RemarksTheallowCustomizationattributeisanoptionalattributeofthesolutionPropertieselement.
IftheallowCustomizationattributeissetto"no",anerrorisgeneratedwhenausertriestomodifytheformtemplateafteropeningitinInfoPath.Allowedvaluesare"yes"and"no".Thedefaultvalueis"yes".
![Page 2712: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2712.jpg)
ExampleThefollowingisanexampleoftheallowCustomizationattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 2713: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2713.jpg)
ShowAll
![Page 2714: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2714.jpg)
allowedFileTypesattribute
Specifiesthefilenameextensionsoffilesthatcanbeattachedtotheform.
![Page 2715: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2715.jpg)
Typexsd:string
![Page 2716: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2716.jpg)
ParentElements
Element DescriptioneditWith Specifiesaninstanceofaneditingcomponent,andprovides
thecorrespondingparameterstodetermineitsexactbehavior.
![Page 2717: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2717.jpg)
Definition
<xsd:attributename="allowedFileTypes"type="xsd:string"use="optional"></xsd:attribute>
![Page 2718: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2718.jpg)
RemarksThefileextensionslistedintheallowedFileTypesattributevalueareseparatedbycommas.
![Page 2719: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2719.jpg)
Example
<xsf:xmlToEditname="some_name"item="/my:myFields/my:field1"><xsf:editWithallowedFileTypes="doc,xls"component="xFileAttachment"/></xsf:xmlToEdit><menuAreaname="msoStructuralEditingContextMenu"><buttonaction="xFileAttachment::attach"xmlToEdit="some_name"caption="Attach..."showIf="immediate"/><buttonaction="xFileAttachment::open"xmlToEdit="some_name"caption="Open"showIf="immediate"/><buttonaction="xFileAttachment::saveAs"xmlToEdit="some_name"caption="SaveAs..."showIf="immediate"/><buttonaction="xFileAttachment::remove"xmlToEdit="some_name"caption="Deletefile"showIf="immediate"/></menuArea>
![Page 2720: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2720.jpg)
applicationAttribute
IdentifiesthenameoftheapplicationusedtodesigntheMicrosoftOfficeInfoPath2003form.
![Page 2721: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2721.jpg)
Type
xsd:string
![Page 2722: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2722.jpg)
RemarksTheapplicationattributeisarequiredattributeoftheapplicationParameterselement.
Theonlyvaluesupportedis"InfoPathDesignMode".
![Page 2723: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2723.jpg)
ExampleThefollowingisanexampleoftheapplicationattributeasitisusedintheapplicationParameterselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 2724: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2724.jpg)
attributeAttribute
Specifiesthenameoftheattributetobeinserted.
![Page 2725: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2725.jpg)
Type
xsd:string
![Page 2726: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2726.jpg)
RemarksTheattributeattributeisarequiredattributeoftheattributeDataelement.
![Page 2727: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2727.jpg)
ExampleThefollowingisanexampleoftheattributeattributeasitisusedintheattributeDataelement:
<xsf:editWithcomponent="xOptional"><xsf:fragmentToInsert><xsf:chooseFragmentparent="report"><xsf:attributeDataattribute="author"value="authorname"/></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith>
![Page 2728: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2728.jpg)
authorAttribute
Identifiestheauthoroftheform.
![Page 2729: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2729.jpg)
Type
xsd:string
![Page 2730: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2730.jpg)
RemarksTheauthorattributeisanoptionalattributeofthexDocumentClasselement.
![Page 2731: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2731.jpg)
ExampleThefollowingisanexampleoftheauthorattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 2732: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2732.jpg)
autoCompleteAttribute
Switchestheauto-completionoffieldsonoroff.
![Page 2733: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2733.jpg)
Type
xsf:xdYesNo
![Page 2734: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2734.jpg)
RemarksTheautoCompleteattributeisanoptionalattributeoftheeditWithelement.
Valuesinclude"yes"and"no".Thedefaultvalueis"yes".
![Page 2735: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2735.jpg)
ExampleThefollowingisanexampleoftheautoCompleteattributeasitisusedintheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"autoComplete="yes"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2736: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2736.jpg)
ShowAll
![Page 2737: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2737.jpg)
automaticallyCreateNodesAttribute
IdentifieswhetherXMLDocumentObjectModel(DOM)nodeswillbeautomaticallygeneratedwhencontrolsareinsertedintheviewindesignmode.
![Page 2738: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2738.jpg)
Type
xsf:xdYesNo
![Page 2739: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2739.jpg)
RemarksTheautomaticallyCreateNodesattributeisanoptionalattributeofthesolutionPropertieselement.
TheautomaticallyCreateNodesattributecorrespondstotheAutomaticallycreatedatasourcecheckboxatthebottomoftheControlstaskpane.
![Page 2740: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2740.jpg)
ExampleThefollowingisanexampleoftheautomaticallyCreateNodesattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 2741: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2741.jpg)
bottomMarginAttribute
Specifiesthebottommarginwhenprintingaview.
![Page 2742: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2742.jpg)
Type
xsd:string
![Page 2743: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2743.jpg)
RemarksThebottomMarginattributeisanoptionalattributeoftheprintSettingselement.
ThebottomMarginattributemustbegreaterthanorequaltozero.
![Page 2744: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2744.jpg)
ExampleThefollowingisanexampleofthebottomMarginattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 2745: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2745.jpg)
cabFileAttribute
SpecifiesthenameoftheCABfile.
![Page 2746: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2746.jpg)
Typexsd:string
![Page 2747: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2747.jpg)
ParentElements
Element DescriptionallowedControl SpecifiestheActiveXcontrolsthatareallowedtobe
instantiated.
![Page 2748: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2748.jpg)
Definition
<xsd:attributename="cabFile"type="xsd:string"use="optional"></xsd:attribute>
![Page 2749: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2749.jpg)
RemarksThecabFileattributemustrefertoafilewithintheInfoPathpackage.IfthecabFileattributeisnotspecified,thecontrolmustalreadyberegisteredonthelocalcomputerortheformwillnotopen.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2750: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2750.jpg)
ExampleThefollowingisanexampleofthecabFileattributeasitisusedintheallowedControlelement:
<xsf:permissions><xsf:allowedControlcabFile="{84F32C01-78D8-4B93-8ED4-106DA70224C2}.cab”clsid="{84F32C01-78D8-4B93-8ED4-106DA70224C2}"version="1,0,0,1"/><xsf:allowedControlclsid="{F08DF954-8592-11D1-B16A-00C0F0283630}"/></xsf:permissions>
![Page 2751: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2751.jpg)
canInitiateWorkflowAttribute
Specifieswhethertheactionelementcanbeusedtoinitiateorextendanactivityflow.
![Page 2752: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2752.jpg)
Typexsf:xdYesNo
![Page 2753: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2753.jpg)
ParentElements
Element Descriptionaction Containstheinformationforanaction.
![Page 2754: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2754.jpg)
Definition
<xsd:attributename="canInitiateWorkflow"type="xsf:xdYesNo"use="required"></xsd:attribute>
![Page 2755: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2755.jpg)
RemarksThecanInitiateWorkflowattributeisarequiredattributeoftheactionelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2756: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2756.jpg)
ExampleThefollowingisanexampleofthecanInitiateWorkflowattributeasitisusedintheactionelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 2757: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2757.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2758: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2758.jpg)
captionAttribute(actionElement)
SpecifiesalabelforthebuttonintheWorkflowtaskpanecorrespondingtotheactionelement.
![Page 2759: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2759.jpg)
Typexsf:xdHWSCaption
![Page 2760: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2760.jpg)
ParentElements
Element Descriptionaction Containstheinformationforanaction.
![Page 2761: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2761.jpg)
Definition
<xsd:attributename="caption"type="xsf:xdHWSCaption"use="optional"></xsd:attribute>
![Page 2762: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2762.jpg)
RemarksThecaptionattributeisanoptionalattributeoftheactionelement.
Ifacaptionisnotspecified,thevalueofthenameattributewillbeusedasthecaptionforthebuttonintheWorkflowtaskpane.
Thecaptionattributeisalsousedtoextendanactivityflow.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2763: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2763.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedintheactionelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 2764: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2764.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2765: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2765.jpg)
captionAttribute(buttonElement)
Providesthecaptiondisplayedonthebutton.
![Page 2766: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2766.jpg)
Type
xsf:xdTitle
![Page 2767: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2767.jpg)
RemarksThecaptionattributeisanoptionalattributeofthebuttonelement.
![Page 2768: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2768.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedinthebuttonelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 2769: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2769.jpg)
captionAttribute(editWithElement)
SpecifiesanidentifierforalternateformsofXMLdatatobeusedintheeditingcomponent.
![Page 2770: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2770.jpg)
Type
xsf:xdTitle
![Page 2771: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2771.jpg)
RemarksThecaptionattributeisanoptionalattributeoftheeditWithelement.
![Page 2772: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2772.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedintheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"autoComplete="yes"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2773: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2773.jpg)
captionAttribute(initialXmlDocumentElement)
DefinesthetextstringtobeusedasthenameoftheformintheTemplateGalleryandinthemostrecentlyusedlist.
![Page 2774: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2774.jpg)
Type
xsf:xdTitle
![Page 2775: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2775.jpg)
RemarksThecaptionattributeisarequiredattributeoftheinitialXmlDocumentelement.
Ifthisattributeisnotspecified,thenameoftheformisusedasthecaption.Themaximumsizeforthecaptiontextstringis255characters.
![Page 2776: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2776.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedintheinitialXmlDocumentelement:
<xsf:fileNew><xsf:initialXmlDocumentcaption="TravelReport"href="TravelReportTemplate.xml"/></xsf:fileNew>
![Page 2777: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2777.jpg)
captionAttribute(menuElement)
Usedasthecaptionforamenu.
![Page 2778: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2778.jpg)
Type
xsf:xdTitle
![Page 2779: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2779.jpg)
RemarksThecaptionattributeisarequiredattributeofthemenuelement.
Whenusedforamenuthatisnestedwithinaview,thecaptionisthetop-levelmenucaption;whenusedforamenuthatisnestedwithinatoolbar,thecaptionisforthebuttononadrop-downmenu;andwhenusedforamenuthatisnestedinsideanothermenu(cascadingmenu),thecaptionisthesub-menucaption.
![Page 2780: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2780.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedinthemenuelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 2781: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2781.jpg)
ShowAll
![Page 2782: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2782.jpg)
captionAttribute(ruleElement)
ContainsthenameofaruleasitappearsinMicrosoftOfficeInfoPath.
![Page 2783: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2783.jpg)
Typexsd:string
![Page 2784: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2784.jpg)
ParentElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccuredinthe
form.
![Page 2785: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2785.jpg)
Definition
<xsd:attributename="caption"type="xsd:string"use="required"></xsd:attribute>
![Page 2786: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2786.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2787: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2787.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedintheruleelement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 2788: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2788.jpg)
captionAttribute(submitElement)
DefinesthenameofthesubmitbuttonandcorrespondingmenuitemthatwillappearontheFilemenuwhenauserisfillingoutaform.
![Page 2789: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2789.jpg)
Type
xsd:string
![Page 2790: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2790.jpg)
RemarksThecaptionattributeisanoptionalattributeofthesubmitelement.
Thedefaultvalueis"Submit",butanytextstringcanbeused.Ifthecaptionattributeismissingorissettoanemptystring,thedefaultvalueisused.The"&"characterscanbeusedtocreateakeyboardshortcutforthesubmitmenuitem.
![Page 2791: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2791.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedinthesubmitelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 2792: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2792.jpg)
ShowAll
![Page 2793: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2793.jpg)
captionAttribute(taskElement)
SpecifiesalabelforthebuttonintheWorkflowtaskpanecorrespondingtothetaskelement.
![Page 2794: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2794.jpg)
Typexsf:xdHWSCaption
![Page 2795: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2795.jpg)
ParentElements
Element Descriptiontask TheHumanWorkflowServices(HWS)taskinformation
enabledfortheform.
![Page 2796: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2796.jpg)
Definition
<xsd:attributename="caption"type="xsf:xdHWSCaption"use="optional"></xsd:attribute>
![Page 2797: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2797.jpg)
RemarksThecaptionattributeisanoptionalattributeofthetaskelement.
Ifacaptionisnotspecified,thevalueofthenameattributewillbeusedasthecaptionforthebuttonintheWorkflowtaskpane.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2798: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2798.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedinthetaskelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 2799: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2799.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 2800: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2800.jpg)
captionAttribute(taskpaneElement)
Definesthecaptionusedinthetaskpanedrop-downlistbox.
![Page 2801: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2801.jpg)
Type
xsd:string
![Page 2802: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2802.jpg)
RemarksThecaptionattributeisarequiredattributeofthetaskpaneelement.
Ifthecaptionattibuteiscontainsanemptyvalue,thenthedefaultcaptionof"FormTasks"isused.
![Page 2803: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2803.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedinthetaskpaneelement:
<xsf:xDocumentClass>...<xsf:taskpanecaption="MyCustomTaskPane"href="MyCustomTaskPane.htm"/>...</xsf:xDocumentClass>
![Page 2804: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2804.jpg)
captionAttribute(toolbarElement)
Usedasthetitleofthetoolbar,whenthetoolbarisnotdockedtotheuserinterface.
![Page 2805: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2805.jpg)
Type
xsf:xdTitle
![Page 2806: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2806.jpg)
RemarksThecaptionattributeisarequiredattributeofthetoolbarelement.
NoteThecaptionattributeisalsousedforthenameofthetoolbarintheCustomizeCommandsdialogboxforacontrol.
![Page 2807: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2807.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedinthetoolbarelement:
<xsf:toolbarcaption="CDCollectionToolbar"name="CDCollectionToolbar"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="NewCD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="NewTrack"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="NewLabel"showIf="always"></xsf:button><xsf:menucaption="Remove"><xsf:buttonaction="xCollection::remove"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::remove"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::remove"xmlToEdit="Label_16"caption="Label"showIf="always"></xsf:button></xsf:menu></xsf:toolbar>
![Page 2808: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2808.jpg)
captionAttribute(viewElement)
Providesthedisplaycaptionfortheviewwithintheviewlist.
![Page 2809: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2809.jpg)
Type
xsf:xdViewName
![Page 2810: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2810.jpg)
RemarksThecaptionattributeisanoptionalattributeoftheviewelement.
Ifnotspecified,thecaptionoftheviewdefaultstothevalueofthenameattribute.
![Page 2811: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2811.jpg)
ExampleThefollowingisanexampleofthecaptionattributeasitisusedintheviewelement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 2812: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2812.jpg)
clsidAttribute
SpecifiestheCOMclassID(CLSID)ofanActiveXcontrol.
![Page 2813: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2813.jpg)
Typexsd:string
![Page 2814: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2814.jpg)
ParentElements
Element DescriptionallowedControl SpecifiestheActiveXcontrolsthatareallowedtobe
instantiated.
![Page 2815: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2815.jpg)
Definition
<xsd:attributename="clsid"type="xsd:string"use="required"></xsd:attribute>
![Page 2816: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2816.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
WhentheviewcontainsanOBJECTtag,thecontrolwillbeinstantiatedonlyiftheCLSIDislistedasanallowedControlelementinthepermissionselement.IfanActiveXcontrolwiththisCLSIDisnotpresentonthesystemandcan'tbeinstalled,theformwillnotopen.
![Page 2817: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2817.jpg)
ExampleThefollowingisanexampleoftheclsidattributeasitisusedintheallowedControlelement:
<xsf:permissions><xsf:allowedControlcabFile="{84F32C01-78D8-4B93-8ED4-106DA70224C2}.cab”clsid="{84F32C01-78D8-4B93-8ED4-106DA70224C2}"version="1,0,0,1"/><xsf:allowedControlclsid="{F08DF954-8592-11D1-B16A-00C0F0283630}"/></xsf:permissions>
![Page 2818: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2818.jpg)
collateattribute
Specifieswhetherthepaperiscollated.
![Page 2819: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2819.jpg)
Typexsf:xdYesNo
![Page 2820: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2820.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingaview.
![Page 2821: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2821.jpg)
Definition
<xsd:attributename="collate"type="xsf:xdYesNo"></xsd:attribute>
![Page 2822: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2822.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2823: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2823.jpg)
ExampleThefollowingisanexampleofthecollateattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 2824: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2824.jpg)
columnNameAttribute
IdentifiesthecolumnnameintheSQLtable(underlyingtheformlistview).
![Page 2825: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2825.jpg)
Type
xsf:xdTitle
![Page 2826: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2826.jpg)
RemarksThecolumnNameattributeisarequiredattributeofthefieldelement.
![Page 2827: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2827.jpg)
ExampleThefollowingisanexampleofthecolumnNameattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 2828: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2828.jpg)
ShowAll
![Page 2829: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2829.jpg)
commandTextAttribute
AstringpropertythatcontainstheActiveXDataObjects(ADO)SQLcommandtexttobeusedforqueryingthedatafromthespecifieddatasource.
![Page 2830: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2830.jpg)
Type
xsd:string
![Page 2831: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2831.jpg)
RemarksThecommandTextattributeisarequiredattributeoftheadoAdapterelement.
![Page 2832: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2832.jpg)
ExampleThefollowingisanexampleofthecommandTextattributeasitisusedintheadoAdapterelement:
<xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 2833: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2833.jpg)
componentAttribute
Specifiesthenameoftheeditingcomponentthatwillbereferencedwithintheactionattributeofabuttonelement.
![Page 2834: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2834.jpg)
Type
xsd:enumeration
![Page 2835: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2835.jpg)
RemarksThecomponentattributeisarequiredattributeoftheeditWithelement.
ValidcomponentnamesincludexCollection,xOptional,xReplace,xTextList,xField,xImage,xFileAttachment.
![Page 2836: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2836.jpg)
ExampleThefollowingisanexampleofthecomponentattributeasitisusedintheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"autoComplete="yes"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
ThefollowingisanexampleofthecomponentattributeasitisusedintheeditWithelement,wherethevalueofthecomponentattributeis"xFileAttachment":
<xsf:xmlToEditname="some_name"item="/my:myFields/my:field1">
![Page 2837: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2837.jpg)
<xsf:editWithallowedFileTypes="doc,xls"component="xFileAttachment"/></xsf:xmlToEdit><menuAreaname="msoStructuralEditingContextMenu"><buttonaction="xFileAttachment::attach"xmlToEdit="some_name"caption="Attach..."showIf="immediate"/><buttonaction="xFileAttachment::open"xmlToEdit="some_name"caption="Open"showIf="immediate"/><buttonaction="xFileAttachment::saveAs"xmlToEdit="some_name"caption="SaveAs..."showIf="immediate"/><buttonaction="xFileAttachment::remove"xmlToEdit="some_name"caption="Deletefile"showIf="immediate"/></menuArea>
![Page 2838: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2838.jpg)
ShowAll
![Page 2839: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2839.jpg)
conditionAttribute
DefinesanXPathexpressionevaluatedasaBooleanvaluetodeterminewhethertheassociatedactionwillbeinvoked.
![Page 2840: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2840.jpg)
Typexsd:string
![Page 2841: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2841.jpg)
ParentElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccurredinthe
form.
![Page 2842: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2842.jpg)
Definition
<xsd:attributename="condition"type="xsd:string"use="optional"></xsd:attribute>
![Page 2843: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2843.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2844: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2844.jpg)
ExampleThefollowingisanexampleoftheconditionattributeasitisusedintheruleelement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 2845: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2845.jpg)
ShowAll
![Page 2846: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2846.jpg)
connectionStringAttribute
AstringpropertythatcontainstheActiveXDataObjects(ADO)connectionstringtobeusedtoconnecttothedatasource.
![Page 2847: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2847.jpg)
Type
xsd:string
![Page 2848: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2848.jpg)
RemarksTheconnectionStringattributeisarequiredattributeoftheadoAdapterelement.
![Page 2849: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2849.jpg)
ExampleThefollowingisanexampleoftheconnectionStringattributeasitisusedintheadoAdapterelement:
<xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 2850: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2850.jpg)
ShowAll
![Page 2851: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2851.jpg)
containerAttribute
SpecifiesanXPathexpressionthatdeterminesthecontextinwhichthecontrolwillbeselectableanditsactionsenabled.
![Page 2852: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2852.jpg)
Type
xsd:string
![Page 2853: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2853.jpg)
RemarksThecontainerattributeisanoptionalattributeofthexmlToEditelement.
Ifthecurrentcontext(viewselectionorinsertionpoint)iswithinsomeHTMLelementthatmapsbacktoanXMLDocumentObjectModel(DOM)nodethatsatisfiesthecontainerXPathexpression,thecontrolisenabled.Otherwise,allactionsaredisabled.
ItdoesnotsufficeforthecontainerXMLDOMnodetoexist.ActionswillbeenabledonlywhenthecurrentselectioniswithinanHTMLelementthatmapstothecontainerXMLDOMnode.
NoteInMicrosoftOfficeInfoPath2003designmode,generatedXPathexpressionsfortheitemandcontainerattributeswillalwaysbeintheformitem="/a/b/c",whichprovidesthefullpathfromtherootelementoftheform'sunderlyingXMLdocument.Butpatternssuchasitem="b/c",orwithpredicatesasinitem="b[@p='23']/c[q]"areallowediftheformdefinition(.xsf)fileiseditedmanually.
![Page 2854: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2854.jpg)
ExampleThefollowingisanexampleofthecontainerattributeasitisusedinthexmlToEditelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2855: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2855.jpg)
copiesattributeSpecifiesthenumberofcopiestobeprinted.
![Page 2856: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2856.jpg)
Typexsd:Integer
![Page 2857: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2857.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 2858: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2858.jpg)
Usage
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 2859: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2859.jpg)
Definition
<xsd:attributename="copies"><xsd:simpleType><xsd:restrictionbase="xsd:integer"><xsd:minInclusivevalue="1"/><xsd:maxInclusivevalue="9999"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 2860: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2860.jpg)
ShowAll
![Page 2861: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2861.jpg)
dataAttribute
ContainsanXPathmatchexpressionthatdefinesthenodesettowhichthesignaturewillbeapplied.
![Page 2862: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2862.jpg)
Typexsd:string
![Page 2863: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2863.jpg)
ParentElements
Element DescriptionsignedDataBlock Definesanodesetintheform'sunderlyingXML
documenttowhichadigitalsignaturecanbeapplied
![Page 2864: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2864.jpg)
Definition
<xsd:attributename="data"type="xsd:string"use="required"></xsd:attribute>
![Page 2865: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2865.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2866: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2866.jpg)
ExampleThefollowingisanexampleofthedataattributeasitisusedinthesignedDataBlockelement:
<xsf:documentSignatures><xsf:signedDataBlockname=”main”data="my:myfields/my:subtree1|my:myfields/my:subtree2"signatureLocation="my:mifields/sig:signatures/main"mode="countersign"><xsf:message>Bypressingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 2867: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2867.jpg)
ShowAll
![Page 2868: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2868.jpg)
dataFormSolutionAttribute
Identifiestheformasadatabaseform.
![Page 2869: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2869.jpg)
Type
xsf:xdYesNo
![Page 2870: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2870.jpg)
RemarksThedataFormSolutionattributeisanoptionalattributeofthexDocumentClasselement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"no".FormsbasedonActiveXDataObjects(ADO)orWebservicesandthathaveaspecialqueryviewshouldhavethisattributesetto"yes"toworkproperlyinMicrosoftOfficeInfoPath2003.
![Page 2871: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2871.jpg)
ExampleThefollowingisanexampleofthedataFormSolutionattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 2872: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2872.jpg)
ShowAll
![Page 2873: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2873.jpg)
dataObjectAttribute(domEventHandlerElement)
ContainsthenameofthedataObjectelementtobeusedintheeventhandler.
![Page 2874: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2874.jpg)
Typexsd:string
![Page 2875: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2875.jpg)
ParentElements
Element DescriptiondomEventHandlerDefinesaneventhandlerforoneormorespecific
XMLDocumentObjectModel(DOM)nodes.
![Page 2876: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2876.jpg)
Definition
<xsd:attributename="dataObject"type="xsd:string"use="optional"></xsd:attribute>
![Page 2877: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2877.jpg)
RemarksThedataObjectattributeisanoptionalattributeofthedomEventHandlerelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2878: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2878.jpg)
ExampleThefollowingisanexampleofthedataObjectattributeasitisusedinthedomEventHandlerelement:
<xsf:domEventHandlers><xsf:domEventHandlermatch="TravelReport/Expenses"handlerObject="TravelExpenses"dataObject="dataObject1"/></xsf:domEventHandlers>
![Page 2879: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2879.jpg)
dataObjectAttribute(getUserNameFromDataElement)
Thenameofthesecondarydatasourcewheretheusernamenamecanbefound.
![Page 2880: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2880.jpg)
Typexsd:string
![Page 2881: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2881.jpg)
ParentElements
Element DescriptiongetUserNameFromData RetrievesausernamebyusinganXPath
queryofthedatainthemaindatasourceorinasecondarydatasource.
![Page 2882: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2882.jpg)
Definition
<xsd:attributename="dataObject"type="xsd:string"use="optional"></xsd:attribute>
![Page 2883: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2883.jpg)
RemarksForthemaindatasource,thisattributeshouldnotbepresent.Anemptystringisinvalid.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2884: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2884.jpg)
ExampleThefollowingisanexampleofthedataObjectattributeasitisusedinthegetUserNameFromDataelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2885: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2885.jpg)
dataObjectAttribute(partFragmentElement)
SpecifiesthenameofthedataobjecttousewhensubmittingapartFragmentelementtoaMicrosoftBiztalk2004HumanWorkflowServices(HWS)server.
![Page 2886: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2886.jpg)
Typexsd:string
![Page 2887: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2887.jpg)
ParentElements
Element DescriptionpartFragmentDefinesonesubstitutiongroupforaspecificpartofthe
inputSimpleObjectAccessProtocol(SOAP)message.
![Page 2888: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2888.jpg)
Definition
<xsd:attributename="dataObject"type="xsd:string"use="optional"></xsd:attribute>
![Page 2889: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2889.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2890: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2890.jpg)
ExampleThefollowingisanexampleofthedataObjectattributeasitisusedinthepartFragmentelement:
<xsf:partFragmentmatch="ActionSection/Target"replaceWith="/my:myFields/my:Target"dataObject="hwsDataObject3"/>
![Page 2891: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2891.jpg)
ShowAll
![Page 2892: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2892.jpg)
defaultAttribute
Specifiesthenameidentifieroftheviewchosentobethedefaultview.
![Page 2893: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2893.jpg)
Type
xsd:string
![Page 2894: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2894.jpg)
RemarksThedefaultattributeisanoptionalattributeoftheviewselement.
Ifnotspecified,thedefaultviewisthefirstviewelementfoundwithintheviewselement.ThisviewisloadedwhenanMicrosoftOfficeInfoPath2003isinitiallyopened.
NoteInthecaseofformsthatuseActiveXDataObjects(ADO)oraWebserviceastheirprimarydatasource,thedefaultviewissetbytheinitialViewattributeintheprocessinginstructionoftheform'sXMLtemplatefile.Thisattributecannotbechangedwhileindesignmode.
![Page 2895: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2895.jpg)
ExampleThefollowingisanexampleofthedefaultattributeasitisusedintheviewselement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 2896: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2896.jpg)
defaultAttribute(rolesElement)
Designatesaparticularroleasthedefaultrole.
![Page 2897: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2897.jpg)
Typexsd:string
![Page 2898: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2898.jpg)
ParentElements
Element Descriptionroles Definesroles.
![Page 2899: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2899.jpg)
Definition
<xsd:attributename="default"type="xsd:string"use="required"></xsd:attribute>
![Page 2900: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2900.jpg)
RemarksIfauserofaformisnotdefinedinthemembershipelementoftheroleselementoriftheroleofausercannotbedetermined,thatuserisimplicitlyassignedtotherolespecifiedbythedefaultattribute.Thedefaultattributeisrequiredfortheroleselement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2901: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2901.jpg)
ExampleThefollowingisanexampleofthedefaultattributeasitisusedintheroleselement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 2902: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2902.jpg)
descriptionAttribute
Abriefdescriptionoftheform.
![Page 2903: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2903.jpg)
Type
xsd:string
![Page 2904: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2904.jpg)
RemarksThedescriptionattributeisanoptionalattributeofthexDocumentClasselement.
Thevalueofthedescriptionattributecancontainupto255characters.
![Page 2905: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2905.jpg)
ExampleThefollowingisanexampleofthedescriptionattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 2906: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2906.jpg)
ShowAll
![Page 2907: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2907.jpg)
designModeAttribute(viewElement)
Determineswhethertheview(*.xsl)filespecifiedinaviewelementcanbeopenedindesignmodeinMicrosoftOfficeInfoPath2003.
![Page 2908: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2908.jpg)
Typexsf:xdDesignMode
![Page 2909: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2909.jpg)
ParentElements
Element Descriptionview ContainsinformationaboutaMicrosoftOfficeInfoPath2003
view.
![Page 2910: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2910.jpg)
Definition
<xsd:attributename="designMode"type="xsf:xdDesignMode"></xsd:attribute>
![Page 2911: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2911.jpg)
RemarksYoucancreateacustomviewforaformtemplatebycreatinganXSLTransformation(XSLT)(*.xsl)filethatcontainsconstructsthatarenotsupportedindesignmodeinInfoPath.Toensurethataviewcan'tbeopenedindesignmode(andtopreventdataloss),setthedesignModeattributeintheformdefinitionfile(.xsf)to"protected".Protectedviewsareshowninallviewslistsanduserscanbefillthemoutlikeallforms,buttheycannotbeopenedindesignmode.IfthedesignModeattributeisspecifiedas"normal"orisnotspecified,theviewcanbeopenedindesignmode.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2912: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2912.jpg)
ExampleThefollowingisanexampleofthedesignModeattributeasitisusedintheviewelement:
<xsf:viewname="View"caption="View"designMode="protected"><xsf:mainpanetransform="view1.xsl"/>...</xsf:view>
![Page 2913: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2913.jpg)
ShowAll
![Page 2914: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2914.jpg)
detailKeyAttribute
ContainstheXPathofthefieldinthedetailXMLfragmentthatformstherelationshiptothemasterXMLfragment.
![Page 2915: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2915.jpg)
Typexsd:string
![Page 2916: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2916.jpg)
ParentElements
Element DescriptionmasterDetailDefinestheXMLfragmentsthatformamasteranddetail
relationshipinaview'srepeatingtablesorrepeatingsections.
![Page 2917: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2917.jpg)
Definition
<xsd:attributename="detailKey"type="xsd:string"></xsd:attribute>
![Page 2918: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2918.jpg)
RemarksUsearelativeXPathforthedetailKeyattribute.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2919: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2919.jpg)
ExampleThefollowingisanexampleofthedetailKeyattributeasitisusedinthemasterDetailelement:
<xsf:editWithcaption="group2"xd:autogeneration="template"component="xCollection"><xsf:masterDetailmasterViewContext="CTRL1_5"master="my:group2"masterKey="my:field1"detailKey="my:field3"></xsf:masterDetail></xsf:editWith>
![Page 2920: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2920.jpg)
disableMenuItemAttribute
Specifieswhetherthemenuitemforthesubmitoperationshouldbedisabled.
![Page 2921: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2921.jpg)
Type
xsf:xdYesNo
![Page 2922: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2922.jpg)
RemarksThedisableMenuItemattributeisanoptionalattributeofthesubmitelement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"no".
![Page 2923: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2923.jpg)
ExampleThefollowingisanexampleofthedisableMenuItemattributeasitisusedinthesubmitelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 2924: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2924.jpg)
enabledAttribute
Specifieswhetherformmergingisenabledfortheform.
![Page 2925: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2925.jpg)
Type
xsf:xdYesNo
![Page 2926: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2926.jpg)
RemarksTheenabledattributeisarequiredattributeoftheimportParameterselement.
Valuesinclude"yes"or"no".Thedefaultvalueis"yes".
![Page 2927: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2927.jpg)
ExampleThefollowingisanexampleoftheenabledattributeasitisusedintheimportParameterselement:
<xsf:importParametersenabled="yes"<xsf:importSourcename=""schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 2928: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2928.jpg)
ShowAll
![Page 2929: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2929.jpg)
enforceScriptTimeoutAttribute
Specifieswhethertoenableordisableatime-outperiodforscriptsinaform.
![Page 2930: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2930.jpg)
Typexsf:xdYesNo
![Page 2931: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2931.jpg)
ParentElements
Element Descriptionscripts Definesthesourceofallbusinesslogicscriptsusedatthe
documentlevelintheform.
![Page 2932: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2932.jpg)
Definition
<xsd:attributename="enforceScriptTimeout"type="xsf:xdYesNo"use="optional"default="yes"></xsd:attribute>
![Page 2933: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2933.jpg)
RemarksSettingtheenforceScriptTimeoutattributeto"no"intheformdefinitionfile(.xsf)disablesthetime-outperiodforscriptsrunningintheform.Thedefaultvalueis"yes".
Forcoderunninginataskpane,thereisaseparatetime-outperiodprovidedbyMicrosoftInternetExplorer.Thistime-outperiodisnotaffectedbythevalueoftheenforceScriptTimeoutattribute.
Atime-outperiodcannotbespecifiedformanagedcodeinInfoPathforms.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2934: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2934.jpg)
ExampleThefollowingisanexampleoftheenforceScriptTimeoutattributeasitisusedinthescriptselement:
<xsf:scriptslanguage="jscript"enforceScriptTimeout="no"><xsf:scriptsrc="internal.js"/><xsf:scriptsrc="script.js"/></xsf:scripts>
![Page 2935: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2935.jpg)
ShowAll
![Page 2936: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2936.jpg)
expressionAttribute
AnXPathexpression(relativetotheexpressionContextattribute,ifspecified)thatmustbeevaluatedtovalidatetheXMLDocumentObjectModel(DOM)nodespecifiedinthematchattribute.
![Page 2937: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2937.jpg)
Type
xsd:string
![Page 2938: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2938.jpg)
RemarksTheexpressionattributeisarequiredattributeoftheerrorConditionelement.
IfthespecifiedexpressionevaluatestoTrue,itisconsideredtobeanerrorconditionandthespecifiederrormessageisdisplayed.
![Page 2939: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2939.jpg)
ExampleThefollowingisanexampleoftheexpressionattributeasitisusedintheerrorConditionelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 2940: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2940.jpg)
ShowAll
![Page 2941: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2941.jpg)
expressionAttribute(assignmentActionElement)
ContainsanXPathexpressiontopopulatethevalueofthetargetFieldattribute.
![Page 2942: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2942.jpg)
Typexsd:string
![Page 2943: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2943.jpg)
ParentElements
Element DescriptionassignmentAction Definesanactiontosetthevalueofafield.
![Page 2944: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2944.jpg)
Definition
<xsd:attributename="expression"type="xsd:string"use="required"></xsd:attribute>
![Page 2945: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2945.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2946: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2946.jpg)
ExampleThefollowingisanexampleoftheexpressionattributeasitisusedintheassignmentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 2947: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2947.jpg)
ShowAll
![Page 2948: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2948.jpg)
expressionAttribute(calculatedFieldElement)
Containstheformula,intheformofanXPathexpression,tobeevaluated.Theresultisstoredinthetargetlocation.
![Page 2949: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2949.jpg)
Typexsd:string
![Page 2950: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2950.jpg)
ParentElements
Element DescriptioncalculatedField Definesanindividualcalculation,includingtheformula,
whenthecalculationistobeperformed,andwheretheresultwillbestored.
![Page 2951: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2951.jpg)
Definition
<xsd:attributename="expression"type="xsd:string"use="required"></xsd:attribute>
![Page 2952: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2952.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2953: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2953.jpg)
ExampleThefollowingisanexampleoftheexpressionattributeasitisusedinthecalculatedFieldelement:
<xsf:calculations><xsf:calculatedFieldtarget="/my:myFields/my:average"expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"refresh="onChange"/></xsf:calculations>
![Page 2954: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2954.jpg)
ShowAll
![Page 2955: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2955.jpg)
expressionContextAttribute
SpecifiestheXMLDocumentObjectModel(DOM)nodeonwhichtheexpressionspecifiedintheexpressionattributeisrooted.
![Page 2956: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2956.jpg)
Type
xsd:string
![Page 2957: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2957.jpg)
RemarksTheexpressionContextattributeisanoptionalattributeoftheerrorConditionelement.
ItcontainsarelativeXPathexpressionthatidentifiestheXMLDOMnode(withinthecontextofthematchedXMLDOMnode)onwhichtheexpressionisrootedandthereforeshouldbeevaluated.Thedefaultvalueis"."ThisisthesameasthematchedXMLDOMnode.
![Page 2958: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2958.jpg)
ExampleThefollowingisanexampleoftheexpressionContextattributeasitisusedintheerrorConditionelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 2959: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2959.jpg)
featureAttribute
SetswhethertheAutoRecoverfeatureisenabled.
![Page 2960: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2960.jpg)
Typexsf:xdEnabledDisabled
![Page 2961: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2961.jpg)
ParentElements
Element DescriptionautoRecovery SpecifieswhethertheformwillsaveAutoRecover
informationandwhethertheAutoRecoversettingcanbechangedbytheuser.
![Page 2962: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2962.jpg)
Definition
<xsd:attributename="feature"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute>
![Page 2963: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2963.jpg)
RemarksSettingthisattributetoavalueotherthan"enabled"or"disabled"willresultinanerrormessagewhenyouattempttoopentheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2964: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2964.jpg)
ExampleThefollowingisanexampleofthefeatureattributeasitisusedintheautoRecoveryelement:
<xsf:autoRecovery feature="disabled"/>
![Page 2965: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2965.jpg)
ShowAll
![Page 2966: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2966.jpg)
fieldAttribute
SpecifiesarelativeXPathexpressionfromtheXMLDocumentObjectModel(DOM)nodespecifiedbytheitemattributeofthexmlToEditelement.
![Page 2967: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2967.jpg)
Type
xsd:string
![Page 2968: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2968.jpg)
RemarksThefieldattributeisanoptionalattributeoftheeditWithelement.
ThefieldattributereferstotheXMLDOMnodeintheform'sunderlyingXMLdocument,whichistobedisplayedasaneditablefieldforanxTextlisteditingcomponent.Thedefaultvalueis'.',whichcorrespondstoeditingthetextcontentoftheXMLDOMnodespecifiedbytheitemattributeofthexmlToEditelement.
![Page 2969: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2969.jpg)
ExampleThefollowingisanexampleofthefieldattributeasitisusedintheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithautoComplete="no"field="@artist"component="xTextList"></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2970: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2970.jpg)
ShowAll
![Page 2971: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2971.jpg)
fileUrlAttribute
ContainstheUniformResourceLocator(URL)ofthe.xmlfile.
![Page 2972: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2972.jpg)
Type
xsd:anyURI
![Page 2973: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2973.jpg)
RemarksThefileUrlattributeisarequiredattributeofthexmlFileAdapterelement.
![Page 2974: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2974.jpg)
ExampleThefollowingisanexampleofthefileUrlattributeasitisusedinthexmlFileAdapterelement:
<xsf:query><xsf:xmlFileAdapterfileUrl="currencies.xml"/></xsf:query>
![Page 2975: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2975.jpg)
ShowAll
![Page 2976: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2976.jpg)
filterAttribute
SpecifiestheXPathexpressionofthestructuredXMLsubtreewhensubmittingasubsetoftheXMLdata.
![Page 2977: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2977.jpg)
Typexsd:string
![Page 2978: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2978.jpg)
ParentElements
Element DescriptionpartFragmentDefinesonesubstitutiongroupforaspecificpartofthe
inputSimpleObjectAccessProtocol(SOAP)message.
![Page 2979: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2979.jpg)
Definition
<xsd:attributename="filter"type="xsd:string"use="optional"></xsd:attribute>
![Page 2980: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2980.jpg)
RemarksUsethefilterattributewhensubmittingtheselectedfieldorgroupasastructuredXMLsubtree,includingthetags.Canbeomittedwhensubmittingthecontentofthefieldorgroup.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2981: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2981.jpg)
ExampleThefollowingisanexampleofthefilterattributeasitisusedinthepartFragmentelement:
<xsf:partFragmentmatch="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"replaceWith=/dfs:myFields/dfs:dataFields/s0:IsPrime"filter="."sendAsString="yes"/>
![Page 2982: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2982.jpg)
ShowAll
![Page 2983: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2983.jpg)
filterDependencyAttribute
Specifiesautomaticreapplicationofafilterwhenfilterfieldschange.
![Page 2984: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2984.jpg)
Typexsd:string
![Page 2985: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2985.jpg)
ParentElements
Element DescriptioneditWith Specifiesaninstanceofaneditingcomponent,andprovides
thecorrespondingparameterstodetermineitsexactbehavior.
![Page 2986: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2986.jpg)
Definition
<xsd:attributename="filterDependency"type="xsd:string"use="optional"></xsd:attribute>
![Page 2987: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2987.jpg)
RemarksThefilterDependencyattributeintheformdefinitionfile(.xsf)isalwayspresentforfiltersthatarespecifiedonrepeatingtablesandrepeatingsectionscreatedinthedesigner.EventhoughthereisnowaytotogglefilterDependencyonandoffindesignmodeinInfoPath,youcanturnoffautomaticrefreshingoffiltersbyremovingthefilterDependencyattributefromtheeditWithelementintheformdefinitionfile.
WhenthefilterDependencyattributeispresent,thefilterisreappliedwhentheonAfterChangeeventofanodeisraised.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 2988: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2988.jpg)
ExampleThefollowingisanexampleofthefilterDependencyattributeasitisusedintheeditWithelement:
<editWithcomponent="xCollection"widgetIcon="filter|standard"useFilter="yes|no"filterDependency="xpath1|xpath2|xpath3>
![Page 2989: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2989.jpg)
ShowAll
![Page 2990: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2990.jpg)
followingSiblingsAttribute
SpecifiesarelativeXPathexpressionfromtheparentnodethatspecifiestheXMLDocumentObjectModel(DOM)nodespriortowhichtheinsertionoftheXMLfragmentshouldoccur.
![Page 2991: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2991.jpg)
Type
xsd:string
![Page 2992: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2992.jpg)
RemarksThefollowingSiblingsattributeisanoptionalattributeofthechooseFragmentelement.
Theinsertionwillbeasachildoftheparentnode,butitwillbepriortoanynodesfoundthatsatisfytheXPathexpressionspecifiedbythefollowingSiblingsattribute.Ifnonodesarefound,theinsertionactsasanappend.
ThefollowingSiblingsattributeisonlyusedduringaninsertwhenthecurrentcontextisnotinanitem.Thebehavioristoappendtothecontentoftheparentnode,unlessthefollowingSiblingsattributeisspecified,inwhichcasetheinsertionisstillwithinthecontentoftheparent,butpriortoanyfollowingSiblingsnodes.
![Page 2993: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2993.jpg)
ExampleThefollowingisanexampleofthefollowingSiblingsattributeasitisusedinthechooseFragmentelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"followingSiblings="."><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 2994: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2994.jpg)
ShowAll
![Page 2995: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2995.jpg)
footerAttribute
Specifiesthefootertextwhenprintingaview.
![Page 2996: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2996.jpg)
Type
xsd:string
![Page 2997: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2997.jpg)
RemarksThefooterattributeisanoptionalattributeoftheprintSettingselement.TheprintSettingselementalsoprovidesaheaderattribute.
Thefooterattributecannotbegreaterthan255charactersinlength.
Whenusingaheaderorfooterinaform,thereareanumberofvariablesthatcanbeusedtodisplayinformationsuchaspagenumbers,dates,andtimes;ortoalignthetextthattheheaderorfootercontains.
Headerandfootervariables
![Page 2998: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2998.jpg)
ExampleThefollowingisanexampleofthefooterattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 2999: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/2999.jpg)
ShowAll
![Page 3000: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3000.jpg)
fullyEditableNamespaceAttribute
IdentifiesthenamespaceofanXMLSchemaintheformtemplatethatcanbeentirelymodifiedinMicrosoftOfficeInfoPath2003designmode.
![Page 3001: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3001.jpg)
Type
xsd:anyURI
![Page 3002: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3002.jpg)
RemarksThefullyEditableNamespaceattributeisanoptionalattributeofthesolutionPropertieselement.
![Page 3003: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3003.jpg)
ExampleThefollowingisanexampleofthefullyEditableNamespaceattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 3004: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3004.jpg)
ShowAll
![Page 3005: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3005.jpg)
handlerObjectAttribute
Identifiestheuniquenameoftheeventhandlerinthescriptingcode.
![Page 3006: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3006.jpg)
Type
xsd:string
![Page 3007: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3007.jpg)
RemarksThehandlerObjectattributeisarequiredattributeofthedomEventHandlerelement.
ThereferencedscriptmustusethisnametodefineeventhandlersforthespecifiedXMLDocumentObjectModel(DOM)node.Forexample,scriptmaycontainfunctionssuchasTravelExpenses::OnValidateandTravelExpenses::OnAfterChangethatarecalledwheneverthespecifiedeventsoccuratthematchingXMLDOMnode.
![Page 3008: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3008.jpg)
ExampleThefollowingisanexampleofthehandlerObjectasitisusedinthedomEventHandlerelement:
<xsf:domEventHandlers><xsf:domEventHandlermatch="TravelReport/Expenses"handlerObject="TravelExpenses"/></xsf:domEventHandlers>
![Page 3009: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3009.jpg)
ShowAll
![Page 3010: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3010.jpg)
headerAttribute
Specifiestheheadertextwhenprintingaview.
![Page 3011: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3011.jpg)
Type
xsd:string
![Page 3012: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3012.jpg)
RemarksTheheaderattributeisanoptionalattributeoftheprintSettingselement.TheprintSettingselementalsoprovidesafooterattribute.
Theheaderattributecannotbegreaterthan255charactersinlength.
Whenusingaheaderorfooterinaform,thereareanumberofvariablesthatcanbeusedtodisplayinformationsuchaspagenumbers,dates,andtimes;ortoalignthetextthattheheaderorfootercontains.
Headerandfootervariables
![Page 3013: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3013.jpg)
ExampleThefollowingisanexampleoftheheaderattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 3014: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3014.jpg)
ShowAll
![Page 3015: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3015.jpg)
hideStatusBarDisplayattribute
Specifieswhetherthecurrentroleisdisplayedinthestatusbar.
![Page 3016: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3016.jpg)
Typexsf:xdYesNo
![Page 3017: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3017.jpg)
ParentElements
Element Descriptionroles Definesroles.
![Page 3018: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3018.jpg)
Definition
<xsd:attributename="hideStatusBarDisplay"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3019: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3019.jpg)
RemarksThenameoftheroleforthecurrentuserisdisplayedinthestatusbar.Iftheroleofauserischangedprogrammatically,thestatusbarisupdated.
ThevalueofthehideStatusBarDisplayattributeis"no"bydefault.Iftheattributeisnotincludedintheroleselement,therefore,theroleofthecurrentuserisdisplayedinthestatusbar.ThehideStatusBarDisplayattributemustbeincludedintheroleselementanditsvaluemustbesetto"yes"topreventtheroleforthecurrentuserfrombeingdisplayedinthestatusbar.
ThereisnomechanismintheuserinterfaceofInfoPathforchangingthehideStatusBarDisplayattribute.Toaddthisattributetotheroleselementortochangeitsvalue,theformdefinitionfile(.xsf)ofaformmustbeeditedmanually.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3020: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3020.jpg)
ExampleThefollowingisanexampleofthehideStatusBarDisplayattributeasitisusedintheroleselement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3021: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3021.jpg)
ShowAll
![Page 3022: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3022.jpg)
hrefAttribute(initialXmlDocumentElement)
SpecifiesthenameoftheXMLtemplatefiletobeusedwhenauserclicksFillOutaFormontheFilemenu.
![Page 3023: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3023.jpg)
Type
xsf:xdFileName
![Page 3024: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3024.jpg)
RemarksThehrefattributeisarequiredattributeoftheinitialXmlDocumentelement.
![Page 3025: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3025.jpg)
ExampleThefollowingisanexampleofthehrefattributeasitisusedintheinitialXmlDocumentelement:
<xsf:fileNew><xsf:initialXmlDocumentcaption="TravelReport"href="TravelReportTemplate.xml"/></xsf:fileNew>
![Page 3026: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3026.jpg)
ShowAll
![Page 3027: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3027.jpg)
hrefAttribute(taskpaneElement)
SpecifiestherelativeorabsoluteUniformResourceLocator(URL)toan.htmlfile.
![Page 3028: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3028.jpg)
Type
xsd:string
![Page 3029: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3029.jpg)
RemarksThehrefattributeisarequiredattributeofthetaskpaneelement.
The.htmlfileisloadedintoaninstanceofthetaskpanewhenaformisopened.The.htmlfilecanincludebusinesslogicscriptingcodeandcanaccessappropriateMicrosoftOfficeInfoPath2003objectmodelmembers.
![Page 3030: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3030.jpg)
ExampleThefollowingisanexampleofthehrefattributeasitisusedinthetaskpaneelement:
<xsf:xDocumentClass>...<xsf:taskpanecaption="MyCustomTaskPane"href="MyCustomTaskPane.htm"/>...</xsf:xDocumentClass>
![Page 3031: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3031.jpg)
ShowAll
![Page 3032: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3032.jpg)
hrefAttribute(useHttpHandlerElement)
SpecifiestheUniformResourceLocator(URL)towhichtheformshouldbesubmitted.
![Page 3033: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3033.jpg)
Type
xsd:anyURI
![Page 3034: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3034.jpg)
RemarksThehrefattributeisarequiredattributeoftheuseHttpHandlerelement.
![Page 3035: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3035.jpg)
ExampleThefollowingisanexampleofthehrefattributeasitisusedbytheuseHttpHandlerelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useHttpHandler>href="http://MyServer/InfoPathScripts/MyScript.asp"method="POST"</xsf:useHttpHandler><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 3036: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3036.jpg)
ShowAll
![Page 3037: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3037.jpg)
iconAttribute
ProvidesaUniformResourceLocator(URL)toabitmap(.bmp)orgraphicsinterchangeformat(.gif)file,whichisusedforthebuttonormenuitem.
![Page 3038: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3038.jpg)
Type
xsd:string
![Page 3039: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3039.jpg)
RemarksTheiconattributeisanoptionalattributeofthebuttonelement.
Ifaniconisnotspecified,thecaptionalonewillbeused.Ifbothcaptionandiconarespecified,bothwillbedisplayed.Alternatively,thevaluecanalsobeanID,allowingaccesstointernalsystemicons.Ifthevalueisaninteger,itwillbeinterpretedasanID.
![Page 3040: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3040.jpg)
ExampleThefollowingisanexampleoftheiconattributeasitisusedinthebuttonelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"icon="cd.bmp"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"icon="track.bmp"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"icon="label.bmp"></xsf:button></xsf:menu></xsf:menuArea>
![Page 3041: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3041.jpg)
ShowAll
![Page 3042: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3042.jpg)
infopathGroupAttribute
ContainsthenameofthegroupunderwhichallfieldsinaSharePointlistorlibrarywillbestored.
![Page 3043: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3043.jpg)
Typexsd:string
![Page 3044: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3044.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationtoquery
aSharePointlistorlibrary.
![Page 3045: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3045.jpg)
Definition
<xsd:attributename="infopathGroup"type="xsd:string"use="required"></xsd:attribute>
![Page 3046: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3046.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3047: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3047.jpg)
ExampleThefollowingisanexampleoftheinfopathGroupattributeasitisusedinthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl=”http://xyzco/reports/”sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="XyzReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 3048: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3048.jpg)
infopathNameAttribute
Anattributeofthefieldelement.ContainsthecorrespondingInfoPathfieldnameforthesharepointNameattribute.
![Page 3049: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3049.jpg)
Typexsd:string
![Page 3050: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3050.jpg)
ParentElements
Element Descriptionfield Containsfieldmappinginformationforeachfieldina
SharePointlistorlibraryandthecorrespondingnameusedinMicrosoftOfficeInfoPath.
![Page 3051: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3051.jpg)
Definition
<xsd:attributename="infopathName"type="xsd:string"use="required"></xsd:attribute>
![Page 3052: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3052.jpg)
RemarksTheinfopathNameappearsasthefieldnamesinMicrosoftOfficeInfoPath2003SP1forthefieldsreturnedfromtheSharePointlistorlibrary.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3053: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3053.jpg)
ExampleThefollowingisanexampleoftheinfopathNameattributeasitisusedinthefieldelement:
<xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"isLookup="no"></xsf:field>
![Page 3054: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3054.jpg)
initiatorAttribute
Designatesaparticularroleastheinitiatorrole.
![Page 3055: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3055.jpg)
Typexsd:string
![Page 3056: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3056.jpg)
ParentElements
Element Descriptionroles Definesroles.
![Page 3057: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3057.jpg)
Definition
<xsd:attributename="initiator"type="xsd:string"use="optional"></xsd:attribute>
![Page 3058: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3058.jpg)
RemarksIfausercreatesanewInfoPathdocumentfromaformtemplate,thatuserisassignedtotherolethathasbeendesignatedastheinitiatorrole.Ifnoroleisdesignatedastheinitiatorroleintheformdefinitionfileofaform(thatis,iftheinitiatorattributeisnotincludedfortheroleselement),userswhocreateformsfromtheaccompanyingformtemplateretaintherolestowhichtheyareassignedinthemembershipelementoftheroleselement.Afteraformhasbeensaved,closed,andreopened,InfoPathnolongerchecksfortheinitiatorattribute.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3059: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3059.jpg)
ExampleThefollowingisanexampleoftheinitiatorattributeasitisusedintheroleselement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3060: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3060.jpg)
initOnLoadAttribute
Specifieswhetherthedataobjectshouldbeinitializedondocumentload.
![Page 3061: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3061.jpg)
Type
xsf:xdYesNo
![Page 3062: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3062.jpg)
RemarksTheinitOnLoadattributeisanoptionalattributeofthedataObjectelement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"no".
![Page 3063: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3063.jpg)
ExampleThefollowingisanexampleoftheinitOnLoadattributeasitisusedinthedataObjectelement:
<xsf:dataObjects><xsf:dataObjectname="EmployeeNames"schema="EmployeeNames.xsd"initOnLoad="yes"><xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter> </xsf:query> </xsf:dataObject> </xsf:dataObjects>
![Page 3064: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3064.jpg)
ShowAll
![Page 3065: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3065.jpg)
innerFragmentAttribute
SpecifiesarelativeXPathexpressionfromtheparentnodetothesmallestfragmenttobeinserted.
![Page 3066: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3066.jpg)
Typexsd:string
![Page 3067: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3067.jpg)
ParentElements
Element DescriptionchooseFragment SpecifiesanXMLfragment.
![Page 3068: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3068.jpg)
Definition
<xsd:attributename="innerFragment"type="xsd:string"use="optional"></xsd:attribute>
![Page 3069: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3069.jpg)
RemarksTheinnerFragmentattributeisusedtoidentifythepositionofthecurrentdatacontextwithinthefragment,andtochoosetherightsubtreetoinsert.Thisreducestheneedtodefinemultiplefragmentsintheformdefinitionfile(.xsf)fordifferentdatacontexts.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3070: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3070.jpg)
ExampleThefollowingisanexampleoftheinnerFragmentattributeasitisusedinthechooseFragmentelement:
<xsf:xmlToEditname="expense_1"item="/my:myFields/my:expenses/my:expense"container="/my:myFields"><xsf:editWithcaption="expense"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentinnerFragment="my:expenses/my:expense"><my:expenses><my:expense/></my:expenses></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit>
![Page 3071: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3071.jpg)
ShowAll
![Page 3072: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3072.jpg)
isEnabledAttribute
Specifieswhethertheruleisenabledfortheform.
![Page 3073: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3073.jpg)
Typexsf:xdYesNo
![Page 3074: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3074.jpg)
ParentElements
Element Descriptionrule Definesanactioninvokedafteraneventhasoccurredinthe
form.
![Page 3075: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3075.jpg)
Definition
<xsd:attributename="isEnabled"type="xsf:xdYesNo"use="optional"default="yes"></xsd:attribute>
![Page 3076: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3076.jpg)
RemarksThedefaultvaluefortheisEnabledattributeis"yes".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3077: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3077.jpg)
ExampleThefollowingisanexampleoftheisEnabledattributeasitisusedintheruleelement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 3078: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3078.jpg)
isLookupAttribute
SpecifieswhetherafieldinaSharePointlistisalookupfield.
![Page 3079: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3079.jpg)
Typexsf:xdYesNo
![Page 3080: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3080.jpg)
ParentElements
Element Descriptionfield ContainsfieldmappinginformationforeachSharePointfield
andthecorrespondingnameusedinMicrosoftOfficeInfoPath2003SP1.
![Page 3081: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3081.jpg)
Definition
<xsd:attributename="isLookup"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3082: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3082.jpg)
RemarksThedefaultvaluefortheisLookupattributeis"no".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3083: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3083.jpg)
ExampleThefollowingisanexampleoftheisLookupattributeasitisusedinthefieldelement:
<xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"isLookup="no"></xsf:field>
![Page 3084: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3084.jpg)
ShowAll
![Page 3085: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3085.jpg)
itemAttribute
SpecifiesanXPathexpressionthatdeterminestheXMLDocumentObjectModel(DOM)nodestobeeditedusingtheeditingcomponentdefinedintheeditWithelement.
![Page 3086: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3086.jpg)
Type
xsd:string
![Page 3087: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3087.jpg)
RemarksTheitemattributeisarequiredattributeofthexmlToEditelement.
![Page 3088: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3088.jpg)
ExampleThefollowingisanexampleoftheitemattributeasitisusedinthexmlToEditelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 3089: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3089.jpg)
languageAttribute
Definesthescriptlanguageusedinthebusinesslogicsourcefiles.
![Page 3090: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3090.jpg)
Type
xsf:xdScriptLanguage
![Page 3091: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3091.jpg)
RemarksThelanguageattributeisarequiredattributeofthescriptselement.
Allowedvaluesinclude"vbscript","jscript",and"javascript".Thedefaultvalueis"jscript".
![Page 3092: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3092.jpg)
ExampleThefollowingisanexampleofthelanguageattributeasitisusedinthescriptselement:
<xsf:scriptslanguage="jscript"enforceScriptTimeout="no"><xsf:scriptsrc="internal.js"/><xsf:scriptsrc="script.js"/></xsf:scripts>
![Page 3093: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3093.jpg)
ShowAll
![Page 3094: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3094.jpg)
lastOpenViewAttribute
IdentifiesthenameoftheviewthatwaslastopeninMicrosoftOfficeInfoPath2003designmode.
![Page 3095: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3095.jpg)
Type
xsd:string
![Page 3096: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3096.jpg)
RemarksThelastOpenViewattributeisanoptionalattributeofthesolutionPropertieselement.
ThenexttimetheformisopenedinInfoPathdesignmode,thisviewisautomaticallydisplayed.Thevalueforthisattributeshouldbeanexistingviewnameintheformtemplate.
![Page 3097: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3097.jpg)
ExampleThefollowingisanexampleofthelastOpenViewattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.0.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 3098: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3098.jpg)
ShowAll
![Page 3099: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3099.jpg)
lastVersionNeedingTransformAttribute
Identifies,temporarily,thevalueofthemaxToVersionUpgradeattributeinthedocumentVersionUpgradeelementforupgradewithan.xsltfileifscriptingcodeisbeingusedfortheupgrade.
![Page 3100: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3100.jpg)
Type
xsf:xdSolutionVersion
![Page 3101: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3101.jpg)
RemarksThelastVersionNeedingTransformattributeisanoptionalattributeofthesolutionPropertieselement.
![Page 3102: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3102.jpg)
ExampleThefollowingisanexampleofthelastVersionNeedingTransformattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.0.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 3103: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3103.jpg)
leftMarginAttribute
Specifiestheleftmarginwhenprintingaview.
![Page 3104: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3104.jpg)
Type
xsd:string
![Page 3105: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3105.jpg)
RemarksTheleftMarginattributeisanoptionalattributeoftheprintSettingselement.
TheleftMarginattributemustbegreaterthanorequaltozero.
![Page 3106: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3106.jpg)
ExampleThefollowingisanexampleoftheleftMarginattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 3107: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3107.jpg)
ShowAll
![Page 3108: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3108.jpg)
locationAttribute
ContainsthenamespaceUniformResourceIdentifier(URI)andlocation(aUniformResourceLocator(URL),relativetotheformdefinition(.xsf)file),anddelimitedbyaspace,ofthe.xsdfiledefiningtheXMLSchema.
![Page 3109: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3109.jpg)
Type
xsd:string
![Page 3110: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3110.jpg)
RemarksThelocationattributeisarequiredattributeofthedocumentSchemaelement.
Non-namespace-basedXMLSchemasarelistedwithjustthe.xsdfile,omittingthenamespacedeclarationandthewhitespacedelimiter.
![Page 3111: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3111.jpg)
ExampleThefollowingisanexampleofthelocationattributeasitisusedinthedocumentSchemaelement:
<xsf:documentSchemas><xsf:documentSchemalocation="urn:schema:custom:NamespacecustomFilename.xsd"rootSchema="yes"/></xsf:documentSchemas>
![Page 3112: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3112.jpg)
marginUnitsTypeAttribute
Specifiesthemarginunitsizewhenprintingaview.
![Page 3113: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3113.jpg)
Type
xsd:NMTOKEN
![Page 3114: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3114.jpg)
RemarksThemarginUnitsTypeattributeisanoptionalattributeoftheprintSettingselement.
Valuesinclude"in"(inch)and"cm"(centimeter).
![Page 3115: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3115.jpg)
ExampleThefollowingisanexampleofthemarginUnitsTypeattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 3116: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3116.jpg)
ShowAll
![Page 3117: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3117.jpg)
masterAttribute
ContainstheXPathoftheXMLfragmentthatisboundtoamastertableorsection.
![Page 3118: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3118.jpg)
Typexsd:string
![Page 3119: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3119.jpg)
ParentElements
Element DescriptionmasterDetailDefinestheXMLfragmentsthatformamasteranddetail
relationshipinaview'srepeatingtablesorrepeatingsections.
![Page 3120: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3120.jpg)
Definition
<xsd:attributename="master"type="xsd:string"></xsd:attribute>
![Page 3121: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3121.jpg)
RemarksUsearelativeXPathforthemasterattribute.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3122: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3122.jpg)
ExampleThefollowingisanexampleofthemasterattributeasitisusedinthemasterDetailelement:
<xsf:editWithcaption="group2"xd:autogeneration="template"component="xCollection"><xsf:masterDetailmasterViewContext="CTRL1_5"master="my:group2"masterKey="my:field1"detailKey="my:field3"></xsf:masterDetail></xsf:editWith>
![Page 3123: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3123.jpg)
ShowAll
![Page 3124: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3124.jpg)
masterKeyAttribute
ContainstheXPathofthefieldinthemasterXMLfragmentthatformstherelationshiptothedetailXMLfragment.
![Page 3125: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3125.jpg)
Typexsd:string
![Page 3126: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3126.jpg)
ParentElements
Element DescriptionmasterDetailDefinestheXMLfragmentsthatformamasteranddetail
relationshipinaview'srepeatingtablesorrepeatingsections.
![Page 3127: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3127.jpg)
Definition
<xsd:attributename="masterKey"type="xsd:string"></xsd:attribute>
![Page 3128: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3128.jpg)
RemarksUsearelativeXPathforthemasterKeyattribute.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3129: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3129.jpg)
ExampleThefollowingisanexampleofthemasterKeyattributeasitisusedinthemasterDetailelement:
<xsf:editWithcaption="group2"xd:autogeneration="template"component="xCollection"><xsf:masterDetailmasterViewContext="CTRL1_5"master="my:group2"masterKey="my:field1"detailKey="my:field3"></xsf:masterDetail></xsf:editWith>
![Page 3130: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3130.jpg)
ShowAll
![Page 3131: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3131.jpg)
masterViewContextAttribute
ContainsastringthatidentifiesanHTMLelementintheview.
![Page 3132: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3132.jpg)
Typexsd:string
![Page 3133: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3133.jpg)
ParentElements
Element DescriptionmasterDetailDefinestheXMLfragmentsthatformamasteranddetail
relationshipinaview'srepeatingtablesorrepeatingsections.
![Page 3134: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3134.jpg)
Definition
<xsd:attributename="masterViewContext"type="xsd:string"></xsd:attribute>
![Page 3135: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3135.jpg)
RemarksThevalueofthemasterViewContextattributespecifiesanelementthathasanxd:CtrLIdattributewithamatchingvalueintheHTMLthatrepresentsaviewoftheform.Forexample,amasterViewContextattributewithavalueof"myID"correspondstotheelementthathasavalueof"myID"foritsxd:CtrlIdattribute.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3136: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3136.jpg)
ExampleThefollowingisanexampleofthemasterViewContextattributeasitisusedinthemasterDetailelement:
<xsf:editWithcaption="group2"xd:autogeneration="template"component="xCollection"><xsf:masterDetailmasterViewContext="CTRL1_5"master="my:group2"masterKey="my:field1"detailKey="my:field3"></xsf:masterDetail></xsf:editWith>
![Page 3137: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3137.jpg)
ShowAll
![Page 3138: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3138.jpg)
matchAttribute(domEventHandlerElement)
IdentifiestheXMLDocumentObjectModel(DOM)nodeforwhichtheeventhandlerisdeclared.
![Page 3139: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3139.jpg)
Type
xsd:string
![Page 3140: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3140.jpg)
RemarksThematchattributeisarequiredattributeofthedomEventHandlerelement.
ThevaluemustbeavalidXPathexpressionthatidentifiestheXMLDOMnode.
NoteTheXPathexpressioncannotcontainpredicates.
![Page 3141: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3141.jpg)
ExampleThefollowingisanexampleofthematchattributeasitisusedinthedomEventHandlerelement:
<xsf:domEventHandlers><xsf:domEventHandlermatch="TravelReport/Expenses"handlerObject="TravelExpenses"/></xsf:domEventHandlers>
![Page 3142: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3142.jpg)
ShowAll
![Page 3143: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3143.jpg)
matchAttribute(errorConditionElement)
IdentifiestheXMLDocumentObjectModel(DOM)nodesonwhichthecustomvalidationisdeclared.
![Page 3144: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3144.jpg)
Type
xsd:string
![Page 3145: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3145.jpg)
RemarksThematchattributeisarequiredattributeoftheerrorConditionelement.
![Page 3146: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3146.jpg)
ExampleThefollowingisanexampleofthematchattributeasitisusedintheerrorConditionelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 3147: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3147.jpg)
ShowAll
![Page 3148: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3148.jpg)
matchAttribute(overrideElement)
IdentifiestheXMLDocumentObjectModel(DOM)nodeforwhichtheerrormessageoverrideisdefined.
![Page 3149: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3149.jpg)
Type
xsd:string
![Page 3150: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3150.jpg)
RemarksThematchattributeisarequiredattributeoftheoverrideelement.
ThevalueofthematchattributemustbeavalidXPathexpressionthatidentifiestheXMLDOMnode.
![Page 3151: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3151.jpg)
ExampleThefollowingisanexampleofthematchattributeasitisusedintheoverrideelement:
<xsf:schemaErrorMessages><xsf:overridematch="/sampleData/number"><xsf:errorMessageshortMessage="InvalidNumber.">Thevalueenteredmustbeavalidnumber.</xsf:errorMessage></xsf:override></xsf:schemaErrorMessages>
![Page 3152: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3152.jpg)
ShowAll
![Page 3153: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3153.jpg)
matchAttribute(partFragmentElement)
ContainsanXPathexpressionthatidentifiestheelementsandattributesinsidetheinputSimpleObjectAccessProtocol(SOAP)messagethataretobereplacedatruntime.
![Page 3154: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3154.jpg)
Type
xsd:string
![Page 3155: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3155.jpg)
RemarksThematchattributeisarequiredattributeofthepartFragmentelement.
![Page 3156: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3156.jpg)
ExampleThefollowingisanexampleofthematchattributeasitisusedinthepartFragmentelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"><xsf:partFragmentmatch="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"replaceWith="/dfs:myFields/dfs:dataFields/s0:IsPrime"/></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3157: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3157.jpg)
maxLengthAttribute
Definesthelengthofthefieldinnumberofbytes.
![Page 3158: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3158.jpg)
Type
xsd:byte
![Page 3159: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3159.jpg)
RemarksThemaxLengthattributeisanoptionalattributeofthefieldelement.
![Page 3160: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3160.jpg)
ExampleThefollowingisanexampleofthemaxLengthattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"maxLength="10"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 3161: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3161.jpg)
maxLengthAttribute(editWithElement)
Specifiesthemaximumnumberofcharactersallowedforplainsinglelinetextboxes.
![Page 3162: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3162.jpg)
Typexsd:simpleType
![Page 3163: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3163.jpg)
ParentElements
Element DescriptioneditWith Specifiesaninstanceofaneditingcomponent,andprovides
thecorrespondingparameterstodetermineitsexactbehavior.
![Page 3164: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3164.jpg)
Definition
<xsd:attributename="maxLength"use="optional"><xsd:simpleType><xsd:restrictionbase="xsd:integer"><xsd:minInclusivevalue="-1"/><xsd:maxInclusivevalue="9999"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3165: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3165.jpg)
RemarksThemaxLengthattributeisonlyvalidforplain-texteditcontrolsthatdonotallowparagraphbreaks.SuchcontrolscorrespondtoeditWithelementswithacomponentattributesetto"xField"andatypeattributesetto"plain"(orwithoutatypeattributespecified).
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3166: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3166.jpg)
ExampleThefollowingisanexampleofthemaxLengthattributeasitisusedintheeditWithelement:
<editWithcomponent="xField"maxLength="100">
![Page 3167: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3167.jpg)
maxVersionToUpgradeAttribute
Inclusivevalueforthelatestformthatneedstobeupgraded.
![Page 3168: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3168.jpg)
Type
xsf:xdSolutionVersion
![Page 3169: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3169.jpg)
RemarksThemaxVersionToUpgradeattributeisanoptionalattributeoftheuseTransformelement.
![Page 3170: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3170.jpg)
ExampleThefollowingexampleshowsthemaxVersionToUpgradeattributeasitisusedintheuseTransformelement:
<xsf:documentVersionUpgrade><xsf:useTransformtransform="upgrade.xsl"minVersionToUpgrade="0.0.0.0"maxVersionToUpgrade="1.0.0.5"/></xsf:documentVersionUpgrade>
![Page 3171: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3171.jpg)
ShowAll
![Page 3172: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3172.jpg)
memberOfAttribute(getUserNameFromDataElement)
SpecifiestheroletobeassociatedwithauserwhoseusernameisreturnedbyanXPathqueryofadatasource.
![Page 3173: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3173.jpg)
Typexsd:string
![Page 3174: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3174.jpg)
ParentElements
Element DescriptiongetUserNameFromData RetrievesausernamebyusinganXPath
queryofthedatainthemaindatasourceorinasecondarydatasource.
![Page 3175: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3175.jpg)
Definition
<xsd:attributename="memberOf"type="xsd:string"use="required"></xsd:attribute>
![Page 3176: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3176.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3177: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3177.jpg)
ExampleThefollowingisanexampleofthememberOfattributeasitisusedinthegetUserNameFromDataelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"<xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3178: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3178.jpg)
memberOfAttribute(groupElement)
Specifiestheroletowhichagroupisassigned.
![Page 3179: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3179.jpg)
Typexsd:string
![Page 3180: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3180.jpg)
ParentElements
Element Descriptiongroup Associatesagroupwithaparticularrole.
![Page 3181: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3181.jpg)
Definition
<xsd:attributename="memberOf"type="xsd:string"use="required"></xsd:attribute>
![Page 3182: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3182.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3183: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3183.jpg)
ExampleThefollowingisanexampleofthememberOfattributeasitisusedinthegroupelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3184: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3184.jpg)
memberOfAttribute(userNameElement)
Specifiestheroletowhichauserisassigned.
![Page 3185: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3185.jpg)
Typexsd:string
![Page 3186: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3186.jpg)
ParentElements
Element DescriptionuserName Associatesauserwithaparticularrole.
![Page 3187: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3187.jpg)
Definition
<xsd:attributename="memberOf"type="xsd:string"use="required"></xsd:attribute>
![Page 3188: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3188.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3189: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3189.jpg)
ExampleThefollowingisanexampleofthememberOfattributeasitisusedintheuserNameelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3190: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3190.jpg)
methodAttribute
SpecifiestheHTTPmethodtouseforthesubmitoperation.
![Page 3191: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3191.jpg)
Type
xsd:NMTOKEN
![Page 3192: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3192.jpg)
RemarksThemethodattributeisarequiredattributeoftheuseHttpHandlerelement.
Theonlysupportedvalueis"POST".
![Page 3193: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3193.jpg)
ExampleThefollowingisanexampleofthemethodattributeasitisusedbytheuseHttpHandlerelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useHttpHandler>href="http://MyServer/InfoPathScripts/MyScript.asp"method="POST"</xsf:useHttpHandler><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 3194: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3194.jpg)
ShowAll
![Page 3195: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3195.jpg)
minVersionToUpgradeAttribute
Inclusivevaluefortheoldestformthatcanbeupgraded.
![Page 3196: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3196.jpg)
Type
xsf:xdSolutionVersion
![Page 3197: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3197.jpg)
RemarksTheminVersionToUpgradeattributeisarequiredattributeoftheuseTransformelement.
TheminVersionToUpgradeattributeisusedtopreventrunningtheXSLTransformation(XSLT)onformssodifferentfromthecurrentonethattheXSLTcausesriskofdataloss.
![Page 3198: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3198.jpg)
ExampleThefollowingexampleshowstheminVersionToUpgradeattributeasitisusedintheuseTransformelement:
<xsf:documentVersionUpgrade><xsf:useTransformtransform="upgrade.xsl"minVersionToUpgrade="0.0.0.0"maxVersionToUpgrade="1.0.0.5"/></xsf:documentVersionUpgrade>
![Page 3199: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3199.jpg)
modeAttribute
SpecifiesthesignaturerelationshipforthesignedDataBlockelement.
![Page 3200: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3200.jpg)
Typexsf:xdSignatureRelationEnum
![Page 3201: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3201.jpg)
ParentElements
Element DescriptionsignedDataBlock Definesanodesetintheform'sunderlyingXML
documenttowhichadigitalsignaturecanbeapplied
![Page 3202: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3202.jpg)
Definition
<xsd:attributename="mode"type="xsf:xdSignatureRelationEnum"use="required"></xsd:attribute>
![Page 3203: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3203.jpg)
RemarksThedefaultmodeofasignedDataBlockelementissingle.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3204: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3204.jpg)
ExampleThefollowingisanexampleofthemodeattributeasitisusedinthesignedDataBlockelement:
<xsf:documentSignatures><xsf:signedDataBlockname="main"data="my:myfields/my:subtree1|my:myfields/my:subtree2"signatureLocation="my:mifields/sig:signatures/main"mode="countersign"><xsf:message>Bypressingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 3205: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3205.jpg)
nameAttribute(actionElement)
TheuniquenameoftheactionasspecifiedbytheMicrosoftBizTalk2003HumanWorkflowServices(HWS)workflowdesigner.
![Page 3206: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3206.jpg)
Typexsf:xdHWSname
![Page 3207: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3207.jpg)
ParentElements
Element Descriptionaction Containstheinformationforanindividualaction.
![Page 3208: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3208.jpg)
Definition
<xsd:attributename="name"type="xsf:xdHWSname"use="required"></xsd:attribute>
![Page 3209: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3209.jpg)
RemarksThenameattributeisarequiredattributeoftheactionelement.
ThenameisusedfortheonClickeventofthecorrespondingbuttonintheWorkflowtaskpane.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3210: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3210.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheactionelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3211: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3211.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3212: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3212.jpg)
ShowAll
![Page 3213: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3213.jpg)
nameattribute(adoAdapterelement)
ContainsthenameoftheadoAdapterelement.
![Page 3214: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3214.jpg)
Typexsf:xdTitle
![Page 3215: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3215.jpg)
ParentElements
Element DescriptionadoAdapter DefinesanActiveXDataObjects(ADO)dataadapterthat
retrievesdatafromanADOdatasourceforthespecifieddataobject.
![Page 3216: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3216.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="optional"></xsd:attribute>
![Page 3217: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3217.jpg)
RemarksThenameattributeisanoptionalattributeoftheadoAdapterelement.
![Page 3218: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3218.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheadoAdapterelement:
<xsf:query><xsf:adoAdaptername="EmpInformation"connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 3219: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3219.jpg)
ShowAll
![Page 3220: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3220.jpg)
nameAttribute(buttonElement)
UsedtoassociatetheOnClickeventhandlerofthebuttonwithascriptingfunction.
![Page 3221: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3221.jpg)
Type
xsd:NMTOKEN
![Page 3222: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3222.jpg)
RemarksThenameattributeisanoptionalattributeofthebuttonelement,butisrequiredforbuttonsthatusescriptingcodefortheiractions.
![Page 3223: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3223.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthebuttonelement:
<xsf:menuAreaname="msoViewMenu"><xsf:buttoncaption="CDCollection"name="SwitchToView0"></xsf:button><xsf:buttoncaption="AllTracks"name="SwitchToView1"></xsf:button></xsf:menuArea>
Intheform'sinternalscriptingfile,thefollowingeventhandlersareusedforthebuttonactions:
functionSwitchToView0::OnClick(){XDocument.View.SwitchView("CDCollection");}
functionSwitchToView1::OnClick(){XDocument.View.SwitchView("AllTracks");}
![Page 3224: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3224.jpg)
ShowAll
![Page 3225: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3225.jpg)
nameAttribute(customCategoryElement)
Specifiesthenameofthecustomcategory.
![Page 3226: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3226.jpg)
Typexsf:xdTitle
![Page 3227: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3227.jpg)
ParentElements
Element DescriptioncustomCategory Specifiesthecategorythattheformtemplateappears
underintheFillOutaFormtaskpane.
![Page 3228: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3228.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute>
![Page 3229: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3229.jpg)
RemarksThenameattributeisarequiredattributeofthecustomCategoryelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3230: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3230.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthecustomCategoryelement:
<xsf:customCategoryname="Reports"/>
![Page 3231: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3231.jpg)
nameAttribute(dataObjectElement)
Theuniquenameforthedataobject.
![Page 3232: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3232.jpg)
Type
xsf:xdTitle
![Page 3233: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3233.jpg)
RemarksThenameattributeisarequiredattributeofthedataObjectelement.
![Page 3234: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3234.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthedataObjectelement:
<xsf:dataObjects><xsf:dataObjectname="EmployeeNames"schema="EmployeeNames.xsd"initOnLoad="yes"><xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter> </xsf:query> </xsf:dataObject> </xsf:dataObjects>
![Page 3235: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3235.jpg)
ShowAll
![Page 3236: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3236.jpg)
nameAttribute(davAdapterElement)
ThenameofadavAdapter,usedtoinvoketheadapterfromformcode.
![Page 3237: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3237.jpg)
Typexsf:xdTitle
![Page 3238: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3238.jpg)
ParentElements
Element DescriptiondavAdapterContainsinformationtoenableInfoPathfilestobe
submittedtoaserverthatisrunningMicrosoftWindowsSharePointServicesoraWeb-basedDistributedAuthoringandVersioning(WebDAV)server.
![Page 3239: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3239.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute>
![Page 3240: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3240.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3241: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3241.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthedavAdapterelement:
<xsf:davAdaptername="SubmitToSharePoint"overwriteAllowed="yes"submitAllowed="yes"><xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/><xsf:folderURLvalue="http://some_server/some_doc_lib"/></xsf:davAdapter>
![Page 3242: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3242.jpg)
nameAttribute(emailAdapterElement)
ContainsthenameoftheemailAdapterelement.
![Page 3243: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3243.jpg)
Typexsf:xdTitle
![Page 3244: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3244.jpg)
ParentElements
Element DescriptionemailAdapter ContainstheinformationtosubmitanInfoPathfileasan
attachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 3245: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3245.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute>
![Page 3246: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3246.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3247: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3247.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheemailAdapterelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="my:bccNames"valueType="expression"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 3248: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3248.jpg)
nameAttribute(extensionElement)
Auniquenameidentifyingtheextensionbeingspecified.
![Page 3249: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3249.jpg)
Type
xsd:NMTOKEN
![Page 3250: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3250.jpg)
RemarksThenameattributeisarequiredattributeoftheextensionelement.
NoteUseoftheextensionelementisreserved.MicrosoftOfficeInfoPath2003ignoresanycontentwithintheextensionelement.
![Page 3251: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3251.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheextensionelement:
<xsf:extensions><xsf:extensionname="someValue"anyAttributesHere="someValue">...opencontentmodelhere...</xsf:extension><xsf:extensions>
![Page 3252: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3252.jpg)
ShowAll
![Page 3253: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3253.jpg)
nameAttribute(externalViewElement)
ContainsthenameofanexternalViewelement.
![Page 3254: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3254.jpg)
Typexsf:xdViewName
![Page 3255: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3255.jpg)
ParentElements
Element DescriptionexternalViewDefinesaviewthatcannotbeeditedinInfoPath.
![Page 3256: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3256.jpg)
Definition
<xsd:attributename="name"type="xsf:xdViewName"use="required"></xsd:attribute>
![Page 3257: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3257.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3258: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3258.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheexternalViewelement:
<xsf:externalViews><xsf:externalViewname="SalesDoc"><xsf:mainpanetransform="myWordView.xsl"/></xsf:externalView><xsf:externalViews>
![Page 3259: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3259.jpg)
nameAttribute(fieldElement)
Identifiesthefriendlynameofthefieldtobeusedontheformlistview.
![Page 3260: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3260.jpg)
Type
xsf:xdTitle
![Page 3261: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3261.jpg)
RemarksThenameattributeisarequiredattributeofthefieldelement.
![Page 3262: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3262.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 3263: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3263.jpg)
ShowAll
![Page 3264: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3264.jpg)
nameAttribute(fileElement)
Specifiesthenameofthefile.
![Page 3265: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3265.jpg)
Type
xsf:xdFileName
![Page 3266: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3266.jpg)
RemarksThenameattributeisarequiredattributeofthefileelement.
ThismustbearelativeURLfromtheURLoftheformdefinition(.xsf)file.Allfilesspecifiedhereareinsidetheformtemplate,soabsoluteURLsarenotsupported.
![Page 3267: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3267.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthefileelement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 3268: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3268.jpg)
nameAttribute(groupElement)
Specifiesthenameofagroupofuserstobeassignedtoaparticularrole.
![Page 3269: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3269.jpg)
Typexsd:string
![Page 3270: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3270.jpg)
ParentElements
Element Descriptiongroup Associatesagroupwithaparticularrole.
![Page 3271: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3271.jpg)
Definition
<xsd:attributename="name"type="xsd:string"use="required"></xsd:attribute>
![Page 3272: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3272.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3273: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3273.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthegroupelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3274: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3274.jpg)
nameAttribute(hwsAdapterElement)
Containsthenameofthedataadapter.
![Page 3275: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3275.jpg)
Typexsf:xdTitle
![Page 3276: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3276.jpg)
ParentElements
Element DescriptionhwsAdapter DefinestheMicrosoftBiztalk2004HWS(HumanWorkflow
Services)dataadaptertostartorextendanactivityflow,andrespondtoatask.
![Page 3277: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3277.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute>
![Page 3278: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3278.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3279: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3279.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthehwsAdapterelement:
<hwsAdapter name="xsf:xdTitle" wsdlUrl="xsd:string" queryAllowed="xsf:xdYesNo" submitAllowed="xsf:xdYesNo"><hwsOperationtype="xsd:string"typeID="xsd:string"serviceUrl="xsd:string"/></hwsAdapter>
![Page 3280: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3280.jpg)
ShowAll
![Page 3281: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3281.jpg)
nameAttribute(importSourceElement)
Identifiesthenameofthesourceformasdefinedintheprocessinginstructionofthatform’sunderlyingXMLdocument.
![Page 3282: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3282.jpg)
Type
xsd:string
![Page 3283: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3283.jpg)
RemarksThenameattributeisarequiredattributeoftheimportSourceelement.
![Page 3284: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3284.jpg)
ExampleThefollowingisanexampleofthenameattributeasitusedintheimportSourceelement:
<xsf:importParametersenabled="yes"<xsf:importSourcename="MyForm"schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 3285: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3285.jpg)
nameAttribute(menuAreaElement)
Correspondstooneofthebuilt-inMicrosoftOfficeInfoPath2003top-levelmenus.
![Page 3286: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3286.jpg)
Type
xsd:NMTOKEN
![Page 3287: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3287.jpg)
RemarksThenameattributeisarequiredattributeofthemenuAreaelement.
Therecannotbemorethanonemenuareawiththesamenamewithinagivenview.
InfoPathhasthefollowingnamedmenuareasthatcorrespondtothebuilt-inmenuelementsthatcanbecustomizedusingthemenuAreaelement:
Name DescriptionmsoFileMenu MenuitemsthatareaddedtotheFile
menu.msoEditMenu Menuitemsthatareaddedtothe
Editmenu.msoInsertMenu Menuitemsthatareaddedtothe
Insertmenu.msoViewMenu Menuitemsthatareaddedtothe
Viewmenu.msoFormatMenu Menuitemsthatareaddedtothe
Formatmenu.msoToolsMenu Menuitemsthatareaddedtothe
Toolsmenu.msoTableMenu Menuitemsthatareaddedtothe
Tablemenu.msoHelpMenu Menuitemsthatareaddedtothe
Helpmenu.msoStructuralEditingContextMenu Menuitemsthatareaddedtothe
right-clickshortcutmenu.
![Page 3288: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3288.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthemenuAreaelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 3289: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3289.jpg)
nameAttribute(operationElement)
ContainstheuniquenameoftheWebservicemethod.
![Page 3290: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3290.jpg)
Type
xsd:string
![Page 3291: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3291.jpg)
RemarksThenameattributeisarequiredattributeoftheoperationelement.
![Page 3292: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3292.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheoperationelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3293: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3293.jpg)
nameAttribute(propertyElement)
Definesthenameoftheproperty.
![Page 3294: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3294.jpg)
Type
xsd:string
![Page 3295: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3295.jpg)
RemarksThenameattributeisarequiredattributeofthepropertyelement.AfileTypevalueof"ActiveX-CAB"identifiesthatthefileisa.cabfileaddedbythedesignerandindicatesthatthefileshouldbemanagedbytheActiveXsupportfeaturesofthedesigner.Thetimestamppropertyidentifiesthelatestversionofthe.cabfile.TheversioninformationisusedforautomaticallyupdatingthefilewhenthedeveloperhasamorerecentversionintheActiveXICT/CABdirectory.
![Page 3296: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3296.jpg)
ExampleThefollowingareexamplesofthenameattributeasitisusedinthepropertyelement:
<xsf:files><xsf:filename="example.cab"><xsf:fileProperties><xsf:propertyname="fileType"type="string"value="ActiveX-CAB"/><xsf:propertyname="timestamp"type="string"value="xyz"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 3297: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3297.jpg)
nameAttribute(roleElement)
Specifiesastringthatcanbeusedtoidentifyaparticularrole.
![Page 3298: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3298.jpg)
Typexsf:xdRoleName
![Page 3299: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3299.jpg)
ParentElements
Element Descriptionrole Definesrole.
![Page 3300: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3300.jpg)
Definition
<xsd:attributename="name"type="xsf:xdRoleName"use="required"></xsd:attribute>
![Page 3301: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3301.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3302: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3302.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheroleelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\groupname1"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3303: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3303.jpg)
nameAttribute(ruleSetElement)
ContainsthenameoftheruleSetelement.
![Page 3304: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3304.jpg)
Typexsd:string
![Page 3305: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3305.jpg)
ParentElements
Element DescriptionruleSet Containsoneormoreruleelements.
![Page 3306: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3306.jpg)
Definition
<xsd:attributename="name"type="xsd:string"use="required"></xsd:attribute>
![Page 3307: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3307.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3308: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3308.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheruleSetelement:
<xsf:ruleSets><xsf:ruleSetname="RuleSet1"><xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetreceipts!</xsf:dialogBoxMessageAction><xsf:openNewDocumentActionsolution="urn:approvalForm"/><xsf:exitRuleSet/></xsf:rule><xsf:rulecaption="AlwaysSubmit"isEnabled="no"><xsf:submitActionadapter="ExpenseDatabase"/></xsf:rule></xsf:ruleSet>
<xsf:ruleSetname="RuleSet2"><xsf:rulecaption="Lookupcontact"><xsf:queryActionadapter="Contacts"/></xsf:rule></xsf:ruleSet></xsf:ruleSets>
![Page 3309: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3309.jpg)
ShowAll
![Page 3310: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3310.jpg)
nameAttribute(sharepointListAdapterElement)
ContainsthenameofthesharepointListAdapterelement;alsousedasthesecondarydatasourcename.
![Page 3311: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3311.jpg)
Typexsf:xdTitle
![Page 3312: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3312.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationtoquery
aSharePointlistorlibrary.
![Page 3313: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3313.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="required"></xsd:attribute>
![Page 3314: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3314.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3315: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3315.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl="http://www.contoso.com/reports/"sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="ContosoReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 3316: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3316.jpg)
nameAttribute(signedDataBlockElement)
ContainsthenameofthesignedDataBlockelement.
![Page 3317: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3317.jpg)
Typexsf:xdSignedDataBlockName
![Page 3318: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3318.jpg)
ParentElements
Element DescriptionsignedDataBlock Definesanodesetintheform'sunderlyingXML
documenttowhichadigitalsignaturecanbeapplied.
![Page 3319: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3319.jpg)
Definition
<xsd:attributename="name"type="xsf:xdSignedDataBlockName"use="required"></xsd:attribute>
![Page 3320: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3320.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3321: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3321.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthesignedDataBlockelement:
<xsf:documentSignatures><xsf:signedDataBlockname="main"data="my:myfields/my:subtree1|my:myfields/my:subtree2"signatureLocation="my:mifields/sig:signatures/main"mode="countersign"><xsf:message>Byclickingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 3322: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3322.jpg)
ShowAll
![Page 3323: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3323.jpg)
nameAttribute(taskElement)
TheuniquenameofthetaskasspecifiedbytheMicrosoftBiztalkServer2004HWS(HumanWorkflowServices)workflowdesigner.
![Page 3324: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3324.jpg)
Typexsf:xdHWSname
![Page 3325: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3325.jpg)
ParentElements
Element Descriptiontask TheHWStaskinformationenabledfortheform
![Page 3326: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3326.jpg)
Definition
<xsd:attributename="name"type="xsf:xdHWSname"use="required"></xsd:attribute>
![Page 3327: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3327.jpg)
RemarksThenameattributeisusedfortheonClickeventofthebuttonintheWorkflowtaskpane.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3328: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3328.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthetaskelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3329: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3329.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3330: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3330.jpg)
nameAttribute(toolbarElement)
Identifiesthecorrespondingtoolbarwithindifferentviews.
![Page 3331: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3331.jpg)
Type
xsf:xdTitle
![Page 3332: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3332.jpg)
RemarksThenameattributeisarequiredattributeofthetoolbarelement.
Mustbeuniquewithinagivensolution.
![Page 3333: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3333.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthetoolbarelement:
<xsf:toolbarcaption="CDCollectionToolbar"name="CDCollectionToolbar"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="NewCD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="NewTrack"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="NewLabel"showIf="always"></xsf:button><xsf:menucaption="Remove"><xsf:buttonaction="xCollection::remove"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::remove"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::remove"xmlToEdit="Label_16"caption="Label"showIf="always"></xsf:button></xsf:menu></xsf:toolbar>
![Page 3334: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3334.jpg)
nameAttribute(userNameElement)
Specifiesthenameofausertobeassignedtoaparticularrole.
![Page 3335: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3335.jpg)
Typexsd:string
![Page 3336: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3336.jpg)
ParentElements
Element DescriptionuserName Associatesauserwithaparticularrole.
![Page 3337: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3337.jpg)
Definition
<xsd:attributename="name"type="xsd:string"use="required"></xsd:attribute>
![Page 3338: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3338.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3339: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3339.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheuserNameelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="domain\username1"memberOf="A"/><xsf:userNamename="domain\username2"memberOf="B"/><xsf:groupname="domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3340: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3340.jpg)
nameAttribute(viewElement)
Identifiestheviewforobjectmodelcallswhenswitchingviews,andforspecifyingthedefaultview.
![Page 3341: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3341.jpg)
Type
xsf:xdViewName
![Page 3342: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3342.jpg)
RemarksThenameattributeisarequiredattributeoftheviewelement.
![Page 3343: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3343.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedintheviewelement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 3344: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3344.jpg)
ShowAll
![Page 3345: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3345.jpg)
nameAttribute(webServiceAdapterElement)
ContainsthenameofthewebServiceAdapterelement.
![Page 3346: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3346.jpg)
Typexsf:xdTitle
![Page 3347: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3347.jpg)
ParentElements
Element DescriptionwebServiceAdapter DefinesaWebservicedataadapterthatretrieves
datafromaWebserviceforthespecifieddataobject.
![Page 3348: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3348.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="optional"></xsd:attribute>
![Page 3349: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3349.jpg)
RemarksThenameattributeisanoptionalattributeofthewebServiceAdapterelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3350: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3350.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthewebServiceAdapterelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"useDataSet="no"><xsf:operationname="getOrders"soapAction="http://www.contoso.com/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3351: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3351.jpg)
ShowAll
![Page 3352: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3352.jpg)
nameAttribute(xDocumentClassElement)
Providesaunique,UniformResourceName(URN)–basednamefortheformthattheformdefinition(.xsf)filedefines.
![Page 3353: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3353.jpg)
Type
xsd:string
![Page 3354: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3354.jpg)
RemarksThenameattributeisanoptionalattributeofthexDocumentClasselement.
Ifthisattributeismissing,theformisnamedfromtheUniformResourceLocator(URL)orformdefinitionfilename,whichcanbeobtainedfromtheprocessinginstructionsoftheform'sunderlyingXMLdocument.
![Page 3355: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3355.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 3356: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3356.jpg)
nameAttribute(xmlFileAdapterElement)
ContainsthenameofthexmlFileAdapterelement.
![Page 3357: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3357.jpg)
Typexsf:xdTitle
![Page 3358: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3358.jpg)
ParentElements
Element DescriptionxmlFileAdapter Definesan.xmlfiledataadapterthatretrievesdata
froman.xmlfileforthespecifieddataobject.
![Page 3359: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3359.jpg)
Definition
<xsd:attributename="name"type="xsf:xdTitle"use="optional"></xsd:attribute>
![Page 3360: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3360.jpg)
RemarksThenameattributeisanoptionalattributeofthexmlFileAdapterelement.
![Page 3361: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3361.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthexmlFileAdapterelement:
<xsf:query><xsf:xmlFileAdaptername="CurrencyInfo"fileUrl="currencies.xml"/></xsf:query>
![Page 3362: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3362.jpg)
nameAttribute(xmlToEditElement)
UsedinthexmlToEditattributeofthebuttonelementtoassociateactionsoftheassociatededitingcomponenttobuttonsdefinedinmenusandtoolbars.
![Page 3363: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3363.jpg)
Type
xsd:NMTOKEN
![Page 3364: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3364.jpg)
RemarksThenameattributeisarequiredattributeofthexmlToEditelement.
ThereshouldbenomorethanonexmlToEditelementwiththesamenameinagivenview.
![Page 3365: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3365.jpg)
ExampleThefollowingisanexampleofthenameattributeasitisusedinthexmlToEditelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 3366: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3366.jpg)
ShowAll
![Page 3367: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3367.jpg)
nodeAttribute
DefinestheXPathexpressionneededtoextractthevalueofthespecifiedpropertyfromtheform'sunderlyingXMLdocument.
![Page 3368: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3368.jpg)
Type
xsd:string
![Page 3369: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3369.jpg)
RemarksThenodeattributeisarequiredattributeofthefieldelement.
![Page 3370: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3370.jpg)
ExampleThefollowingisanexampleofthenodeattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 3371: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3371.jpg)
onAfterSubmitAttribute
Specifieswhethertheformshouldbeclosed,keptopen,orifanewformshouldbecreatedafterasuccessfulsubmission.
![Page 3372: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3372.jpg)
Type
xsd:NMTOKEN
![Page 3373: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3373.jpg)
RemarksTheonAfterSubmitattributeisanoptionalattributeofthesubmitelement.
Valuesinclude"Close","KeepOpen",and"OpenNew".Thedefaultvalueis"KeepOpen".
Ifthesubmitoperationisnotsuccessful,thentheonAfterSubmitattributeisignoredandtheformiskeptopen.
![Page 3374: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3374.jpg)
ExampleThefollowingisanexampleoftheonAfterSubmitattributeasitisusedinthesubmitelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 3375: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3375.jpg)
orientationAttribute
Specifiestheorientationwhenprintingaview.
![Page 3376: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3376.jpg)
Type
xsd:NMTOKEN
![Page 3377: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3377.jpg)
RemarksTheorientationattributeisanoptionalattributeoftheprintSettingselement.
Valuesinclude"portrait"and"landscape".
![Page 3378: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3378.jpg)
ExampleThefollowingisanexampleoftheorientationattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 3379: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3379.jpg)
ShowAll
![Page 3380: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3380.jpg)
overwriteAllowedAttributeSpecifieswhethertheadaptercanoverwriteanexistingfile.
![Page 3381: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3381.jpg)
Typexsf:xdYesNo
![Page 3382: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3382.jpg)
ParentElements
Element DescriptiondavAdapterContainsinformationtoenableInfoPathfilestobe
submittedtoaMicrosoftWindowsSharePointServicesserveroraWeb-basedDistributedAuthoringandVersioning(WebDAV)server.
![Page 3383: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3383.jpg)
Definition
<xsd:attributename="overwriteAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3384: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3384.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3385: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3385.jpg)
ExampleThefollowingisanexampleoftheoverwriteAllowedattributeasitisusedinthedavAdapterelement:
<xsf:davAdaptername="SubmitToSharePoint"overwriteAllowed="yes"submitAllowed="yes"><xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/><xsf:folderURLvalue="http://some_server/some_doc_lib"/></xsf:davAdapter>
![Page 3386: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3386.jpg)
pageRangeEndAttribute
Specifiesthelastpagetobeprinted.
![Page 3387: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3387.jpg)
Typexsd:Integer
![Page 3388: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3388.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 3389: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3389.jpg)
Definition
<xsd:attributename="pageRangeEnd"><xsd:simpleType><xsd:restrictionbase="xsd:integer"><xsd:minInclusivevalue="1"/><xsd:maxInclusivevalue="32000"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3390: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3390.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3391: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3391.jpg)
ExampleThefollowingisanexampleofthepageRangeEndattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 3392: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3392.jpg)
pageRangeStartAttribute
Specifiesthefirstpagetobeprinted.
![Page 3393: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3393.jpg)
Typexsd:Integer
![Page 3394: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3394.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 3395: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3395.jpg)
Definition
<xsd:attributename="pageRangeStart"><xsd:simpleType><xsd:restrictionbase="xsd:integer"><xsd:minInclusivevalue="1"/><xsd:maxInclusivevalue="32000"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3396: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3396.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3397: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3397.jpg)
ExampleThefollowingisanexampleofthepageRangeStartattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 3398: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3398.jpg)
paperSizeattribute
Specifiesthesizeofthepaper.
![Page 3399: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3399.jpg)
Typexsd:String
![Page 3400: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3400.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 3401: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3401.jpg)
Definition
<xsd:attributename="paperSize"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3402: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3402.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3403: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3403.jpg)
ExampleThefollowingisanexampleofthepaperSizeattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 3404: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3404.jpg)
paperSourceAttribute
Specifiesthesourceofthepaper.
![Page 3405: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3405.jpg)
Typexsd:String
![Page 3406: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3406.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 3407: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3407.jpg)
Definition
<xsd:attributename="paperSource"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3408: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3408.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3409: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3409.jpg)
ExampleThefollowingisanexampleofthepaperSourceattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 3410: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3410.jpg)
ShowAll
![Page 3411: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3411.jpg)
parentAttribute
SpecifiesarelativeXPathexpressionfromthecontainernode.
![Page 3412: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3412.jpg)
Type
xsd:string
![Page 3413: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3413.jpg)
RemarksTheparentattributeisanoptionalattributeofthechooseFragmentelement.
ReferstotheXMLDocumentObjectModel(DOM)nodeunderwhichthisfragmentshouldbeinserted.Thedefaultvalueis".",whichcorrespondstoinsertingdirectlyunderthecontainerparentnode.
![Page 3414: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3414.jpg)
ExampleThefollowingisanexampleoftheparentattributeasitisusedinthechooseFragmentelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"followingSiblings="."><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 3415: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3415.jpg)
printerNameAttribute
Specifiestheprintername.
![Page 3416: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3416.jpg)
Typexsd:String
![Page 3417: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3417.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 3418: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3418.jpg)
Definition
<xsd:attributename="printerName"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3419: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3419.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3420: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3420.jpg)
ExampleThefollowingisanexampleoftheprinterNameattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer></xsf:printSettings>
![Page 3421: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3421.jpg)
printerSpecificSettingsAttribute
Specifiessettingsforaparticularprinter.
![Page 3422: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3422.jpg)
Typexsd:String
![Page 3423: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3423.jpg)
ParentElements
Element DescriptionprintSettings Specifiestheprintersettingsusedwhenprintingtheview.
![Page 3424: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3424.jpg)
Definition
<xsd:attributename="printerSpecificSettings"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:maxLengthvalue="255"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3425: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3425.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3426: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3426.jpg)
ExampleThefollowingisanexampleoftheprinterSpecificSettingsattributeasitisusedintheprintSettingselement:
<xsf:printSettingsorientation="landscape"header="&Pqsdf"footer="&D"printerName="\\printserver\printer"paperSource="AutoSelect"paperSize="EnvelopeDL"topMargin="0.8"leftMargin="0.8"bottomMargin="0.8"rightMargin="0.8"marginUnitsType="in"copies="2"collate="no"pageRangeStart="1"pageRangeEnd="1"printerSpecificSettings="nameoffilethatcontainsprinter-specificsettings"><xsf:header><font><div>&Pqsdf</div></font></xsf:header><xsf:footer><font><div>&D</div></font></xsf:footer>
![Page 3427: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3427.jpg)
</xsf:printSettings>
![Page 3428: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3428.jpg)
printViewAttribute
Specifiesthenameofanotherviewtouseforprintingthisview.
![Page 3429: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3429.jpg)
Type
xsd:string
![Page 3430: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3430.jpg)
RemarksTheprintViewattributeisanoptionalattributeoftheviewelement.
![Page 3431: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3431.jpg)
ExampleThefollowingisanexampleoftheprintViewattributeasitisusedintheviewelement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"printView="PrintView"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 3432: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3432.jpg)
ShowAll
![Page 3433: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3433.jpg)
productVersionAttribute
IdentifiestheversionnumberofMicrosoftOfficeInfoPath2003formtemplatewithwhichtheformwascreatedorforwhichaparticularformisintended.
![Page 3434: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3434.jpg)
Type
xsd:string
![Page 3435: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3435.jpg)
RemarksTheproductVersionattributeisanoptionalattributeofthexDocumentClasselement.
Itsformatis####.####.####(major.minor.build).
![Page 3436: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3436.jpg)
ExampleThefollowingisanexampleoftheproductVersionattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 3437: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3437.jpg)
ShowAll
![Page 3438: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3438.jpg)
promptToSaveChangesAttribute
Specifieswhethertheuserispromptedtosavechangestotheformbeforetheactioncompletes.
![Page 3439: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3439.jpg)
Typexsf:xdYesNo
![Page 3440: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3440.jpg)
ParentElements
Element DescriptioncloseDocumentActionDefinesaformcloseaction.
![Page 3441: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3441.jpg)
Definition
<xsd:attributename="promptToSaveChanges"type="xsf:xdYesNo"use="required"></xsd:attribute>
![Page 3442: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3442.jpg)
RemarksThedefaultvalueis"yes".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3443: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3443.jpg)
ExampleThefollowingisanexampleofthepromptToSaveChangesattributeasitisusedinthecloseDocumentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 3444: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3444.jpg)
proofingAttribute
Switchestheproofingfeatures,suchasthespellingchecker,onoroff.
![Page 3445: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3445.jpg)
Type
xsf:xdYesNo
![Page 3446: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3446.jpg)
RemarksTheproofingattributeisanoptionalattributeoftheeditWithelement.
Valuesinclude"yes"and"no".Thedefaultvalueis"yes".
![Page 3447: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3447.jpg)
ExampleThefollowingisanexampleoftheproofingattributeasitisusedintheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"proofing="yes"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 3448: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3448.jpg)
ShowAll
![Page 3449: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3449.jpg)
publishSaveUrlAttribute
ContainsthelocationofthesavedformtemplateifdifferentfromthevalueofthepublishUrlattribute.
![Page 3450: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3450.jpg)
Typexsd:string
![Page 3451: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3451.jpg)
ParentElements
Element DescriptionsolutionProperties Containsdesign-timeinformationaboutanInfoPath
form.
![Page 3452: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3452.jpg)
Definition
<xsd:attributename="publishSaveUrl"type="xsd:string"use="optional"></xsd:attribute>
![Page 3453: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3453.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3454: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3454.jpg)
ExampleThefollowingisanexampleofthepublishSaveUrlattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.1.0.10"fullyEditableNamespace="urn:names?pace1:mynames"/publishSaveUrl="C:\DocumentsandSettings\username\Desktop\Template1.xsn"></xsf:applicationParameters>
![Page 3455: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3455.jpg)
ShowAll
![Page 3456: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3456.jpg)
publishUrlAttribute
Identifieswheretheformwaspublishedandwheretheformtemplateshoulddownloadupdatesfrom.
![Page 3457: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3457.jpg)
Type
xsd:string
![Page 3458: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3458.jpg)
RemarksThepublishUrlattributeisanoptionalattributeofthexDocumentClasselement.
ThepublishUrlattributeissetautomaticallywhenaformispublishedordeployedthroughtheInfoPathdesignmode.Whenaformisopened,itwillattempttoretrievethelatestupdatesfromthepublishedlocation.
![Page 3459: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3459.jpg)
ExampleThefollowingisanexampleofthepublishUrlattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="0.9.0.0"publishUrl="http://MyServer/InfoPathTemplates/MyTemplate.xsn">...</xsf:xDocumentClass>
![Page 3460: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3460.jpg)
queryAllowedAttribute(adoAdapterElement)
Specifieswhetherdatacanberetrievedfromthedatasourcethroughthequerymethodofthedataadapterobject.
![Page 3461: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3461.jpg)
Type
xsf:xdYesNo
![Page 3462: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3462.jpg)
RemarksThequeryAllowedattributeisanoptionalattributeoftheadoAdapterelement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"yes".
![Page 3463: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3463.jpg)
ExampleThefollowingisanexampleofthequeryAllowedattributeasitisusedintheadoAdapterelement:
<xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 3464: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3464.jpg)
ShowAll
![Page 3465: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3465.jpg)
queryAllowedAttribute(davAdapterElement)
Specifieswhethertheadaptercanbeusedforqueryingthedatasource.
![Page 3466: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3466.jpg)
Typexsf:xdYesNo
![Page 3467: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3467.jpg)
ParentElements
Element DescriptiondavAdapterContainsinformationtoenableInfoPathfilestobe
submittedtoaserverthatisrunningMicrosoftWindowsSharepointServicesoraWeb-basedDistributedAuthoringandVersioning(WebDAV)server.
![Page 3468: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3468.jpg)
Definition
<xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3469: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3469.jpg)
RemarksThequeryAllowedattributeisgenerallyomittedforthedavAdapterelement,correspondingtoadefaultvalueof"no".Avalueof"yes"forthisattributecausesanerror.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3470: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3470.jpg)
ExampleThefollowingisanexampleofthequeryAllowedattributeasitisusedinthedavAdapterelement:
<xsf:davAdaptername="SubmitToSharePoint"overwriteAllowed="yes"submitAllowed="yes"queryAllowed="no"><xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/><xsf:folderURLvalue="http://contoso/some_doc_lib"/></xsf:davAdapter>
![Page 3471: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3471.jpg)
queryAllowedAttribute(emailAdapterElement)
Specifieswhethertheadaptercanbeusedforqueryingthedatasource.
![Page 3472: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3472.jpg)
Typexsf:xdYesNo
![Page 3473: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3473.jpg)
ParentElements
Element DescriptionemailAdapter ContainstheinformationtosubmitanInfoPathfileasan
attachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 3474: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3474.jpg)
Definition
<xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3475: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3475.jpg)
RemarksThequeryAllowedattributeisgenerallyomittedfortheemailAdapterelement,correspondingtoadefaultvalueof"no".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3476: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3476.jpg)
ExampleThefollowingisanexampleofthequeryAllowedattributeasitisusedintheemailAdapterelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"queryAllowed<xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 3477: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3477.jpg)
queryAllowedAttribute(hwsAdapterElement)
Specifieswhethertheadaptercanbeusedforqueryingthedatasource.
![Page 3478: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3478.jpg)
Typexsf:xdYesNo
![Page 3479: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3479.jpg)
ParentElements
Element DescriptionhwsAdapter DefinestheMicrosoftBiztalk2004HWS(HumanWorkflow
Services)dataadaptertostartorextendanactivityflow,andrespondtoatask.
![Page 3480: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3480.jpg)
Definition
<xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3481: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3481.jpg)
RemarksThequeryAllowedattributecanbeomittedfromthehwsAdapterelement,correspondingtoadefaultvalueof"no".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3482: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3482.jpg)
ExampleThefollowingisanexampleofthequeryAllowedattributeasitisusedinthehwsAdapterelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3483: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3483.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3484: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3484.jpg)
queryAllowedAttribute(sharepointListAdapterElement)
Specifieswhethertheadaptercanbeusedforqueryingthedatasource.
![Page 3485: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3485.jpg)
Typexsf:xdYesNo
![Page 3486: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3486.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationtoquery
aSharePointlistorlibrary.
![Page 3487: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3487.jpg)
Definition
<xsd:attributename="queryAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3488: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3488.jpg)
RemarksThequeryAllowedvalueisalwayssetto"yes"forthesharepointListdapter.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3489: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3489.jpg)
ExampleThefollowingisanexampleofthequeryAllowedattributeasitisusedinthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl="http://www.contoso.com/reports/"sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="ContosoReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 3490: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3490.jpg)
queryAllowedAttribute(webServiceAdapterElement)
Specifieswhetherdatacanberetrievedfromthedatasourcethroughthequerymethodofthedataadapterobject.
![Page 3491: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3491.jpg)
Type
xsf:xdYesNo
![Page 3492: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3492.jpg)
RemarksThequeryAllowedattributeisanoptionalattributeofthewebServiceAdapterelement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"yes".
![Page 3493: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3493.jpg)
ExampleThefollowingisanexampleofthequeryAllowedattributeasitisusedinthewebServiceAdapterelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3494: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3494.jpg)
ShowAll
![Page 3495: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3495.jpg)
refreshAttribute
Specifieswhentheexpressionwillbeevaluated.
![Page 3496: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3496.jpg)
Typexsd:string
![Page 3497: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3497.jpg)
ParentElements
Element DescriptioncalculatedField Definesanindividualcalculation,includingtheformula,
whenthecalculationistobeperformed,andwheretheresultwillbestored.
![Page 3498: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3498.jpg)
Definition
<xsd:attributename="refresh"type="xsd:string"use="required"></xsd:attribute>
![Page 3499: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3499.jpg)
RemarksTheexpressionspecifiedbytheexpressionattributeisevaluatedaccordingtotherefreshattributeofthecalculatedFieldelement.Avalueof"onInit"causestheexpressiontobeevaluatedwhenthenodeisinitialized.Avalueof"onChange"causestheexpressiontobeevaluatedwhenoneormoreparametersoftheexpressionchange.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3500: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3500.jpg)
ExampleThefollowingisanexampleoftherefreshattributeasitisusedinthecalculatedFieldelement:
<xsf:calculations><xsf:calculatedFieldtarget="/my:myFields/my:average"expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"refresh="onChange"/></xsf:calculations>
![Page 3501: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3501.jpg)
removeAncestorsAttribute
Specifiesthenumberofancestor(parent)elementstoberemovedwhenthelastitemisremoved.
![Page 3502: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3502.jpg)
Type
xsd:nonNegativeInteger
![Page 3503: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3503.jpg)
RemarksTheremoveAncestorsattributeisanoptionalattributeoftheeditWithelement.
Default=0.Mustbeanon-negativeinteger.
![Page 3504: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3504.jpg)
ExampleThefollowingisanexampleoftheremoveAncestorsattributeasitisusedintheeditWithelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample"><xsf:editWithcaption="CD"removeAncestors="0"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 3505: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3505.jpg)
ShowAll
![Page 3506: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3506.jpg)
replaceWithAttribute
ContainsanXPathexpressionthatidentifiesthevaluesinthesourcedocumentthatshouldbeusedtoreplacepartsoftheinputSimpleObjectAccessProtocol(SOAP)message.
![Page 3507: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3507.jpg)
Type
xsd:string
![Page 3508: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3508.jpg)
RemarksThereplaceWithattributeisarequiredattributeofthepartFragmentelement.
![Page 3509: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3509.jpg)
ExampleThefollowingisanexampleofthereplaceWithattributeasitisusedinthepartFragmentelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"><xsf:partFragmentmatch="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"replaceWith="/dfs:myFields/dfs:dataFields/s0:IsPrime"/></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3510: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3510.jpg)
requiredAttribute
IdentifieswhetherthisfieldacceptsNullvalues.
![Page 3511: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3511.jpg)
Type
xsf:xdYesNo
![Page 3512: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3512.jpg)
RemarksTherequiredattributeisanoptionalattributeofthefieldelement.
Valuesinclude"yes"and"no".Thedefaultvalueis"no".
![Page 3513: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3513.jpg)
ExampleThefollowingisanexampleoftherequiredattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 3514: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3514.jpg)
requireFullTrustAttribute
Allowstheformtorunasafullytrustedformwhenaformtemplateisregisteredorsignedwithacertificate.
![Page 3515: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3515.jpg)
Type
xsf:xdYesNo
![Page 3516: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3516.jpg)
RemarksTherequireFullTrustattributeisanoptionalattributeofthexDocumentClasselement.
FormsthathavetherequireFullTrustattributesetto"yes"getfulltrustsecurityprivilegesinMicrosoftOfficeInfoPath2003.Allowedattributevaluesare"yes"and"no".Thedefaultvalueis"no".
NoteFullytrustedformsneedtoberegistered,otherwisetheycannotbeopenedinInfoPath.
![Page 3517: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3517.jpg)
ExampleThefollowingisanexampleoftherequireFullTrustattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0"requireFullTrust="yes">...</xsf:xDocumentClass>
![Page 3518: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3518.jpg)
rightMarginAttribute
Specifiestherightmarginwhenprintingaview.
![Page 3519: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3519.jpg)
Type
xsd:string
![Page 3520: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3520.jpg)
RemarksTherightMarginattributeisanoptionalattributeoftheprintSettingselement.
TherightMarginattributemustbegreaterthanorequaltozero.
![Page 3521: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3521.jpg)
ExampleThefollowingisanexampleoftherightMarginattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 3522: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3522.jpg)
ShowAll
![Page 3523: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3523.jpg)
rootSchemaAttribute
IdentifiesanXMLSchemaasthetop-levelschemaoftheformbeingfilledout.
![Page 3524: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3524.jpg)
Type
xsf:xdYesNo
![Page 3525: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3525.jpg)
RemarksTherootSchemaattributeisanoptionalattributeofthedocumentSchemaelement.
OnlyoneoftheXMLSchemasdefinedforaformcanbemarkedastherootschema.Allowedvaluesare"yes"and"no".Thedefaultvalueis"no".
![Page 3526: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3526.jpg)
ExampleThefollowingisanexampleoftherootSchemaattributeasitisusedinthedocumentSchemaelement:
<xsf:documentSchemas><xsf:documentSchemalocation="urn:schema:custom:NamespacecustomFilename.xsd"rootSchema="yes"/></xsf:documentSchemas>
![Page 3527: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3527.jpg)
ruleSetAttribute
ContainsthenameoftheruleSetactionelementtobeinvoked.
![Page 3528: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3528.jpg)
Typexsd:string
![Page 3529: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3529.jpg)
ParentElements
Element DescriptionruleSetActionDefinestheruleSetactionelementtobeinvoked.
![Page 3530: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3530.jpg)
Definition
<xsd:attributename="ruleSet"type="xsd:string"use="required"></xsd:attribute>
![Page 3531: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3531.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3532: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3532.jpg)
ExampleThefollowingisanexampleoftheruleSetattributeasitisusedintheruleSetActionelement:
<xsf:onLoad><xsf:ruleSetActionruleSet="RuleSet4"/></xsf:onLoad>
![Page 3533: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3533.jpg)
ShowAll
![Page 3534: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3534.jpg)
schemaAttribute(dataObjectElement)
ThenameofanXMLSchemafile.
![Page 3535: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3535.jpg)
Type
xsd:string
![Page 3536: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3536.jpg)
RemarksTheschemaattributeisanoptionalattributeofthedataObjectelement.
MicrosoftOfficeInfoPath2003automaticallypackagestheXMLSchemaforeachsecondarydataobjectaspartoftheformtemplate.Anentryismadeintheformdefinition(.xsf)filefortheXMLSchemafileusingthefileselement,anditisthefilenamethatisreferencedfromtheschemaattributeofthedataObjectelement.
![Page 3537: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3537.jpg)
ExampleThefollowingisanexampleoftheschemaattributeasitisusedinthedataObjectelement:
<xsf:dataObjects><xsf:dataObjectname="EmployeeNames"schema="EmployeeNames.xsd"initOnLoad="yes"><xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter> </xsf:query> </xsf:dataObject> </xsf:dataObjects>
![Page 3538: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3538.jpg)
ShowAll
![Page 3539: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3539.jpg)
schemaAttribute(importSourceElement)
IdentifiestheXMLSchemafilethatshouldbeusedduringthemergeoperationtovalidatetheformbeingmerged.
![Page 3540: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3540.jpg)
Type
xsf:xdFileName
![Page 3541: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3541.jpg)
RemarksTheschemaattributeisarequiredattributeoftheimportSourceelement.
Ifthesourcedocumenttobemergedbelongstothespecifiedschema,thespecifiedparametersareusedformegingintothecurrentform.Iftheschemaattributeisnotspecified,a"SchemaXSDnotfound"errorisreturned.
![Page 3542: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3542.jpg)
ExampleThefollowingisanexampleoftheschemaattributeasitusedintheimportSourceelement:
<xsf:importParametersenabled="yes"<xsf:importSourcename="MyForm"schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 3543: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3543.jpg)
scriptLanguageAttribute
IdentifiesthenameofthescriptinglanguageusedtoimplementthebusinesslogicoftheMicrosoftOfficeInfoPath2003form.
![Page 3544: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3544.jpg)
Type
xsf:xdScriptLanguage
![Page 3545: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3545.jpg)
RemarksThescriptLanguageattributeisanoptionalattributeofthesolutionPropertieselement.
InfoPathsupportsthefollowingvaluesforthisattribute:"JavaScript","JScript",and"VBScript".
![Page 3546: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3546.jpg)
ExampleThefollowingisanexampleofthescriptLanguageattributeasitisusedinthesolutionPropertieselement:
<xsf:applicationParametersapplication="InfoPathDesignMode"><xsf:solutionPropertiesallowCustomization="no"lastOpenView="view1"scriptLanguage="JScript"automaticallyCreateNodes="no"lastVersionNeedingTransform="1.0.0.10"fullyEditableNamespace="urn:namespace1:mynames"/></xsf:applicationParameters>
![Page 3547: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3547.jpg)
ShowAll
![Page 3548: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3548.jpg)
selectAttribute
AnXPathqueryexpressionthatreturnsoneormoredatanodesthatcontainusernames.
![Page 3549: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3549.jpg)
Typexsd:string
![Page 3550: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3550.jpg)
ParentElements
Element DescriptiongetUserNameFromData RetrievesausernamebyusinganXPath
queryofthedatainthemaindatasourceorinasecondarydatasource.
![Page 3551: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3551.jpg)
Definition
<xsd:attributename="select"type="xsd:string"use="required"></xsd:attribute>
![Page 3552: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3552.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3553: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3553.jpg)
ExampleThefollowingisanexampleoftheselectattributeasitisusedinthegetUserNameFromDataelement:
<xsf:rolesinitiator="A"default="C"hideStatusBarDisplay="yes"><xsf:rolename="A"/><xsf:rolename="B"/><xsf:rolename="C"/>
<xsf:membership><xsf:getUserNameFromDatadataObject="catalog"select="/dfs:myFields/dfs:dataFields/d:UserA"memberOf="B"/><xsf:userNamename="Domain\username1"memberOf="A"/><xsf:userNamename="Domain\username2"memberOf="B"/><xsf:groupname="Domain\username3"memberOf="C"/></xsf:membership></xsf:roles>
![Page 3554: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3554.jpg)
sendAsStringAttribute
SpecifiesthatthedataissubmittedasastringthroughthewebServiceAdapterdataadapter.
![Page 3555: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3555.jpg)
Typexsf:xdYesNo
![Page 3556: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3556.jpg)
ParentElements
Element DescriptionpartFragmentDefinesonesubstitutiongroupforaspecificpartofthe
inputSimpleObjectAccessProtocol(SOAP)message.
![Page 3557: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3557.jpg)
Definition
<xsd:attributename="sendAsString"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3558: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3558.jpg)
RemarksItmaybenecessarytosetthesendAsStringattributeto"yes"fordigitallysigneddata,becausethissettingpreservesnon-printingcharactersinthedata.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3559: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3559.jpg)
ExampleThefollowingisanexampleofthesendAsStringattributeasitisusedinthepartFragmentelement:
<xsf:partFragmentmatch="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"replaceWith=/dfs:myFields/dfs:dataFields/s0:IsPrime"filter="."sendAsString="yes"/>
![Page 3560: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3560.jpg)
ShowAll
![Page 3561: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3561.jpg)
serviceUrlAttribute
ContainstheWebserviceUniformResourceLocator(URL)towhichtherequestshouldbesent.
![Page 3562: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3562.jpg)
Type
xsd:string
![Page 3563: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3563.jpg)
RemarksTheserviceUrlattributeisarequiredattributeoftheoperationelement.
![Page 3564: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3564.jpg)
ExampleThefollowingisanexampleoftheserviceUrlattributeasitisusedintheoperationelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3565: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3565.jpg)
ShowAll
![Page 3566: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3566.jpg)
serviceUrlAttribute(hwsOperationElement)
SpecifiestheUniformResourceLocator(URL)oftheMicrosoftBizTalk2004HumanWorkflowServices(HWS)Webservice.
![Page 3567: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3567.jpg)
Typexsd:string
![Page 3568: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3568.jpg)
ParentElements
Element DescriptionhwsOperation DefinestheHWSoperationtype,suchasaddingan
actiontoanewactivityflow,addinganactiontoanexistingactivityflow,orrespondingtoatask.
![Page 3569: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3569.jpg)
Definition
<xsd:attributename="serviceUrl"type="xsd:string"use="required"></xsd:attribute>
![Page 3570: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3570.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3571: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3571.jpg)
ExampleThefollowingisanexampleoftheserviceUrlattributeasitisusedinthehwsOperationelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3572: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3572.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3573: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3573.jpg)
sharepointGuidAttribute
ContainstheGUIDoftheSharePointlist.
![Page 3574: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3574.jpg)
Typexsd:string
![Page 3575: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3575.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationneeded
toqueryaSharePointlistorlibrary.
![Page 3576: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3576.jpg)
Definition
<xsd:attributename="sharepointGuid"type="xsd:string"use="required"></xsd:attribute>
![Page 3577: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3577.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3578: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3578.jpg)
ExampleThefollowingisanexampleofthesharepointGuidattributeasitisusedinthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl=”http://xyzco/reports/”sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="XyzReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 3579: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3579.jpg)
ShowAll
![Page 3580: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3580.jpg)
sharepointNameAttribute
ContainsthenameofafieldinaSharePointlist.
![Page 3581: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3581.jpg)
Typexsd:string
![Page 3582: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3582.jpg)
ParentElements
Element Descriptionfield Containsfieldmappinginformationforeachfieldina
SharePointlistandthecorrespondingnameusedinMicrosoftOfficeInfoPath2003ServicePack1.
![Page 3583: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3583.jpg)
Definition
<xsd:attributename="sharepointName"type="xsd:string"use="required"></xsd:attribute>
![Page 3584: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3584.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3585: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3585.jpg)
ExampleThefollowingisanexampleofthesharepointNameattributeasitisusedinthefieldelement:
<xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"isLookup="no"></xsf:field>
![Page 3586: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3586.jpg)
shortMessageAttribute
Identifiestheshorterrormessagetoreturnincaseofinvaliddata.
![Page 3587: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3587.jpg)
Type
xsd:string
![Page 3588: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3588.jpg)
RemarksTheshortMessageattributeisarequiredattributeoftheerrorMessageelement.
ThisisdisplayedinaScreenTipinthedefaulterroruserinterface.Formodalerrors,thisattributeisignoredandthedetailedmessageisusedinstead.Maximumlengthoftheerrormessageis127characters.
![Page 3589: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3589.jpg)
ExampleThefollowingisanexampleoftheshortMessageattributeasitisusedintheerrorMessageelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 3590: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3590.jpg)
ShowAll
![Page 3591: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3591.jpg)
showErrorOnAttribute
IdentifiesXMLDocumentObjectModel(DOM)nodes(withinthecontextoftheexpressioncontextXMLDOMnode)onwhichtheerrorshouldbedisplayedwhentheformisfilledout.
![Page 3592: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3592.jpg)
Type
xsd:string
![Page 3593: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3593.jpg)
RemarksTheshowErrorOnattributeisanoptionalattributeoftheerrorConditionelement.
Contains(relativetoexpressioncontextXMLDOMnode)anXPathexpression.Defaultis"."Thisisthesameastheexpressioncontext.
![Page 3594: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3594.jpg)
ExampleThefollowingisanexampleoftheshowErrorOnattributeasitisusedintheerrorConditionelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 3595: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3595.jpg)
showIfAttribute
Specifiestheeditingcontextofthebutton.
![Page 3596: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3596.jpg)
Type
xsd:NMTOKEN
![Page 3597: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3597.jpg)
RemarksTheshowIfattributeisanoptionalattributeofthebuttonelement.
Allowedvaluesinclude"always","enabled",and"immediate".Defaultvalueis"always".Onlyappliestobuttonsusedwitheditingcomponents.IftheshowIfattributeissetto"enabled",thenthebuttonisvisibleonlyiftheactioniscontextuallyenabled.IftheshowIfattributeissetto"immediate",thenthebuttonisvisibleonlyiftheactioniscontextuallyimmediate.
![Page 3598: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3598.jpg)
ExampleThefollowingisanexampleoftheshowIfattributeasitisusedinthebuttonelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="immediate"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="immediate"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 3599: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3599.jpg)
ShowAll
![Page 3600: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3600.jpg)
showMenuItemAttribute
DisplaysamenuitemintheInfoPathViewmenuandaddsacheckmarknexttotheitemwhenitisinuse.
![Page 3601: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3601.jpg)
Typexsf:xdYesNo
![Page 3602: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3602.jpg)
ParentElements
Element Descriptionview ContainsinformationaboutanInfoPathview.
![Page 3603: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3603.jpg)
Definition
<xsd:attributename="showMenuItem"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3604: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3604.jpg)
RemarksTheshowMenuItemattributeisanoptionalattributeoftheviewelement.Thedefaultvalueis"yes".
IftheshowMenuItemattributeforamenuitemintheViewmenuissetto"yes",theitemappearsintheViewmenuandhasacheckmarknexttoitwhenitisinuse.Themenuitemappearswiththecaptionthathasbeendefinedforitandintheorderspecifiedintheformdefinitionfile(.xsf).IftheshowMenuItemattributeisnotpresentorissetto"no",themenuitemdoesnotappearintheViewmenu.UserscanstilladditemstotheViewmenubycustomizingit,butsuchitemswillnotdisplayacheckmarkwhentheyareinuse.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3605: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3605.jpg)
ExampleThefollowingisanexampleoftheshowMenuItemattributeasitisusedintheviewelement:
<xsf:viewname="View1"caption="Firstview"showMenuItem="yes"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane></xsf:view>
![Page 3606: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3606.jpg)
showSignatureReminderAttribute
Specifieswhetheradialogboxshouldbedisplayedtoprompttheusertodigitallysignthedocumentbeforesubmittingit.
![Page 3607: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3607.jpg)
Type
xsf:xdYesNo
![Page 3608: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3608.jpg)
RemarksTheshowSignatureReminderattributeisanoptionalattributeofthesubmitelement.
Valuesinclude"yes"and"no".Thedefaultvalueis"no".Ifsetto"yes"andtheformisnotdigitallysignedwhenausertriestosubmitit,thedialogboxisdisplayed.
![Page 3609: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3609.jpg)
ExampleThefollowingisanexampleoftheshowSignatureReminderattributeasitisusedinthesubmitelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 3610: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3610.jpg)
showStatusDialogAttribute
Specifieswhetherthestatusdialogboxshouldbeshownafterthesubmitoperation.
![Page 3611: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3611.jpg)
Type
xsf:xdYesNo
![Page 3612: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3612.jpg)
RemarksTheshowStatusDialogattributeisanoptionalattributeofthesubmitelement.
Valuesinclude"yes"and"no".Thedefaultvaluesis"yes".
IftheshowStatusDialogattributeissetto"yes"andnocustommessagesaredefined(usingtheerrorMessageorsuccessMessageelements),thentheMicrosoftOfficeInfoPath2003defaultsubmitmessagesaredisplayed.
![Page 3613: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3613.jpg)
ExampleThefollowingisanexampleoftheshowStatusDialogattributeasitisusedinthesubmitelement:
<xsf:submitcaption="Su&bmit"disableMenuItem="no"onAfterSubmit="KeepOpen"showStatusDialog="yes"showSignatureReminder="yes"><xsf:useScriptHandler/><xsf:successMessage>Submitwassuccessful.</xsf:successMessage><xsf:errorMessage>Submitwasnotsuccessful.</xsf:errorMessage></xsf:submit>
![Page 3614: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3614.jpg)
ShowAll
![Page 3615: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3615.jpg)
signatureLocationAttribute
ContainsanXPathexpressionthatpointstotheXMLDocumentObjectModel(DOM)nodewithintheform'sunderlyingXMLdocumentthatisusedforstoringthedigitalsignature.
![Page 3616: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3616.jpg)
Type
xsd:string
![Page 3617: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3617.jpg)
RemarksThesignatureLocationattributeisarequiredattributeofthedocumentSignatureselement.
![Page 3618: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3618.jpg)
ExampleThefollowingisanexampleofthesignatureLocationattributeasitisusedinthedocumentSignatureselement:
<xsf:documentSignaturessignatureLocation="/employees/my:signatures1"></xsf:documentSignatures>
![Page 3619: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3619.jpg)
ShowAll
![Page 3620: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3620.jpg)
signatureLocationAttribute(signedDataBlockElement)
ContainsanXPathexpressionthatpointstotheXMLDocumentObjectModel(DOM)nodeintheform'sunderlyingXMLdocumentthatisusedforstoringthedigitalsignature.
![Page 3621: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3621.jpg)
Typexsd:string
![Page 3622: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3622.jpg)
ParentElements
Element DescriptionsignedDataBlock Definesanodesetintheform'sunderlyingXML
documenttowhichadigitalsignaturecanbeapplied.
![Page 3623: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3623.jpg)
Definition
<xsd:attributename="signatureLocation"type="xsd:string"use="required"></xsd:attribute>
![Page 3624: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3624.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3625: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3625.jpg)
ExampleThefollowingisanexampleofthesignatureLocationattributeasitisusedinthesignedDataBlockelement:
<xsf:documentSignatures><xsf:signedDataBlockname=”main”data=”my:myfields/my:subtree1|my:myfields/my:subtree2”signatureLocation=”my:mifields/sig:signatures/main”mode=”countersign”><xsf:message>Bypressingthe"Sign"buttonbelow,Iagreetobeboundtothetermsofthisdocument.</xsf:message></xsf:signedDataBlock></xsf:documentSignatures>
![Page 3626: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3626.jpg)
ShowAll
![Page 3627: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3627.jpg)
siteUrlAttribute
ContainstheUniformResourceLocator(URL)ofaSharePointsite.
![Page 3628: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3628.jpg)
Typexsd:string
![Page 3629: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3629.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationneeded
toqueryaSharePointlistorlibrary.
![Page 3630: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3630.jpg)
Definition
<xsd:attributename="siteUrl"type="xsd:string"use="required"></xsd:attribute>
![Page 3631: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3631.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3632: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3632.jpg)
ExampleThefollowingisanexampleofthesiteUrlattributeasitisusedinthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl=”http://xyzco/reports/”sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="XyzReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 3633: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3633.jpg)
soapActionAttribute
ContainsthevalueoftheSOAPActionattributeintheSimpleObjectAccessProtocol(SOAP)requestmessage.
![Page 3634: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3634.jpg)
Type
xsd:string
![Page 3635: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3635.jpg)
RemarksThesoapActionattributeisarequiredattributeoftheoperationelement.
![Page 3636: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3636.jpg)
ExampleThefollowingisanexampleofthesoapActionattributeasitisusedintheoperationelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3637: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3637.jpg)
ShowAll
![Page 3638: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3638.jpg)
solutionFormatVersionAttribute
Identifiestheversionnumberthatrepresentstheformatoftheformdefinitionfile(.xsf).
![Page 3639: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3639.jpg)
Type
xsf:xdSolutionVersion
![Page 3640: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3640.jpg)
RemarksThesolutionFormatVersionattributeisarequiredattributeofthexDocumentClasselement.
Itsformatis####.####.####.####(major.minor.revision.build).Theversionnumberofthe.xsffileallowsMicrosoftOfficeInfoPath2003todeterminewhetherthecurrentformiscompatiblewiththeproductversioninwhichitisbeingopened.
![Page 3641: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3641.jpg)
ExampleThefollowingisanexampleofthesolutionFormatVersionattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 3642: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3642.jpg)
ShowAll
![Page 3643: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3643.jpg)
solutionURIAttribute
TheUniformResourceIdentifier(URI)ofthesolutiononwhichthenewformwillbebased.
![Page 3644: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3644.jpg)
Typexsd:anyURI
![Page 3645: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3645.jpg)
ParentElements
Element DescriptionopenNewDocumentActionDefinesaformcreateaction.
![Page 3646: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3646.jpg)
Definition
<xsd:attributename="solutionURI"type="xsd:anyURI"use="required"></xsd:attribute>
![Page 3647: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3647.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3648: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3648.jpg)
ExampleThefollowingisanexampleofthesolutionURIattributeasitisusedintheopenNewDocumentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 3649: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3649.jpg)
solutionVersionAttribute
Identifiestheversionnumberoftheform.
![Page 3650: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3650.jpg)
Type
xsf:xdSolutionVersion
![Page 3651: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3651.jpg)
RemarksThesolutionVersionattributeisanoptionalattributeofthexDocumentClasselement.
Itsformatis####.####.####.####(major.minor.revision.build).
![Page 3652: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3652.jpg)
ExampleThefollowingisanexampleofthesolutionVersionattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 3653: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3653.jpg)
ShowAll
![Page 3654: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3654.jpg)
sourceAttribute
ContainsthenameoftheresourcefileintheformtemplatethatcontainstheXMLSchemafortheinputSimpleObjectAccessProtocol(SOAP)messageoftheselectedoperationoftheWebservice.
![Page 3655: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3655.jpg)
Type
xsd:string
![Page 3656: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3656.jpg)
RemarksThesourceattributeisarequiredattributeoftheinputelement.
![Page 3657: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3657.jpg)
ExampleThefollowingisanexampleofthesourceattributeasitisusedintheinputelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"><xsf:partFragmentmatch="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"replaceWith="/dfs:myFields/dfs:dataFields/s0:IsPrime"/></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3658: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3658.jpg)
ShowAll
![Page 3659: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3659.jpg)
srcAttribute
ProvidesarelativeURLwithintheformtemplatetothespecifiedscriptsourcefile.
![Page 3660: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3660.jpg)
Type
xsf:xdFileName
![Page 3661: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3661.jpg)
RemarksThesrcattributeisarequiredattributeofthescriptelement.
![Page 3662: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3662.jpg)
ExampleThefollowingisanexampleofthesrcattributeasitisusedinthescriptelement:
<xsf:scriptslanguage="jscript"><xsf:scriptsrc="myscripts.js"/></xsf:scripts>
![Page 3663: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3663.jpg)
submitAllowedAttribute(adoAdapterElement)
Specifieswhetherdatacanbesubmittedtothedatasourcethroughthesubmitmethodofthedataadapterobject.
![Page 3664: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3664.jpg)
Type
xsf:xdYesNo
![Page 3665: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3665.jpg)
RemarksThesubmitAllowedattributeisanoptionalattributeoftheadoAdapterelement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"no".
![Page 3666: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3666.jpg)
ExampleThefollowingisanexampleofthesubmitAllowedattributeasitisusedintheadoAdapterelement:
<xsf:query><xsf:adoAdapterconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password="";UserID=Admin;DataSource=infnwind.mdb;Mode=ShareDenyNone;ExtendedProperties="";..."commandText="select[EmployeeID],[LastName],[FirstName]from[Employees]as[Employees]"queryAllowed="yes"submitAllowed="yes"></xsf:adoAdapter></xsf:query>
![Page 3667: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3667.jpg)
ShowAll
![Page 3668: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3668.jpg)
submitAllowedAttribute(davAdapterElement)
Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.
![Page 3669: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3669.jpg)
Typexsf:xdYesNo
![Page 3670: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3670.jpg)
ParentElements
Element DescriptiondavAdapterContainsinformationneededtosubmitInfoPathformstoa
serverrunningMicrosoftWindowsSharePointServicesortoaWeb-basedDistributedAuthoringandVersioning(WebDAV)server.
![Page 3671: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3671.jpg)
Definition
<xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3672: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3672.jpg)
RemarksThevalueofthesubmitAllowedattributeisalwayssetto"yes"forthedavAdapterelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3673: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3673.jpg)
ExampleThefollowingisanexampleofthesubmitAllowedattributeasitisusedinthedavAdapterelement:
<xsf:davAdaptername="SubmitToSharePoint"overwriteAllowed="yes"<xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/><xsf:folderURLvalue="http://some_server/some_doc_lib"/></xsf:davAdapter>
![Page 3674: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3674.jpg)
submitAllowedAttribute(emailAdapterElement)
Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.
![Page 3675: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3675.jpg)
Typexsf:xdYesNo
![Page 3676: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3676.jpg)
ParentElements
Element DescriptionemailAdapter ContainstheinformationneededtosubmitanInfoPath
formasanattachmenttoane-mailmessage,withaspecifiedsetofrecipients,asubject,andanintroduction.
![Page 3677: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3677.jpg)
Definition
<xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3678: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3678.jpg)
RemarksThevalueofthesubmitAllowedattributeisalwayssetto"yes"fortheemailAdapterelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3679: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3679.jpg)
ExampleThefollowingisanexampleofthesubmitAllowedattributeasitisusedintheemailAdapterelement:
<xsf:emailAdaptername="Submit"submitAllowed="yes"><xsf:tovalue="[email protected]"valueType="literal"/><xsf:ccvalue="my:ccNames"valueType="expression"/><xsf:bccvalue="[email protected]"valueType="literal"/><xsf:subjectvalue="Myreport"valueType="literal"/><xsf:introvalue="Seebelow"/><xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/></xsf:emailAdapter>
![Page 3680: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3680.jpg)
submitAllowedAttribute(hwsAdapterElement)
Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.
![Page 3681: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3681.jpg)
Typexsf:xdYesNo
![Page 3682: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3682.jpg)
ParentElements
Element DescriptionhwsAdapter DefinestheMicrosoftBizTalk2004HumanWorkflow
Services(HWS)dataadapter,whichcanbeusedtostartorextendanactivityfloworrespondtoatask.
![Page 3683: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3683.jpg)
Definition
<xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3684: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3684.jpg)
RemarksThevalueofthesubmitAllowedattributeisalwayssetto"yes"forthehwsAdapterelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3685: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3685.jpg)
ExampleThefollowingisanexampleofthesubmitAllowedattributeasitisusedinthehwsAdapterelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3686: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3686.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3687: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3687.jpg)
submitAllowedAttribute(sharepointListAdapterElement)
Specifieswhethertheadaptercanbeusedforsubmittingtothedatasource.
![Page 3688: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3688.jpg)
Typexsf:xdYesNo
![Page 3689: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3689.jpg)
ParentElements
Element DescriptionsharepointListAdapter Containsthedataadapterinformationneeded
toqueryaSharePointlistorlibrary.
![Page 3690: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3690.jpg)
Definition
<xsd:attributename="submitAllowed"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3691: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3691.jpg)
RemarksThesubmitAllowedattributeisomittedforthesharepointListAdapterelement,correspondingtoadefaultvalueof"no".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3692: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3692.jpg)
ExampleThefollowingisanexampleofthesubmitAllowedattributeasitisusedinthesharepointListAdapterelement:
<xsf:sharepointListAdaptername="StatusReportlibrary"siteUrl=”http://xyzco/reports/”sharepointGuid="{ABD2E239-0EE7-48F4-B506-C38A1728E195}"infopathGroup="XyzReportsLibrary"queryAllowed="yes><xsf:fieldsharepointName="File_x0020_Type"infopathName="Type"></xsf:field><xsf:fieldsharepointName="xd__x007b_D00F1DBD_..."infopathName="Title_1"></xsf:field></xsf:sharepointListAdapter>
![Page 3693: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3693.jpg)
submitAllowedAttribute(webServiceAdapterElement)
Specifieswhetherdatacanbesubmittedtothedatasourcethroughthesubmitmethodofthedataadapterobject.
![Page 3694: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3694.jpg)
Type
xsf:xdYesNo
![Page 3695: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3695.jpg)
RemarksThesubmitAllowedattributeisanoptionalattributeofthewebServiceAdapterelement.
Allowedvaluesare"yes"and"no".Thedefaultvalueis"no".
![Page 3696: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3696.jpg)
ExampleThefollowingisanexampleofthesubmitAllowedattributeasitisusedinthewebServiceAdapterelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3697: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3697.jpg)
ShowAll
![Page 3698: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3698.jpg)
targetAttribute(calculatedFieldElement)
ContainstheXPathlocationwheretheresultoftheexpressionattributewillbestored.
![Page 3699: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3699.jpg)
Typexsd:string
![Page 3700: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3700.jpg)
ParentElements
Element DescriptioncalculatedField Definesanindividualcalculation,includingtheformula,
whenthecalculationistobeperformed,andwheretheresultwillbestored.
![Page 3701: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3701.jpg)
Definition
<xsd:attributename="target"type="xsd:string"use="required"></xsd:attribute>
![Page 3702: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3702.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3703: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3703.jpg)
ExampleThefollowingisanexampleofthetargetattributeasitisusedinthecalculatedFieldelement:
<xsf:calculations><xsf:calculatedFieldtarget="/my:myFields/my:average"expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"refresh="onChange"/></xsf:calculations>
![Page 3704: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3704.jpg)
ShowAll
![Page 3705: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3705.jpg)
targetFieldAttribute
ContainsanXPathexpressionforthetargetnode.
![Page 3706: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3706.jpg)
Typexsd:string
![Page 3707: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3707.jpg)
ParentElements
Element DescriptionassignmentAction Definesanactiontosetthevalueofafield.
![Page 3708: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3708.jpg)
Definition
<xsd:attributename="targetField"type="xsd:string"use="required"></xsd:attribute>
![Page 3709: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3709.jpg)
RemarksThetargetFieldattributeidentifiesthenodethatwillreceivethevaluefromtheexpressionattribute.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3710: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3710.jpg)
ExampleThefollowingisanexampleofthetargetFieldattributeasitisusedintheassignmentActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 3711: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3711.jpg)
taskpaneVisibleAttribute
SpecifieswhethertheWorkflowtaskpaneisvisible.
![Page 3712: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3712.jpg)
Typexsf:xdYesNo
![Page 3713: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3713.jpg)
ParentElements
Element DescriptionhwsWorkflow ContainstheinformationtoenabletheWorkflowtask
paneandtoenableindividualactionsandtasksassociatedwithaMicrosoftBiztalk2004HumanWorkflowServices(HWS)server.
![Page 3714: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3714.jpg)
Definition
<xsd:attributename="taskpaneVisible"type="xsf:xdYesNo"></xsd:attribute>
![Page 3715: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3715.jpg)
RemarksThedefaultvalueforthetaskpaneVisibleattributeis"yes".ThetaskpaneVisibleattributeisanoptionalattributeofthehwsWorkflowelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3716: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3716.jpg)
ExampleThefollowingisanexampleofthetaskpaneVisibleattributeasitisusedinthehwsWorkflowelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
![Page 3717: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3717.jpg)
ShowAll
![Page 3718: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3718.jpg)
taskTypeIDAttribute
TheuniqueIDoftheMicrosoftBizTalkServer2004HumanWorkflowServices(HWS)workflowtask.
![Page 3719: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3719.jpg)
Typexsd:string
![Page 3720: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3720.jpg)
ParentElements
Element Descriptiontask TheHWStaskinformationenabledfortheform.
![Page 3721: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3721.jpg)
Definition
<xsd:attributename="taskTypeID"type="xsd:string"use="required"></xsd:attribute>
![Page 3722: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3722.jpg)
RemarksThetaskTypeIDattributeusesanamespacetouniquelyidentifyataskbutdoesnotrepresentthecurrentinstanceofthetaskbeingperformed.ThecurrentinstanceofthetaskisstoredintheXMLinstancefile.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3723: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3723.jpg)
ExampleThefollowingisanexampleofthetaskTypeIDattributeasitisusedinthetaskelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"queryAllowed="no"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3724: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3724.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3725: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3725.jpg)
tooltipAttribute
ProvidestheScreenTiptexttobeusedforthebutton.
![Page 3726: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3726.jpg)
Type
xsf:xdTitle
![Page 3727: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3727.jpg)
RemarksThetooltipattributeisanoptionalattributeofthebuttonelement.
Thisattributeappliesonlytobuttonsusedonatoolbar.
![Page 3728: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3728.jpg)
ExampleThefollowingisanexampleofthetooltipattributeasitisusedinthebuttonelement:
<xsf:toolbarcaption="CDCollectionToolbar"name="CDCollectionToolbar"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="NewCD"showIf="always"tooltip="InsertaCD."></xsf:button>...</xsf:toolbar>
![Page 3729: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3729.jpg)
topMarginAttribute
Specifiesthetopmarginwhenprintingaview.
![Page 3730: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3730.jpg)
Type
xsd:string
![Page 3731: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3731.jpg)
RemarksThetopMarginattributeisanoptionalattributeoftheprintSettingselement.
ThetopMarginattributemustbegreaterthanorequaltozero.
![Page 3732: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3732.jpg)
ExampleThefollowingisanexampleofthetopMarginattributeasitisusedintheprintSettingselement:
<xsf:viewname="View"caption="View"><xsf:printSettingsheader="Headertextgoeshere."footer="Footertextgoeshere."orientation="portrait"marginUnitsType="in"topMargin="1"leftMargin="2"rightMargin="2"bottomMargin="1"</xsf:printSettings>...</xsf:view>
![Page 3733: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3733.jpg)
ShowAll
![Page 3734: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3734.jpg)
transformAttribute(importSourceElement)
Identifiesthe.xsltfilethatshouldbeusedduringthemergeoperationwhenthesourceform(theonethatisbeingmergedin)matchestheXMLSchemaspecifiedinthecorrespondingschemaattribute.
![Page 3735: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3735.jpg)
Type
xsf:xdFileName
![Page 3736: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3736.jpg)
RemarksThetransformattributeisarequiredattributeoftheimportSourceelement.
![Page 3737: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3737.jpg)
ExampleThefollowingisanexampleofthetransformattributeasitisusedintheimportSourceelement:
<xsf:importParametersenabled="yes"<xsf:importSourcename="MyForm"schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 3738: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3738.jpg)
ShowAll
![Page 3739: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3739.jpg)
transformAttribute(mainpaneElement)
SpecifiestherelativeURLtotheXSLTransformation(XSLT)thatisusedfortheview.
![Page 3740: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3740.jpg)
Type
xsf:xdFileName
![Page 3741: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3741.jpg)
RemarksThetransformattributeisarequiredattributeofthemainpaneelement.
![Page 3742: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3742.jpg)
ExampleThefollowingisanexampleofthetransformattributeasitisusedinthemainpaneelement:
<xsf:viewsdefault="View"><xsf:viewname="View"caption="View"><xsf:mainpanetransform="view1.xsl"></xsf:mainpane>...</xsf:view></xsf:views>
![Page 3743: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3743.jpg)
ShowAll
![Page 3744: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3744.jpg)
transformAttribute(useTransformElement)
Specifiesthe.xsltfilenamerelativetotheformtemplate.
![Page 3745: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3745.jpg)
Type
xsf:xdFileNamexsf:xdEmptyString
![Page 3746: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3746.jpg)
RemarksThetransformattributeisarequiredattributeoftheuseTransformelement.Itsmaximumlengthis64characters.
![Page 3747: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3747.jpg)
ExampleThefollowingexampleshowsthetransformattributeasitisusedintheuseTransformelement:
<xsf:documentVersionUpgrade><xsf:useTransformtransform="upgrade.xsl"minVersionToUpgrade="0.0.0.0"maxVersionToUpgrade="1.0.0.5"/></xsf:documentVersionUpgrade>
![Page 3748: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3748.jpg)
ShowAll
![Page 3749: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3749.jpg)
treatBlankValueAsZeroAttribute
Specifieswhetherablankfieldshouldbecalculatedwithavalueofzero.
![Page 3750: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3750.jpg)
Typexsf:xdYesNo
![Page 3751: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3751.jpg)
ParentElements
Element Descriptioncalculations Containsdefinitionsforcalculationsperformedintheform,
andspecifieshowblankvaluesarehandled.
![Page 3752: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3752.jpg)
Definition
<xsd:attributename="treatBlankValueAsZero"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3753: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3753.jpg)
RemarksDefaultis"yes".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3754: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3754.jpg)
ExampleThefollowingisanexampleofthetreatBlankValueAsZeroattributeasitisusedinthecalculationselement:
<xsf:calculations><xsf:calculatedFieldtarget="/my:myFields/my:average"expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"refresh="onChange"/>treatBlankValueAsZero=”yes”/></xsf:calculations>
![Page 3755: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3755.jpg)
ShowAll
![Page 3756: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3756.jpg)
trustLevelAttribute
Specifiesthetrustlevelofaformtemplate.
![Page 3757: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3757.jpg)
Typexsf:xdTrustLevel
![Page 3758: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3758.jpg)
ParentElements
Element DescriptionxDocumentClass Therootelementoftheformdefinitionfile(.xsf).
Containsallotherelementsandattributesoftheformdefinitionfile.
![Page 3759: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3759.jpg)
Definition
<xsd:attributename="trustLevel"type="xsf:xdTrustLevel"use="optional"></xsd:attribute>
![Page 3760: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3760.jpg)
RemarksIfthetrustLevelattributeispresentalongwiththerequireFullTrustattributeintheformdefinitionfile,andtherequireFullTrustattributeissetto"yes",thentherequireFullTrustattributetakesprecedence.Aformtemplatethatisnotpermittedfulltrust(becauseitlackspropercertificate,installation,orregistration)willfailtoloadineditmode,andawarningwillbedisplayed.Iftheformtemplateispermittedfulltrust,itwillloadandrunproperlyinthefulltrustsecurityzone.
Thedefaultvalueis"domain".IfthetrustLevelattributeisnotpresent,thedefaultvalueisalso"domain".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3761: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3761.jpg)
ExampleThefollowingisanexampleofthetrustLevelattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:schemas-microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">dataFormSolution="yes"requireFullTrust="yes"trustLevel="restricted"trustSetting="manual"publishUrl="http://MyServer/InfoPathTemplates/MyTemplate.xsn">...</xsf:xDocumentClass>
![Page 3762: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3762.jpg)
ShowAll
![Page 3763: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3763.jpg)
trustSettingAttribute
Specifiesthetrustsettingofaformtemplate.
![Page 3764: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3764.jpg)
Typexsf:xdManualAuto
![Page 3765: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3765.jpg)
ParentElements
Element DescriptionxDocumentClass Therootelementoftheformdefinitionfile(.xsf).
Containsallotherelementsandattributesoftheformdefinitionfile.
![Page 3766: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3766.jpg)
Definition
<xsd:attributename="trustSetting"type="xsf:xdManualAuto"use="optional"></xsd:attribute>
![Page 3767: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3767.jpg)
RemarksThedefaultvalueis"manual".IfthetrustSettingattributeisnotpresent,thedefaultvalueisalso"manual".
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3768: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3768.jpg)
ExampleThefollowingisanexampleofthetrustSettingattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:schemas-microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">dataFormSolution="yes"requireFullTrust="yes"trustLevel="restricted"trustSetting="manual"publishUrl="http://MyServer/InfoPathTemplates/MyTemplate.xsn">...</xsf:xDocumentClass>
![Page 3769: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3769.jpg)
ShowAll
![Page 3770: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3770.jpg)
typeAttribute(editWithElement)
SpecifiesthetypeofeditingforthefieldsthatmatchtheXPathexpressionspecifiedbytheitemattributeofthexmlToEditelement.
![Page 3771: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3771.jpg)
Type
xsd:enumeration
![Page 3772: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3772.jpg)
RemarksThetypeattributeisanoptionalattributeoftheeditWithelement.
ThetypeattributeisusedwiththexFieldeditingcomponent,anditsupportsthefollowingvalues:"plain","plainMultiline","formatted","formattedMultiline",and"rich".Thedefaultvalueis"plain".
NotethatifthematchedXMLDocumentObjectModel(DOM)nodedoesnotsupportthefulleditingservicesspecified,theeffectivetypeisdowngradedappropriately(thismeansdowngradingto"plain").Forexample,anattributenodewillbehaveasplainevenifsettorich.OnlydatathatisinaCDATAsection,orthatcorrespondstoXHTML,cansupportvaluesotherthan"plain".
![Page 3773: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3773.jpg)
ExampleThefollowingisanexampleofthetypeattributeasitisusedintheeditWithelement:
<xsf:xmlToEditname="Label_4"item="/CustomUISample/CDCollection/CD/Label"><xsf:editWithtype="rich"autoComplete="no"component="xField"></xsf:editWith></xsf:xmlToEdit>
![Page 3774: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3774.jpg)
typeAttribute(errorMessageElement)
Identifiesthetypeoferrormessagetoreturn.
![Page 3775: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3775.jpg)
Type
xsd:NMTOKEN
![Page 3776: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3776.jpg)
RemarksThetypeattributeisanoptionalattributeoftheerrorMessageelement.
Allowedvaluesare"modeless"and"modal".Defaultvalueis"modeless".
Adialogboxwiththelongmessageisreturnedfor"modal"errors.Whenthedialogboxisclosed,thefieldismarkedwithadashedredbordertoindicatethatthevalueisinvalid.Ausercanreadtheerrormessagebyright-clickingthefield.
For"modeless"errors,nodialogboxisdisplayed.Thefieldismarkedwithadashedredbordertoindicatethatthevalueisinvalid.Ausercanreadtheerrormessagebyright-clickingthefield.
NoteIfthefieldisinvalidasaresultofscriptingcodeorbecauseitwasinvalidtobeginwith,buthasnotbeenedited,thenitwillbemarkedwitharedunderline.
![Page 3777: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3777.jpg)
ExampleThefollowingisanexampleofthetypeattributeasitisusedintheerrorMessageelement:
<xsf:customValidation><xsf:errorConditionmatch="/exp:expenseReport"expressionContext="exp:reportDate"expression="msxsl:string-compare(.,../exp:startDate)<0and../exp:startDate!="""showErrorOn="."><xsf:errorMessagetype="modeless"shortMessage="Thereportdateoccursbeforetheendoftheexpenseperiod.">Thereportdateoccursbeforetheendoftheexpenseperiod.Verifythatthisiscorrect.</xsf:errorMessage></xsf:errorCondition></xsf:customValidation>
![Page 3778: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3778.jpg)
ShowAll
![Page 3779: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3779.jpg)
typeAttribute(fieldElement)
IdentifiesthestandardXMLSchemadatatype.
![Page 3780: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3780.jpg)
Type
xsd:NMTOKEN
![Page 3781: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3781.jpg)
RemarksThetypeattributeisarequiredattributeofthefieldelement.
![Page 3782: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3782.jpg)
ExampleThefollowingisanexampleofthetypeattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 3783: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3783.jpg)
typeAttribute(hwsOperationElement)
SpecifiestheMicrosoftBizTalkServer2004HumanWorkflowServices(HWS)operationtype.
![Page 3784: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3784.jpg)
Typexsd:string
![Page 3785: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3785.jpg)
ParentElements
Element DescriptionhwsOperation DefinestheHWSoperationtype,suchasaddingan
actiontoanewactivityflow,addinganactiontoanexistingactivityflow,orrespondingtoatask.
![Page 3786: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3786.jpg)
Definition
<xsd:attributename="type"type="xsd:string"use="required"></xsd:attribute>
![Page 3787: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3787.jpg)
RemarksTheallowedHWSoperationtypesare:
addActionToNewActivityFlowStartsanewworkflow.
addActionToActivityFlowStartsanewworkflow,orifoneexists,extendstheworkflow.
sendTaskResponseRespondstoatask.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3788: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3788.jpg)
ExampleThefollowingisanexampleofthetypeattributeasitisusedinthehwsOperationelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3789: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3789.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3790: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3790.jpg)
ShowAll
![Page 3791: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3791.jpg)
typeAttribute(propertyElement)
Definesthetypeoftheproperty.
![Page 3792: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3792.jpg)
Type
xsd:QName
![Page 3793: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3793.jpg)
RemarksThetypeattributeisarequiredattributeofthepropertyelement.
AllsimpleXMLSchemadatatypesareallowed.
![Page 3794: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3794.jpg)
ExampleThefollowingisanexampleofthetypeattributeasitisusedinthepropertyelement:
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 3795: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3795.jpg)
ShowAll
![Page 3796: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3796.jpg)
typeIDAttribute
Containsthegloballyuniqueidentifier(GUID)fortheMicrosoftBizTalkServer2004HumanWorkflowServices(HWS)operation.
![Page 3797: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3797.jpg)
Typexsd:string
![Page 3798: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3798.jpg)
ParentElements
Element DescriptionhwsOperation DefinestheHWSoperationtype,suchasaddingan
actiontoanewactivityflow,addinganactiontoanexistingactivityflow,orrespondingtoatask.
![Page 3799: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3799.jpg)
Definition
<xsd:attributename="typeID"type="xsd:string"use="required"></xsd:attribute>
![Page 3800: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3800.jpg)
RemarksTheGUIDisautomaticallygenerateduponsubmitofthehwsAdapterelement,anditupdatestheprocessinginstructionsoftheXMLinstancefile.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3801: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3801.jpg)
ExampleThefollowingisanexampleofthetypeIDattributeasitisusedinthehwsOperationelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 3802: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3802.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 3803: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3803.jpg)
ShowAll
![Page 3804: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3804.jpg)
uiAttribute(exportToExcelElement)
SetswhethertheusercanexportthecontentsoftheformtoaMicrosoftOfficeExcel2003workbook.
![Page 3805: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3805.jpg)
Typexsf:xdEnabledDisabled
![Page 3806: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3806.jpg)
ParentElements
Element DescriptionexportToExcel Specifieswhethertheusercanusetheform'smenus,
toolbars,orkeyboardshortcutstoexporttheformtoanMicrosoftOfficeExcel2003workbook.
![Page 3807: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3807.jpg)
Definition
<xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute>
![Page 3808: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3808.jpg)
RemarksSettingthisattributetoavalueotherthan"enabled"or"disabled"willresultinanerrormessagewhenyouattempttoopentheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3809: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3809.jpg)
ExampleThefollowingisanexampleoftheuiattributeasitisusedintheexportToExcelelement:
<xsf:exportToExcel ui="disabled"/>
![Page 3810: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3810.jpg)
ShowAll
![Page 3811: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3811.jpg)
uiAttribute(exportToWebElement)
SetswhethertheusercanexportthecontentsoftheformtoaWebpage.
![Page 3812: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3812.jpg)
Typexsf:xdEnabledDisabled
![Page 3813: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3813.jpg)
ParentElements
Element DescriptionexportToWeb Specifieswhethertheusercanusetheform'smenus,
toolbars,orkeyboardshortcutstoexporttheformtoaWebpage.
![Page 3814: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3814.jpg)
Definition
<xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute>
![Page 3815: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3815.jpg)
RemarksSettingthisattributetoavalueotherthan"enabled"or"disabled"willresultinanerrormessagewhenyouattempttoopentheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3816: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3816.jpg)
ExampleThefollowingisanexampleoftheuiattributeasitisusedintheexportToWebelement:
<xsf:exportToWeb ui="disabled"/>
![Page 3817: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3817.jpg)
ShowAll
![Page 3818: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3818.jpg)
uiAttribute(printElement)
Setswhethertheusercanprinttheform.
![Page 3819: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3819.jpg)
Typexsf:xdEnabledDisabled
![Page 3820: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3820.jpg)
ParentElements
Element Descriptionprint Specifieswhethertheusercanusetheform'smenus,toolbars,
orkeyboardshortcutstoprinttheform
![Page 3821: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3821.jpg)
Definition
<xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute>
![Page 3822: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3822.jpg)
RemarksSettingthisattributetoavalueotherthan"enabled"or"disabled"willresultinanerrormessagewhenyouattempttoopentheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3823: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3823.jpg)
ExampleThefollowingisanexampleoftheuiattributeasitisusedintheprintelement:
<xsf:printui="disabled"/>
![Page 3824: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3824.jpg)
ShowAll
![Page 3825: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3825.jpg)
uiAttribute(saveElement)
Setswhethertheusercansavetheform.
![Page 3826: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3826.jpg)
Typexsf:xdEnabledDisabled
![Page 3827: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3827.jpg)
ParentElements
Element Descriptionsave Specifieswhethertheusercanusetheform'smenus,toolbars,
orkeyboardshortcutstosavetheform.
![Page 3828: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3828.jpg)
Definition
<xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute>
![Page 3829: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3829.jpg)
RemarksSettingthisattributetoavalueotherthan"enabled"or"disabled"willresultinanerrormessagewhenyouattempttoopentheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3830: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3830.jpg)
ExampleThefollowingisanexampleoftheuiattributeasitisusedinthesaveelement:
<xsf:saveui="disabled"/>
![Page 3831: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3831.jpg)
ShowAll
![Page 3832: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3832.jpg)
uiAttribute(sendMailElement)
Setswhethertheusercansendtheformasane-mailattachment.
![Page 3833: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3833.jpg)
Typexsf:xdEnabledDisabled
![Page 3834: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3834.jpg)
ParentElements
Element DescriptionsendMail Specifieswhethertheusercanusetheform'smenus,
toolbars,orkeyboardshortcutstosendtheformasane-mailattachment.
![Page 3835: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3835.jpg)
Definition
<xsd:attributename="ui"type="xsf:xdEnabledDisabled"use="required"></xsd:attribute>
![Page 3836: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3836.jpg)
RemarksSettingthisattributetoavalueotherthan"enabled"or"disabled"willresultinanerrormessagewhenyouattempttoopentheform.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3837: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3837.jpg)
ExampleThefollowingisanexampleoftheuiattributeasitisusedinthesendMailelement:
<xsf:sendMailui="disabled"/>
![Page 3838: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3838.jpg)
ShowAll
![Page 3839: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3839.jpg)
urlAttribute
ContainstheUniformResourceLocator(URL)foraMicrosoftBizTalk2004HumanWorkflowServices(HWS)Webservice.
![Page 3840: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3840.jpg)
Typexsd:string
![Page 3841: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3841.jpg)
ParentElements
Element Descriptionlocation ThelocationoftheHWSWebservice.
![Page 3842: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3842.jpg)
Definition
<xsd:attributename="url"type="xsd:string"use="required"></xsd:attribute>
![Page 3843: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3843.jpg)
RemarksTheurlattributeisarequiredattributeofthelocationelement.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3844: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3844.jpg)
ExampleThefollowingisanexampleoftheurlattributeasitisusedinthelocationelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
![Page 3845: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3845.jpg)
useDataSetAttribute
SpecifieswhetheranadapterwillsupportanADO.NETDataSet.
![Page 3846: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3846.jpg)
Typexsf:xdYesNo
![Page 3847: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3847.jpg)
ParentElements
Element DescriptionwebServiceAdapter DefinesaWebservicedataadapterthatretrieves
datafromaWebserviceorsubmitsdatatoaWebservice.
![Page 3848: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3848.jpg)
Definition
<xsd:attributename="useDataSet"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3849: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3849.jpg)
RemarksDefaultis"no".
UseoftheuseDataSetattributerequiresMicrosoftOfficeInfoPath2003ServicePack1.
AnADO.NETDataSetcannotbeusedasaqueryparameterforthewebServiceAdapterelementoranyotherdataadapter.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3850: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3850.jpg)
ExampleThefollowingisanexampleoftheuseDataSetattributeasitisusedinthewebServiceAdapterelement:
<xsf:webServiceAdapterwsdlUrl="http://www.contoso.com/DataSet.asmx?WSDL"queryAllowed="yes"useDataSet="yes">...</xsf:webServiceAdapter>
![Page 3851: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3851.jpg)
ShowAll
![Page 3852: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3852.jpg)
useFilterAttribute
Indicatestheuserwantsafilterwidget.
![Page 3853: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3853.jpg)
Typexsd:simpleType
![Page 3854: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3854.jpg)
ParentElements
Element DescriptioneditWith (Optionalelement)Specifiesaninstanceofanediting
component,andprovidesthecorrespondingparameterstodetermineitsexactbehavior.
![Page 3855: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3855.jpg)
Definition
<xsd:attributename="useFilter"use="optional"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:enumerationvalue="yes"/><xsd:enumerationvalue="no"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3856: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3856.jpg)
RemarksTheuseFilterattributeisanoptionalattributeoftheeditWithelement.Itsdefaultvalueis"no".Iftheuserselectsthefilterwidgetcheckboxinthepropertydialogofarepeatingsectionorrepeatingtable,andtheuseFilterattributeissetto"yes",thewidgetIconattributeissetto"Filter".TheuseFilterattributeisonlyapplicableforrepeatingsectionsandtables.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3857: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3857.jpg)
ExampleThefollowingisanexampleoftheuseFilterattributeasitisusedintheeditWithelement:
<editWithcomponent="xCollection"widgetIcon="filter|standard"useFilter="yes|no"filterDependency="xpath1|xpath2|xpath3>
![Page 3858: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3858.jpg)
useScriptHandlerAttribute
SpecifieswhethertousetheeventhandlerdefinedfortheOnMergeRequesteventwhenimporting(merging)forms.
![Page 3859: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3859.jpg)
Typexsf:xdYesNo
![Page 3860: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3860.jpg)
ParentElements
Element DescriptionimportParameters Containsalltheparametersthatdefinehowthe
import(merge)formsfeatureworksfortheform.
![Page 3861: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3861.jpg)
Definition
<xsd:attributename="useScriptHandler"type="xsf:xdYesNo"use="optional"></xsd:attribute>
![Page 3862: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3862.jpg)
RemarksIfyoucreateaneventhandlerfortheOnMergeRequesteventofaformtemplate,youmustsettheuseScriptHandlerattributeto"yes"beforeitwillrun.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3863: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3863.jpg)
ExampleThefollowingisanexampleoftheuseScriptHandlerattributeasitisusedintheimportParameterselement:
<xsf:importParametersenabled="yes"useScriptHandler="yes"><xsf:importSourcename="MySource"schema="MySchema.xsd"transform="schematransform.xslt"/></xsf:importParameters>
![Page 3864: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3864.jpg)
valueAttribute(attachmentFileNameElement)
ContainsthevalueoftheattachmentFileNameelement.
![Page 3865: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3865.jpg)
Typexsd:string
![Page 3866: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3866.jpg)
ParentElements
Element DescriptionattachmentFileName Containsthefilenameofthefileattachmenttobe
includedwithane-mailmessagewhentheformissubmittedusingtheemailAdapterelement.
![Page 3867: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3867.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
![Page 3868: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3868.jpg)
RemarksIfthevalueattributeisanemptystring,thee-mailmessagewillnotincludeafileattachment.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3869: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3869.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedintheattachmentFileNameelement:
<xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/>
![Page 3870: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3870.jpg)
valueAttribute(attributeDataElement)
Specifiesthevalueoftheattributetobeinserted.
![Page 3871: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3871.jpg)
Type
xsd:string
![Page 3872: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3872.jpg)
RemarksThevalueattributeisarequiredattributeoftheattributeDataelement.
![Page 3873: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3873.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedintheattributeDataelement:
<xsf:editWithcomponent="xOptional"><xsf:fragmentToInsert><xsf:chooseFragmentparent="report"><xsf:attributeDataattribute="author"value="authorname"/></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith>
![Page 3874: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3874.jpg)
valueAttribute(bccElement)
Specifiesthevalueofthebccelement,asaliteralstringorasanexpressionbasedonthevalueTypeattribute.
![Page 3875: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3875.jpg)
Typexsd:string
![Page 3876: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3876.jpg)
ParentElements
Element Descriptionbcc Containstherecipientinformationforthebcclineofane-mail
messagewhentheformissubmittedusingtheemailAdapterelement.
![Page 3877: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3877.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
![Page 3878: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3878.jpg)
RemarksMultipleaddressesonthebcclineofane-mailmessagemustbeseparatedbysemicolons.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3879: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3879.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedinthebccelement:
<xsf:bccvalue="[email protected]"valueType="literal"/>
![Page 3880: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3880.jpg)
valueAttribute(ccElement)
Specifiesthevalueoftheccelement,asaliteralstringorasanexpressionbasedonthevalueTypeattribute.
![Page 3881: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3881.jpg)
Typexsd:string
![Page 3882: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3882.jpg)
ParentElements
Element Descriptioncc Containstherecipientinformationforthecclineofthee-mail
messagewhentheformissubmittedusingtheemailAdapterelement.
![Page 3883: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3883.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
![Page 3884: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3884.jpg)
RemarksMultipleaddressesonthecclineofane-mailmessagemustbeseparatedbysemicolons.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3885: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3885.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedintheccelement:
<xsf:ccvalue="my:ccNames"valueType="expression"/>
![Page 3886: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3886.jpg)
ShowAll
![Page 3887: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3887.jpg)
valueAttribute(fileNameElement)
SpecifiesthevalueofthefileNameelement,asaliteralstringorasanexpressionbasedonthevalueTypeattribute.
![Page 3888: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3888.jpg)
Typexsd:string
![Page 3889: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3889.jpg)
ParentElements
Element DescriptionfileName ContainsthenameofthefileasaliteralstringorXPath
expression.
![Page 3890: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3890.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3891: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3891.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedinthefileNameelement:
<xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/>
![Page 3892: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3892.jpg)
ShowAll
![Page 3893: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3893.jpg)
valueAttribute(folderURLElement)
SpecifiestheUniformResourceLocator(URL)oftheWeb-basedDistributedAuthoringandVersioning(WebDAV)serverorserverthatisrunningMicrosoftWindowsSharePointServicestowhichthefileissubmitted.
![Page 3894: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3894.jpg)
Typexsd:string
![Page 3895: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3895.jpg)
ParentElements
Element DescriptionfolderURL ContainstheURLoftheservertowhichthefileissubmitted.
![Page 3896: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3896.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
![Page 3897: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3897.jpg)
RemarksTheURLmustbeginwith"http://"or"https://".Othercommonprotocolswillcauseanerror.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3898: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3898.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedinthefolderURLelement:
<folderURLvalue="http://some_server/some_doc_lib"/>
![Page 3899: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3899.jpg)
valueAttribute(introElement)
Containsthevalueoftheintroelement.
![Page 3900: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3900.jpg)
Typexsd:string
![Page 3901: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3901.jpg)
ParentElements
Element Descriptionintro Containstheintroductionforthee-mailmessagewhentheform
issubmittedusingtheemailAdapterelement.
![Page 3902: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3902.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3903: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3903.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedintheintroelement:
<xsf:introvalue="Seebelow"/>
![Page 3904: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3904.jpg)
ShowAll
![Page 3905: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3905.jpg)
valueAttribute(propertyElement)
Forsimpleproperties,specifiesavaluefortheproperty.Forcomplexandmulti-valuedproperties,thespecifiedvalueisdefinedasacontainerXMLtreeusinganopencontentmodel.
![Page 3906: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3906.jpg)
Type
xsd:string
![Page 3907: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3907.jpg)
RemarksThevalueattributeisarequiredattributeofthepropertyelement.The.cabfilesthatareincludedinanInfoPathformpackagearelistedinthepackageandfileselementsofan.xsffile.AfileTypevalueof"ActiveX-CAB"identifiesthatthefileisa.cabfileaddedbythedesignerandindicatesthatthefileshouldbemanagedbytheActiveXsupportfeaturesofthedesigner.
![Page 3908: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3908.jpg)
ExampleThefollowingareexamplesofthevalueattributeasitisusedinthepropertyelement:
<xsf:files><xsf:filename="example.cab"><xsf:fileProperties><xsf:propertyname="fileType"type="string"value="ActiveX-CAB"/><xsf:propertyname="timestamp"type="string"value="xyz"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
<xsf:package><xsf:files><xsf:filename="view_1.xsl"><xsf:fileProperties><xsf:propertyname="lang"type="string"value="1033"/></xsf:fileProperties></xsf:file></xsf:files></xsf:package>
![Page 3909: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3909.jpg)
valueAttribute(subjectElement)
Containsthevalueofthesubjectelement,eitherasanexpressionorasaliteralstring.
![Page 3910: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3910.jpg)
Typexsd:string
![Page 3911: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3911.jpg)
ParentElements
Element Descriptionsubject Containsthesubjectlineofthee-mailmessagewhentheform
issubmittedusingtheemailAdapterelement.
![Page 3912: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3912.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3913: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3913.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedinthesubjectelement:
<xsf:subjectvalue="Myreport"valueType="literal"/>
![Page 3914: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3914.jpg)
valueAttribute(toElement)
Specifiesthevalueofthetoelement,asaliteralstringorasanexpressionbasedonthevalueTypeattribute.
![Page 3915: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3915.jpg)
Typexsd:string
![Page 3916: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3916.jpg)
ParentElements
Element Descriptionto Parentelementthatcontainsthe"to"lineinformationofthe
emailAdapterelement.
![Page 3917: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3917.jpg)
Definition
<xsd:attributename="value"type="xsd:string"use="required"></xsd:attribute>
![Page 3918: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3918.jpg)
RemarksMultipleaddressesonthe"to"lineofane-mailmessagemustbeseparatedbysemicolons.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3919: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3919.jpg)
ExampleThefollowingisanexampleofthevalueattributeasitisusedinthetoelement:
<xsf:tovalue="[email protected]"valueType="literal"/>
![Page 3920: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3920.jpg)
ShowAll
![Page 3921: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3921.jpg)
valueTypeAttribute(attachmentFileNameElement)
SpecifieswhetherthevalueattributeoftheattachmentFileNameelementshouldbeinterpretedasaliteralvalueoranXPathexpressionwhichreturnsavalue.
![Page 3922: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3922.jpg)
Typexsf:xdExpressionLiteral
![Page 3923: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3923.jpg)
ParentElements
Element DescriptionattachmentFileName Containsthefilenameofthefileattachmenttobe
includedwithane-mailmessagewhentheformissubmittedusingtheemailAdapterelement.
![Page 3924: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3924.jpg)
Definition
<xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute>
![Page 3925: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3925.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3926: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3926.jpg)
ExampleThefollowingisanexampleofthevalueTypeattributeasitisusedintheattachmentFileNameelement:
<xsf:attachmentFileNamevalue="StatusReport"valueType="literal"/>
![Page 3927: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3927.jpg)
ShowAll
![Page 3928: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3928.jpg)
valueTypeAttribute(bccElement)
SpecifieswhetherthevalueattributeofthebccelementshouldbeinterpretedasaliteralvalueorasanXPathexpressionthatreturnsavalue.
![Page 3929: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3929.jpg)
Typexsf:xdExpressionLiteral
![Page 3930: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3930.jpg)
ParentElements
Element Descriptionbcc Containstherecipientinformationforthebcclineofane-mail
messagewhentheformissubmittedusingtheemailAdapterelement.
![Page 3931: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3931.jpg)
Definition
<xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute>
![Page 3932: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3932.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3933: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3933.jpg)
ExampleThefollowingisanexampleofthevalueTypeattributeasitisusedinthebccelement:
<xsf:bccvalue="[email protected]"valueType="literal"/>
![Page 3934: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3934.jpg)
ShowAll
![Page 3935: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3935.jpg)
valueTypeAttribute(ccElement)
SpecifieswhetherthevalueattributeoftheccelementshouldbeinterpretedasaliteralvalueorasanXPathexpressionthatreturnsavalue.
![Page 3936: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3936.jpg)
Typexsf:xdExpressionLiteral
![Page 3937: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3937.jpg)
ParentElements
Element Descriptioncc Specifiesthevalueoftheccelement,asaliteralstringorasan
expressionbasedonthevalueTypeattribute.
![Page 3938: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3938.jpg)
Definition
<xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute>
![Page 3939: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3939.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3940: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3940.jpg)
ExampleThefollowingisanexampleofthevalueTypeattributeasitisusedintheccelement:
<xsf:ccvalue="my:ccNames"valueType="expression"/>
![Page 3941: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3941.jpg)
ShowAll
![Page 3942: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3942.jpg)
valueTypeAttribute(fileNameElement)
SpecifieswhetherthevalueofthefileNameelementshouldbeinterpretedasaliteralvalueorasanXPathexpressionthatreturnsavalue.
![Page 3943: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3943.jpg)
Typexsf:xdExpressionLiteral
![Page 3944: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3944.jpg)
ParentElements
Element DescriptionfileName ContainsthenameofthefileasaliteralstringorasanXPath
expression.
![Page 3945: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3945.jpg)
Definition
<xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute>
![Page 3946: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3946.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3947: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3947.jpg)
ExampleThefollowingisanexampleofthevalueTypeattributeasitisusedinthefileNameelement:
<xsf:fileNamevalue="my:myFields/my:fileName"valueType="expression"/>
![Page 3948: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3948.jpg)
ShowAll
![Page 3949: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3949.jpg)
valueTypeAttribute(subjectElement)
SpecifieswhetherthevalueattributeofthesubjectelementshouldbeinterpretedasaliteralvalueorasanXPathexpressionthatreturnsavalue.
![Page 3950: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3950.jpg)
Typexsf:xdExpressionLiteral
![Page 3951: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3951.jpg)
ParentElements
Element Descriptionsubject Containsthesubjectlineofane-mailmessagewhentheform
issubmittedusingtheemailAdapterelement.
![Page 3952: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3952.jpg)
Definition
<xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute>
![Page 3953: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3953.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3954: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3954.jpg)
ExampleThefollowingisanexampleofthevalueTypeattributeasitisusedinthesubjectelement:
<xsf:subjectvalue="Myreport"valueType="literal"/>
![Page 3955: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3955.jpg)
ShowAll
![Page 3956: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3956.jpg)
valueTypeAttribute(toElement)
SpecifieswhetherthevalueattributeofthetoelementshouldbeinterpretedasaliteralvalueorasanXPathexpressionthatreturnsavalue.
![Page 3957: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3957.jpg)
Typexsf:xdExpressionLiteral
![Page 3958: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3958.jpg)
ParentElements
Element Descriptionto Parentelementthatcontainsthe"to"lineinformationofthe
emailAdapterelement.
![Page 3959: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3959.jpg)
Definition
<xsd:attributename="valueType"type="xsf:xdExpressionLiteral"use="optional"></xsd:attribute>
![Page 3960: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3960.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3961: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3961.jpg)
ExampleThefollowingisanexampleofthevalueTypeattributeasitisusedinthetoelement:
<xsf:tovalue="[email protected]"valueType="literal"/>
![Page 3962: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3962.jpg)
ShowAll
![Page 3963: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3963.jpg)
versionAttribute
SpecifiestheActiveXcontrolversionnumber.
![Page 3964: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3964.jpg)
Typexsd:string
![Page 3965: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3965.jpg)
ParentElements
Element DescriptionallowedControl SpecifiestheActiveXcontrolsthatareallowedtobe
instantiated.
![Page 3966: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3966.jpg)
Definition
<xsd:attributename="version"type="xsd:string"use="optional"></xsd:attribute>
![Page 3967: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3967.jpg)
RemarksIftheclsidattributeforanActiveXcontrolisincludedintheallowedControlelementinaformdefinitionfile(.xsf),butthecontrolisnotinstalledontheuser'scomputer,thecontrolwillbeinstalledautomaticallyifthecabFileattributeforthecontrolispresentandtheCABfileispresentintheformtemplatefile(.xsn)orinthesamedirectoryastheformdefinitionfile.Ifthecontrolisalreadyinstalledontheuser'scomputerbutisanearlierversionthantheonelistedintheversionattribute,theinstallprocessstillwillinitiateiftheCABfileforthecontrolispresent.IftheCABfileisnotpresentforsomereasonortheinstallationfailsorisstopped,theformwillnotopen.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3968: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3968.jpg)
ExampleThefollowingisanexampleoftheversionattributeasitisusedintheallowedControlelement:
<xsf:permissions><xsf:allowedControlcabFile="{84F32C01-78D8-4B93-8ED4-106DA70224C2}.cab”clsid="{84F32C01-78D8-4B93-8ED4-106DA70224C2}"version=”1,0,0,1”/><xsf:allowedControlclsid="{F08DF954-8592-11D1-B16A-00C0F0283630}"/></xsf:permissions>
![Page 3969: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3969.jpg)
ShowAll
![Page 3970: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3970.jpg)
viewAttribute
Containsthenameoftheviewthatisswitchedtoasaresultoftheruleelementaction.
![Page 3971: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3971.jpg)
Typexsf:xdViewName
![Page 3972: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3972.jpg)
ParentElements
Element DescriptionswitchViewAction Definesaviewswitchaction.
![Page 3973: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3973.jpg)
Definition
<xsd:attributename="view"type="xsf:xdViewName"use="required"></xsd:attribute>
![Page 3974: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3974.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3975: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3975.jpg)
ExampleThefollowingisanexampleoftheviewattributeasitisusedintheswitchViewActionelement:
<xsf:rulecaption="Receipts"condition="my:expense>75"><xsf:dialogBoxMessageAction>Don'tforgetyourreceipts!</xsf:dialogBoxMessageAction><xsf:switchViewActionview="ApprovalView"/><xsf:assignmentActiontargetField="my:group8/my:group9/my:target"expression="sum(my:expenses/my:expense)*my:taxRate"/><xsf:queryActionadapter="ExchangeRates"/><xsf:submitActionadapter="ExchangeRates"/><xsf:openNewDocumentActionsolutionURI="uri:microsoft-ExpenseReport"/><xsf:closeDocumentActionpromptToSaveChanges="yes"/><xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction><xsf:exitRuleSet/></xsf:rule>
![Page 3976: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3976.jpg)
viewableAttribute
Identifieswhetherthefieldshouldbeaddedtothedefaultview.
![Page 3977: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3977.jpg)
Type
xsf:xdYesNo
![Page 3978: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3978.jpg)
RemarksTheviewableattributeisanoptionalattributeofthefieldelement.
Valuesinclude"yes"and"no".Thedefaultvalueis"no".
![Page 3979: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3979.jpg)
ExampleThefollowingisanexampleoftheviewableattributeasitisusedinthefieldelement:
<xsf:listProperties><xsf:fields><xsf:fieldtype="xsd:date"name="TravelDate"columnName="TravelDate"required="yes"viewable="yes"node="TravelReport/Header/travelDate"aggregation="first"/></xsf:fields></xsf:listProperties>
![Page 3980: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3980.jpg)
ShowAll
![Page 3981: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3981.jpg)
viewContextAttribute
SpecifiesastringthatidentifiesanHTMLelementintheview.
![Page 3982: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3982.jpg)
Type
xsd:string
![Page 3983: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3983.jpg)
RemarksTheviewContextattributeisanoptionalattributeofthexmlToEditelement.
TheviewContextattributenamesanHTMLelementthathasthexd:CtrlIdattribute.Forexample,viewContext="myID"intheformdefinition(.xsf)filecorrespondstoxd:CtrlId="myID"intheXSLT/HTMLcodefortheview.
NoteIfthexd:CtrlIdattributeisnotusedintheXSLT/HTMLcodefortheview,thentheviewContextattributeisignored.
TheviewContextattributecanbeusedtodisambiguatecontrolswhentwoinstancesofthesamecontrolhavethesameXMLcontext(sothattheXMLcontextisidentical).Anexampleisatableofcontentswithchaptertitles,andbelow,thesamechaptersrepeatedwithfullcontent.TwoeditWithelementsforitem="chapter"butdifferentviewcontextscanspecifydistinctbehavior.
![Page 3984: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3984.jpg)
ExampleThefollowingisanexampleoftheviewContextattributeasitisusedinthexmlToEditelement:
<xsf:editing><xsf:xmlToEditname="CD_10"item="/CustomUISample/CDCollection/CD"container="/CustomUISample">viewContext="cdID"<xsf:editWithcaption="CD"xd:autogeneration="template"component="xCollection"><xsf:fragmentToInsert><xsf:chooseFragmentparent="CDCollection"><CD><Title></Title><Artist></Artist><Tracks><Track></Track><Track></Track></Tracks></CD></xsf:chooseFragment></xsf:fragmentToInsert></xsf:editWith></xsf:xmlToEdit></xsf:editing>
![Page 3985: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3985.jpg)
ShowAll
![Page 3986: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3986.jpg)
widgetIconAttribute
Specifieswhetheramodifiediconwillbeshownforfiltereditems.
![Page 3987: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3987.jpg)
Typexsd:simpleType
![Page 3988: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3988.jpg)
ParentElements
Element DescriptioneditWith (Optionalelement)Specifiesaninstanceofanediting
component,andprovidesthecorrespondingparameterstodetermineitsexactbehavior.
![Page 3989: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3989.jpg)
Definition
<xsd:attributename="widgetIcon"use="optional"><xsd:simpleType><xsd:restrictionbase="xsd:string"><xsd:enumerationvalue="standard"/><xsd:enumerationvalue="filter"/></xsd:restriction></xsd:simpleType></xsd:attribute>
![Page 3990: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3990.jpg)
RemarksThewidgetIconattributeisanoptionalattributeoftheeditWithelement.Itsdefaultvalueis"standard".
ThepropertiesdialogboxesforrepeatingsectionsandtableshaveaFilterDatabuttonontheDisplaytab.BelowtheFilterDatabuttonisacheckboxthatallowstheusertoselectwhetheramodifiediconwillbeshowntoindicatefiltereditems.Iftheuserappliesafilterandselectsthischeckbox,thewidgetIconattributeintheformdefinitionfile(.xsf)issetto"filter".ThewidgetIconattributeisonlyapplicableforrepeatingsectionsandtables.
NoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 3991: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3991.jpg)
ExampleThefollowingisanexampleofthewidgetIconattributeasitisusedintheeditWithelement:
<editWithcomponent="xCollection"widgetIcon="filter|standard"useFilter="yes|no"filterDependency="xpath1|xpath2|xpath3>
![Page 3992: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3992.jpg)
ShowAll
![Page 3993: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3993.jpg)
wsdlUrlAttribute
ContainstheUniformResourceLocator(URL)oftheWebServicesDescriptionLanguage(WSDL)filethatdescribestheWebservicespecification.
![Page 3994: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3994.jpg)
Type
xsd:string
![Page 3995: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3995.jpg)
RemarksThewsdlUrlattributeisarequiredattributeofthewebServiceAdapterelement.
![Page 3996: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3996.jpg)
ExampleThefollowingisanexampleofthewsdlUrlattributeasitisusedinthewebServiceAdapterelement:
<xsf:query><xsf:webServiceAdapterwsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL"queryAllowed="yes"submitAllowed="no"><xsf:operationname="getOrders"soapAction="http://tempuri.org/getOrders"serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx"><xsf:inputsource="Submit.xml"></xsf:input></xsf:operation></xsf:webServiceAdapter></xsf:query>
![Page 3997: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3997.jpg)
ShowAll
![Page 3998: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3998.jpg)
wsdlUrlAttribute(hwsAdapterElement)
ContainstheUniformResourceLocator(URL)oftheMicrosoftBizTalk2004HumanWorkflowServices(HWS)Webservice.
![Page 3999: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/3999.jpg)
Typexsd:string
![Page 4000: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4000.jpg)
ParentElements
Element DescriptionhwsAdapter DefinestheHWSdataadaptertostartorextendanactivity
floworrespondtoatask.
![Page 4001: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4001.jpg)
Definition
<xsd:attributename="wsdlUrl"type="xsd:string"use="required"></xsd:attribute>
![Page 4002: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4002.jpg)
RemarksNoteThisitemisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003EditionsServicePack1orlaterisnotinstalled.Anyformdefinedbyaformdefinitionfile(.xsf)thatincludesthisitemcannotbeopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.
![Page 4003: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4003.jpg)
ExampleThefollowingisanexampleofthewsdlUrlattributeasitisusedinthehwsAdapterelement:
<xsf:hwsWorkflowtaskpaneVisible="yes"><xsf:locationurl="http://www.contoso.com/hwsservice/hwsservice.asmx"/><xsf:allowedActions><xsf:actionname="approval"actionTypeID="123"canInitiateWorkflow="yes"caption="GetApproval"/><xsf:actionname="delegate"actionTypeID="234"canInitiateWorkflow="no"caption="Delegate"/></xsf:allowedActions><xsf:allowedTasks><xsf:taskname="getManagerApproval"taskTypeID="435"caption="SendResponse"/><xsf:taskname="getVPApproval"taskTypeID="436"caption="SendResponse"/><xsf:taskname="delegateToManager"taskTypeID="420"caption="Respond"/></xsf:allowedTasks></xsf:hwsWorkflow>
<xsf:hwsAdaptername="StartApproval"wsdlUrl="http://www.contoso.com/hwsservice/hwsservice.asmx?WSDL"submitAllowed="yes"><xsf:hwsOperationtype="addActionToNewActivityFlow"typeID="{guid}"serviceUrl="http://www.contoso.com/hwsservice/hwsservice.asmx"><xsf:inputsource="HWSMessage1.xml"><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param1"replaceWith="/my:myFields/my:param1"/><xsf:partFragmentmatch="/ns1:HWSMessage/ActionSection/param2"
![Page 4004: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4004.jpg)
replaceWith="/a:some/b:thing"dataObject="Aux1"/></xsf:input></xsf:hwsOperation></xsf:hwsAdapter>
![Page 4005: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4005.jpg)
xmlnsAttribute
Definesthexsfnamespace.
![Page 4006: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4006.jpg)
Type
xsd:string
![Page 4007: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4007.jpg)
RemarksThexmlnsattributeisarequiredattributeofthexDocumentClasselement,andisthestandardmechanismfordeclaringXMLnamespaces.
![Page 4008: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4008.jpg)
ExampleThefollowingisanexampleofthexmlnsattributeasitisusedinthexDocumentClasselement:
<xsf:xDocumentClassxmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"name="urn:microsoft-com:myTravelReport"author="AuthorName"description="TravelReportformforenteringtravelreports,issues,expenses,etc."dataFormSolution="yes"solutionVersion="1.0.0.1"productVersion="11.0.5106"solutionFormatVersion="1.0.0.0">...</xsf:xDocumentClass>
![Page 4009: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4009.jpg)
xmlToEditAttribute
SpecifiesthenameofanxmlToEditelement,forwhichthebuttonisused.
![Page 4010: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4010.jpg)
Type
xsd:NMTOKEN
![Page 4011: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4011.jpg)
RemarksThexmlToEditattributeisanoptionalattributeofthebuttonelement,butisrequiredforbuttonsusedwitheditingcomponents.
![Page 4012: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4012.jpg)
ExampleThefollowingisanexampleofthexmlToEditattributeasitisusedinthebuttonelement:
<xsf:menuAreaname="msoInsertMenu"><xsf:menucaption="&Section"><xsf:buttonaction="xCollection::insert"xmlToEdit="CD_10"caption="CD"showIf="always"></xsf:button><xsf:buttonaction="xCollection::insert"xmlToEdit="Track_14"caption="Track"showIf="always"></xsf:button><xsf:buttonaction="xOptional::insert"xmlToEdit="Label_16"caption="Label"></xsf:button></xsf:menu></xsf:menuArea>
![Page 4013: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4013.jpg)
XDocumentProperty(SaveEventObject)
Aread-onlypropertythatreturnsareferencetotheXDocumentobjectthatisassociatedwiththeSaveEventobjectinanOnSaveRequestevent.
expression.XDocument
expressionRequired.ReturnsareferencetoaSaveEventobject.
![Page 4014: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4014.jpg)
SecurityLevel2:Canbeaccessedonlybyformsrunninginthesamedomainasthecurrentlyopenform,orbyformsthathavebeengrantedcross-domainpermissions.
![Page 4015: Microsoft Office InfoPath 2003 Developer's ReferenceSchema.xsd The XML Schema files that are used to constrain and validate a form's underlying XML document files. View .xsl The presentation](https://reader033.fdocuments.in/reader033/viewer/2022043000/5f76f5ced4f8431e3043ec59/html5/thumbnails/4015.jpg)
RemarksNoteThisobjectmodelmemberisnotsupportedwhentheDisableServicePackfeaturesoptionontheAdvancedtaboftheOptionsdialogboxinInfoPathisselectedorwhenMicrosoftOffice2003ServicePack1orlaterisnotinstalled.AnyformthatimplementsthisobjectmodelmemberinitscodewillgenerateanerrormessageifitisopenedinInfoPathwhenservicepackfeaturesaredisabledorunavailable.