S
Simon vdB
Hi,
I'm afraid that being a relative newbie to InfoPath i have stumbled at
an early hurdle.
I attempting to 'Fully Trust' an existing InfoPath template file, i am
unsure how to actually register the following two attributes in the
manifest.xsf file :
requireFullTrust="yes"
name="urn:MyForm:MyCompany"
The xml in my manifest.xsf file is rather long, and i am not sure
where/how to add the "attributes"?
I am not entirely clear either if i have to replace the "MyForm" and
"MyCompany" text with anything else either?
Any pointers would be much appreciated,
Simon
ps. Below is the code in my .xsf file :
<xsf:xDocumentClass solutionVersion="1.0.0.9"
productVersion="11.0.6357" solutionFormatVersion="1.100.0.0"
trustSetting="automatic" publishUrl="C:\InfoPath Forms\manifest.xsf"
name="urn:schemas-microsoft-comffice:infopath:InfoPath-Forms:-myXSD-2005-01-22T04-52-15"
xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xdUtil="http://schemas.microsoft.com/office/infopath/2003/xslt/Util"
xmlns:xdXDocument="http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument"
xmlns:xdMath="http://schemas.microsoft.com/office/infopath/2003/xslt/Math"
xmlns:xdDate="http://schemas.microsoft.com/office/infopath/2003/xslt/Date">
<xsfackage>
<xsf:files>
<xsf:file name="myschema.xsd">
<xsf:fileProperties>
<xsfroperty name="namespace" type="string"
value="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15"></xsfroperty>
<xsfroperty name="editability" type="string"
value="full"></xsfroperty>
<xsfroperty name="rootElement" type="string"
value="myFields"></xsfroperty>
<xsfroperty name="useOnDemandAlgorithm" type="string"
value="yes"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="template.xml"></xsf:file>
<xsf:file name="sampledata.xml">
<xsf:fileProperties>
<xsfroperty name="fileType" type="string"
value="sampleData"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="view1.xsl">
<xsf:fileProperties>
<xsfroperty name="lang" type="string"
value="3081"></xsfroperty>
<xsfroperty name="viewWidth" type="string"
value="542px"></xsfroperty>
<xsfroperty name="componentId" type="string"
value="58"></xsfroperty>
<xsfroperty name="xmlToEditName" type="string"
value="6"></xsfroperty>
<xsfroperty name="warning" type="string"
value="no"></xsfroperty>
<xsfroperty name="mode" type="string" value="1"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="upgrade.xsl"></xsf:file>
<xsf:file name="script.js">
<xsf:fileProperties>
<xsfroperty name="scriptType" type="string"
value="userEvents"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
</xsf:files>
</xsfackage>
<xsf:importParameters enabled="yes"></xsf:importParameters>
<xsf:documentVersionUpgrade>
<xsf:useTransform transform="upgrade.xsl"
minVersionToUpgrade="0.0.0.0"
maxVersionToUpgrade="1.0.0.3"></xsf:useTransform>
</xsf:documentVersionUpgrade>
<xsf:views default="View 1">
<xsf:view name="View 1" caption="View 1">
<xsf:editing>
<xsf:xmlToEdit name="dateOrdered_1"
item="/my:myFields/my:dateOrdered">
<xsf:editWith proofing="no" autoComplete="no"
component="xField"></xsf:editWith>
</xsf:xmlToEdit>
<xsf:xmlToEdit name="dateRequired_2"
item="/my:myFields/my:dateRequired">
<xsf:editWith proofing="no" autoComplete="no"
component="xField"></xsf:editWith>
</xsf:xmlToEdit>
<xsf:xmlToEdit name="group6_6"
item="/my:myFields/my:group5/my:group6" container="/my:myFields">
<xsf:editWith caption="group6" xd:autogeneration="template"
component="xCollection">
<xsf:fragmentToInsert>
<xsf:chooseFragment innerFragment="my:group5/my:group6">
<my:group5>
<my:group6>
<my:field24></my:field24>
</my:group6>
</my:group5>
</xsf:chooseFragment>
</xsf:fragmentToInsert>
</xsf:editWith>
</xsf:xmlToEdit>
</xsf:editing>
<xsf:mainpane transform="view1.xsl"></xsf:mainpane>
<xsf:menuArea name="msoInsertMenu">
<xsf:menu caption="&Section">
<xsf:button action="xCollection::insert" xmlToEdit="group6_6"
caption="group6"></xsf:button>
</xsf:menu>
</xsf:menuArea>
<xsf:menuArea name="msoStructuralEditingContextMenu">
<xsf:button action="xCollection::insertBefore" xmlToEdit="group6_6"
caption="Insert group6 above" showIf="immediate"></xsf:button>
<xsf:button action="xCollection::insertAfter" xmlToEdit="group6_6"
caption="Insert group6 below" showIf="immediate"></xsf:button>
<xsf:button action="xCollection::remove" xmlToEdit="group6_6"
caption="Remove group6" showIf="immediate"></xsf:button>
<xsf:button action="xCollection::insert" xmlToEdit="group6_6"
caption="Insert group6" showIf="immediate"></xsf:button>
</xsf:menuArea>
<xsf:unboundControls>
<xsf:button name="btnSubmit"></xsf:button>
</xsf:unboundControls>
</xsf:view>
</xsf:views>
<xsf:applicationParameters application="InfoPath Design Mode">
<xsf:solutionProperties lastOpenView="view1.xsl"
fullyEditableNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15"
lastVersionNeedingTransform="1.0.0.3"
scriptLanguage="jscript"></xsf:solutionProperties>
</xsf:applicationParameters>
<xsf:documentSchemas>
<xsf:documentSchema rootSchema="yes"
location="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15
myschema.xsd"></xsf:documentSchema>
</xsf:documentSchemas>
<xsf:fileNew>
<xsf:initialXmlDocument caption="InfoPath Forms"
href="template.xml"></xsf:initialXmlDocument>
</xsf:fileNew>
<xsf:scripts language="jscript">
<xsf:script src="script.js"></xsf:script>
</xsf:scripts>
</xsf:xDocumentClass>
I'm afraid that being a relative newbie to InfoPath i have stumbled at
an early hurdle.
I attempting to 'Fully Trust' an existing InfoPath template file, i am
unsure how to actually register the following two attributes in the
manifest.xsf file :
requireFullTrust="yes"
name="urn:MyForm:MyCompany"
The xml in my manifest.xsf file is rather long, and i am not sure
where/how to add the "attributes"?
I am not entirely clear either if i have to replace the "MyForm" and
"MyCompany" text with anything else either?
Any pointers would be much appreciated,
Simon
ps. Below is the code in my .xsf file :
<xsf:xDocumentClass solutionVersion="1.0.0.9"
productVersion="11.0.6357" solutionFormatVersion="1.100.0.0"
trustSetting="automatic" publishUrl="C:\InfoPath Forms\manifest.xsf"
name="urn:schemas-microsoft-comffice:infopath:InfoPath-Forms:-myXSD-2005-01-22T04-52-15"
xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xdUtil="http://schemas.microsoft.com/office/infopath/2003/xslt/Util"
xmlns:xdXDocument="http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument"
xmlns:xdMath="http://schemas.microsoft.com/office/infopath/2003/xslt/Math"
xmlns:xdDate="http://schemas.microsoft.com/office/infopath/2003/xslt/Date">
<xsfackage>
<xsf:files>
<xsf:file name="myschema.xsd">
<xsf:fileProperties>
<xsfroperty name="namespace" type="string"
value="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15"></xsfroperty>
<xsfroperty name="editability" type="string"
value="full"></xsfroperty>
<xsfroperty name="rootElement" type="string"
value="myFields"></xsfroperty>
<xsfroperty name="useOnDemandAlgorithm" type="string"
value="yes"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="template.xml"></xsf:file>
<xsf:file name="sampledata.xml">
<xsf:fileProperties>
<xsfroperty name="fileType" type="string"
value="sampleData"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="view1.xsl">
<xsf:fileProperties>
<xsfroperty name="lang" type="string"
value="3081"></xsfroperty>
<xsfroperty name="viewWidth" type="string"
value="542px"></xsfroperty>
<xsfroperty name="componentId" type="string"
value="58"></xsfroperty>
<xsfroperty name="xmlToEditName" type="string"
value="6"></xsfroperty>
<xsfroperty name="warning" type="string"
value="no"></xsfroperty>
<xsfroperty name="mode" type="string" value="1"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="upgrade.xsl"></xsf:file>
<xsf:file name="script.js">
<xsf:fileProperties>
<xsfroperty name="scriptType" type="string"
value="userEvents"></xsfroperty>
</xsf:fileProperties>
</xsf:file>
</xsf:files>
</xsfackage>
<xsf:importParameters enabled="yes"></xsf:importParameters>
<xsf:documentVersionUpgrade>
<xsf:useTransform transform="upgrade.xsl"
minVersionToUpgrade="0.0.0.0"
maxVersionToUpgrade="1.0.0.3"></xsf:useTransform>
</xsf:documentVersionUpgrade>
<xsf:views default="View 1">
<xsf:view name="View 1" caption="View 1">
<xsf:editing>
<xsf:xmlToEdit name="dateOrdered_1"
item="/my:myFields/my:dateOrdered">
<xsf:editWith proofing="no" autoComplete="no"
component="xField"></xsf:editWith>
</xsf:xmlToEdit>
<xsf:xmlToEdit name="dateRequired_2"
item="/my:myFields/my:dateRequired">
<xsf:editWith proofing="no" autoComplete="no"
component="xField"></xsf:editWith>
</xsf:xmlToEdit>
<xsf:xmlToEdit name="group6_6"
item="/my:myFields/my:group5/my:group6" container="/my:myFields">
<xsf:editWith caption="group6" xd:autogeneration="template"
component="xCollection">
<xsf:fragmentToInsert>
<xsf:chooseFragment innerFragment="my:group5/my:group6">
<my:group5>
<my:group6>
<my:field24></my:field24>
</my:group6>
</my:group5>
</xsf:chooseFragment>
</xsf:fragmentToInsert>
</xsf:editWith>
</xsf:xmlToEdit>
</xsf:editing>
<xsf:mainpane transform="view1.xsl"></xsf:mainpane>
<xsf:menuArea name="msoInsertMenu">
<xsf:menu caption="&Section">
<xsf:button action="xCollection::insert" xmlToEdit="group6_6"
caption="group6"></xsf:button>
</xsf:menu>
</xsf:menuArea>
<xsf:menuArea name="msoStructuralEditingContextMenu">
<xsf:button action="xCollection::insertBefore" xmlToEdit="group6_6"
caption="Insert group6 above" showIf="immediate"></xsf:button>
<xsf:button action="xCollection::insertAfter" xmlToEdit="group6_6"
caption="Insert group6 below" showIf="immediate"></xsf:button>
<xsf:button action="xCollection::remove" xmlToEdit="group6_6"
caption="Remove group6" showIf="immediate"></xsf:button>
<xsf:button action="xCollection::insert" xmlToEdit="group6_6"
caption="Insert group6" showIf="immediate"></xsf:button>
</xsf:menuArea>
<xsf:unboundControls>
<xsf:button name="btnSubmit"></xsf:button>
</xsf:unboundControls>
</xsf:view>
</xsf:views>
<xsf:applicationParameters application="InfoPath Design Mode">
<xsf:solutionProperties lastOpenView="view1.xsl"
fullyEditableNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15"
lastVersionNeedingTransform="1.0.0.3"
scriptLanguage="jscript"></xsf:solutionProperties>
</xsf:applicationParameters>
<xsf:documentSchemas>
<xsf:documentSchema rootSchema="yes"
location="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-01-22T04:52:15
myschema.xsd"></xsf:documentSchema>
</xsf:documentSchemas>
<xsf:fileNew>
<xsf:initialXmlDocument caption="InfoPath Forms"
href="template.xml"></xsf:initialXmlDocument>
</xsf:fileNew>
<xsf:scripts language="jscript">
<xsf:script src="script.js"></xsf:script>
</xsf:scripts>
</xsf:xDocumentClass>