Hi,
A very strange things is happen to my form.
I have one view with one secondary datasource.
I have a dropdown listbox that is link to my secondary datafield
value : ID
Display: Text
If I select a text on my listebox I have a one afterchangeevent:
if (e.IsUndoRedo)
{return;}
if (e.Source.nodeType != DOMNodeType.NODE_TEXT)
{return;}
if(e.Site != e.Parent)
{return;}
if ("Insert"!= e.Operation)
{return;}
IXMLDOMNode Old = thisXDocument.DOM.selectSingleNode("/Essai/Muster");
string essai = thisXDocument.DOM.selectSingleNode("/Essai/Choice").text;
string condition = "/Essai/Muster[@id='"+ essai + "']";
IXMLDOMDocument2 oDomSearchHRG = (IXMLDOMDocument2)thisXDocument.GetDOM("muster");
IXMLDOMNode New = oDomSearchHRG.selectSingleNode(condition);
Old.parentNode.replaceChild(New, Old);
and in the return I have the id displayed in the listebox and not text! If I select another item in my listebox the previous is nomore here! If I select all the item of the listebox one by one in the end I have nothing in my listebox!
I can send you the form if you don't understand or you wan't to see! send me a mail!
I think the problem is when I do the replace node! but why he erase New from the secondary datasource?
Any idea?
Thanks a lot for your comments!
++
Thierry
Every moment hesitated is a moment gone for life!!! Think about it
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci