P
p.duxbury
Hi,
Can someone please help. i am trying to do something really simple, but
it just does not work.
I am trying to use the initializeNodeValue method to initialize the
value of one of my form controls. Here is a snippit of the schema for
the form:
-------------------------------------------------------------------------------------------
<xsd:schema
targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-07T16:40:50"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-07T16:40:50"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="myFields">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:OrderedBy" minOccurs="0"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="OrderedBy" type="xsd:string"/>
</xsd:schema>
----------------------------------------------------------------------------------------------------
How do I set the 'OrderedBy' value??? I've tried everything e.g :
initializeNodeValue("//my:myFields/my:OrderedBy", "sAccount");
What am I doing wrong? Is it something to do with the namespace decl?
Thanks,
Proteus.
Can someone please help. i am trying to do something really simple, but
it just does not work.
I am trying to use the initializeNodeValue method to initialize the
value of one of my form controls. Here is a snippit of the schema for
the form:
-------------------------------------------------------------------------------------------
<xsd:schema
targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-07T16:40:50"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-07T16:40:50"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="myFields">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:OrderedBy" minOccurs="0"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="OrderedBy" type="xsd:string"/>
</xsd:schema>
----------------------------------------------------------------------------------------------------
How do I set the 'OrderedBy' value??? I've tried everything e.g :
initializeNodeValue("//my:myFields/my:OrderedBy", "sAccount");
What am I doing wrong? Is it something to do with the namespace decl?
Thanks,
Proteus.