I've created a form in InfoPath 2003. One of the fields is intended
to be programmatically assigned as it is the next sequential key to
the underlying database.
I finally have all of my namespaces in place to navigate the nodes and
when I execute the following code, I get an error that I can't assign
the value because the DOM is read-only.
Expand|Select|Wrap|Line Numbers
- function setNodeValue(xpath, value)
- ' // Let's do that if the value has really changed.
- if (xPATH.text <> value) then
- xPATH.text = value
- end if
- setNodeValue = xpath.text
- end function
is there an attribute I need to set before I can change the value?
Thanks