|
|
|
InfoJet Service Form Code Support |
|
InfoJet Service supports JScript, VBScript and Managed Code
in InfoPath Forms.
-
For Managed Code Support, InfoJet Service already contains InfoPath Managed
Code Interop Interface Assembly:
Microsoft.Office.Interop.InfoPath.SemiTrust.dll and
Microsoft.Office.InfoPath.Permission.dll, they are released in
Office 2007 Primary Interop Assemblies (PIA) by
Microsoft.
-
InfoJet Service supports InfoPath 2007 object model with InfoJet POM.
-
InfoJet Service needs Microsoft Script Control to run JScript and VBScript form code.
Windows 2000, Windows XP and Windows 2003 already ships the msscript.ocx, so it
isn't included in InfoJet Service/EditPart/QuickFill installation program. If any
problem occured about it, please try to install Microsoft Script Host and
Microsoft Script Control(http://msdn.microsoft.com/scripting),
and welcome to contact us.
-
JScript/VBScript form code is not supported on x64 platform, becasue there is no 64bit version of Microsoft Script Control.
-
In JScript/VBScript form code, please use the following code to access DataObject:
XDocument.DataObjects.Item( "DataObjectName" ).DOM ,
rather than XDocument.DataObjects[] or XDocument.DataObjects().
Please access XDocument.DataAdapters, XDocument.ViewInfos in the same way.
-
In InfoJet Service, the method DataDOMEvent.ReportError() only works in the OnValidate event.
Please use DataDOMEvent.ReportError() as much as possible, rather than Errors.Add().
-
We found JScript/VBScript is unstable in some heavy application for some
unhandled exceptions, maybe you will get "Fatal Execution Engine Error" in Windows Event log,
so we suggest you use managed form code in InfoJet
Service as much as possible.
The following is the API list that are suitable for the web environment and
supported by InfoJet Service. Note: Unsupported Method/Property
are marked as white background.
|
|
|
Event Handler |
|
OnLoad, OnClick, OnSwitchView, OnSubmitRequest, OnVersionUpgrade,
OnAfterChange, OnValidate, OnMergeRequest, OnAfterImport
|
|
OnSign, OnSaveRequest, OnBeforeChange, OnContextChange
|
|
|
|
Event Object |
Method/Property |
| DataDOMEvent |
XDocument, ReturnStatus, Source, Site,
MatchExpression, Parent, Operation, NewValue, OldValue, ReturnMessage, ReportError * |
| DocReturnEvent |
XDocument, ReturnStatus |
| DocActionEvent |
XDocument, ReturnStatus, Source |
| DocEvent |
XDocument |
| VersionUpgradeEvent |
XDocument, ReturnStatus, DocumentVersion,
SolutionVersion |
| MergeEvent |
XDocument, ReturnStatus, DOM, Index, Count |
|
|
|
Form Interface |
Method/Property |
| XDocument |
DOM, UI, View, ViewInfos, Solution, Role{get}, Util, DataAdapters, DataObjects,
GetDOM, Query, QueryAdapter, Submit, PrintOut, CreateDOM, Errors
|
|
ImportFile, ImportDOM, URI, Save, SaveAs, SignedDataBlocks,
GetNamedNodeProperty, SetNamedNodeProperty, GetDataVariable, SetDataVariable,
IsSigned, Extension, Language, IsRecovered, IsReadOnly, IsDOMReadOnly, IsDirty,
SetDirty, IsNew, Role{set}
|
| UIObject |
Alert |
| ShowMailItem, ShowModalDialog, ShowSignatureDialog, Confirm,
SetSaveAsDialogFileName, SetSaveAsDialogLocation |
| ViewObject |
Name, Window, SwitchView, SelectNodes,
ExecuteAction, SelectText, Export |
| ForceUpdate, DisableAutoUpdate, EnableAutoUpdate, GetSelectedNodes,
GetContextNodes |
| ViewInfoObject |
Name, IsDefault{get} |
| IsDefault{set} |
| ViewInfosCollection |
GetEnumerator, this[index], Count |
| SolutionObject |
DOM, URI, Version |
| PackageURL |
| DataAdaptersCollection |
GetEnumerator, this[index], Count |
| ADOAdapterObject |
Name, Connection, Command, QueryAllowed, SubmitAllowed, Query
|
| BuildSQLFromXMLNodes, Timeout, Submit |
| DAVAdapterObject |
Name, FolderURL, FileName, QueryAllowed, SubmitAllowed, Submit
|
| Query, SubmitData |
| SharepointListAdapterObject |
Name, SiteUrl, QueryAllowed, SubmitAllowed, Query, Submit
|
| XMLFileAdapterObject |
Name, FileURL, QueryAllowed, SubmitAllowed, Query,
|
| WebServiceAdapterObject |
Name, WSDLURL, Operation, QueryAllowed, SubmitAllowed, Query, Submit
|
| Input, OutputLocation, ErrorsLocation, Timeout, GenerateDataSetDiffGram |
| EmailAdapterObject |
Name, To, CC, BCC, Subject, AttachmentFileName, Intro, QueryAllowed,
SubmitAllowed, Submit, Query
|
| SubmitData |
| DataObjectsCollection |
GetEnumerator, this[index], Count
|
| DataObject |
Name, DOM, QueryAdapter, Query
|
| ErrorsCollection |
Add, Delete, GetEnumerator, this[index], Count, DeleteAll *
|
| ErrorObject |
Node, ShortErrorMessage, DetailedErrorMessage
|
| UtilObject |
Match, Date, Math
|
| DateObject |
Now, Today
|
| IPMath |
Avg, Max, Min, Eval
|
| Nz
|
| Application |
ActiveWindow, User |
| UserObject |
IsCurrentUser, IsUserMemberOf |
| WindowObject |
Close, TaskPanes, MailEnvelope |
| TaskPanesCollection |
GetEnumerator, this[varIndex], Count |
| TaskPaneObject |
TaskPaneType=xdTaskPaneHTML, Navigate |
| MailEnvelopeObject |
To, CC, BCC, Subject, Visible |
|
|
|
XML Interface |
Method/Property |
DOMNode,
IXMLDOMNode |
selectSingleNode, selectNodes, cloneNode, appendChild, removeChild, text, xml,
nodeName, prefix, nodeValue, ownerDocument, baseName, namespaceURI, attributes,
childNodes, firstChild, hasChildNodes, lastChild, parentNode, nextSibling,
previousSibling, parsed, insertBefore, replaceChild, nodeType, transformNode
|
|
dataType, definition, nodeTypedValue, nodeTypeString, specified,
transformNodeToObject
|
| IXMLDOMAttribute |
name, value |
| IXMLDOMCharacterData |
data, length, substringData,
appendData, insertData, deleteData, replaceData |
| IXMLDOMCDATASection |
data, length, substringData, appendData,
insertData, deleteData, replaceData |
| IXMLDOMComment |
See DOMNode. |
| IXMLDOMDocument |
createAttribute, createElement, createCDATASection, createTextNode,
createComment, createDocumentFragment, createEntityReference,
createProcessingInstruction, createNode, importNode, getElementsByTagName,
load, loadXML, documentElement, implementation, doctype
|
|
abort, nodeFromID, save, async, ondataavailable, onreadystatechange,
ontransformnode, parseError, preserveWhiteSpace, readyState, resolveExternals,
url, validateOnParse.
|
| IXMLDOMDocumentFragment |
See DOMNode. |
| IXMLDOMDocumentType |
name, entities, notations |
| IXMLDOMElement |
getAttribute, setAttribute, removeAttribute, tagName, setAttributeNode,
getAttributeNode, removeAttributeNode, getElementsByTagName
|
|
normalize
|
| IXMLDOMEntity |
publicId, systemId, notationName |
| IXMLDOMEntityReference |
See DOMNode. |
| IXMLDOMNotation |
publicId, systemId |
| IXMLDOMProcessingInstruction |
target, data |
| IXMLDOMText |
data, length, substringData, appendData,
insertData, deleteData, replaceData, splitText |
| DOMNodeList |
GetEnumerator, length, nextNode, reset, this[index]
|
| IXMLDOMNamedNodeMap |
GetEnumerator, getNamedItem, getQualifiedItem, removeNamedItem,
removeQualifiedItem, length, nextNode, reset, setNamedItem, this[index]
|
| IXMLDOMImplementation |
hasFeature |
|
|
*: The method DataDOMEvent.ReportError() only works in the OnValidate event.
Please use DataDOMEvent.ReportError() as much as possible.
|
|
|
|