Hi,
I use the form like a normal user (not in design mode)in fill out mode
In my form I make a query in a webservice and after I copy all the result in the primary datasource. my code:
IXMLDOMDocument2 oDomSearchHRG = (IXMLDOMDocument2)thisXDocument.GetDOM("getAV");
oDomSearchHRG.setProperty("SelectionNamespaces", "xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\" xmlns:msxsl=\"urn:schemas-microsoft-com:xslt\" ,.. ,.. ,,..");
oDomSearchHRG.selectSingleNode("/dfs:myFields/dfs:queryFields/tns:getAV/tns:nr").text= thisXDocument.DOM.selectSingleNode("/CaseList/Case/@Nr").text;
thisXDocument.DataObjects["getAV"].Query();
IXMLDOMNode oNode = oDomSearchHRG.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:getAVResponse/tns:getAVResult/CaseList/Case");
IXMLDOMNode Original = thisXDocument.DOM.selectSingleNode("/CaseList/Case");
Original.parentNode.replaceChild(oNode,Original);
So that complete my form! No probleme here
My probleme is when I do that I can edit empty field return by the webservice !
It's an reapeating section who choice (for example: an adress, a name, or goal (all are choice section)) depends on which title! and if this field are empty you can't edit them you can select it but you can write nothing (like a read-only field)! You can only write in the rich text box and in your control(Smart Combo Box) all other are "read-only"!
Why infopath make this? Have you any idea?
I hope that you understand what I try to explain!
Thanks a lot for all your help!
++
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