Writing data to a repeating table row

P

Paul Aner

Hi,

within a row of a repeating table I want to write
a number to a cell by using the following code:

eventObj.Site.parentNode.childNodes.item(5).nodeTypedValue = 123;

The cell is of type decimal (double).

But the above mentioned code runs into an error like
'#PCDATA' is Null-content (translated from a german version of IP)

Writing data to a cell of type string doesn't make any problem.


Is anyone having an idea what to do?



Bye,

Paul
 
F

Franck Dauché

Hi Paul,

You need to remove the xsi:nil on the field.
Call your node: oNode.
then, because youare using JScript, before trying to set yor node value by
code, try:
if(null != ((IXMLDOMElement)oNode).getAttribute("xsi:nil"))
((IXMLDOMElement)oNode).removeAttribute("xsi:nil");

Hope that it helps.

Regards,

Franck Dauché
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top