Hi,
I´m really interested in this thread and I´m following the suggestions which are made by now --- but unfortunately I have no luck to solve my problem and I hope that someone can help me...
I want to programmatically insert new rows in a repeated table. One of the column fields is "Date" type --- but not in every case I want to insert a valid date.
But the problem is that if I programmatically add new rows in the repeating table all of the date fields don´t pass the built-in validation.
My code (part of it) looks like:
Private Sub AddNewRow(ByRef fragment As IXMLDOMDocumentFragment, ByVal strPosKtoNr As String, ByVal strPosSoll As String, ByVal strPosHaben As String, ByVal strPosValuta As String, ByVal strPosGAB As String, ByVal strPosKtoBez As String, ByVal strPosAWG3 As String, ByVal strPosAWG7 As String, ByVal strPosAWG8 As String)
Dim belegPos As IXMLDOMNode = fragment.appendChild(thisXDocument.createNode(DOMNodeType.NODE_ELEMENT, "my:absBuchungsPositionenGrp", XmlNamespace))
.......
Dim txtBelegPosValuta As IXMLDOMNode = belegPos.appendChild(thisXDocument.createNode(DOMNodeType.NODE_ELEMENT, "my:datBelegPosValuta", XmlNamespace))
txtBelegPosValuta.attributes.removeNamedItem("xsi:nil") ''' No success !!!
txtBelegPosValuta.text = String.Empty
.....
End Sub
Can anyone help me to get rid of the "date validation" for the field "datBelegPosValuta"
I use managed code (VB.Net) and Infopath 2003.
Thank you very much for any help.
Regards, Karsten