Hi,
I have a very complexe situation that I cannot solve.
here is an example of my structure:
<AVel F14="0" fldID="123">
<Title>SHAB-Zitat</Title>
<Texte>
<Text>(SHAB Nr. 63 vom 31.03.1999, S. 2111)</Text>
<choixM/>
</Texte>
<Texte>
<Text>Verein</Text>
<choixM/>
</Texte>
</AVel>
My Texte is a repeating section and I want to disable the delete possibility if there is only one element of Texte(but the user need to be able to insert another occurence). But if there are multiple Texte I want to be able to delete the other, but one Texte element must stay in the form!
In the OnbeforeChange Event if I use e.Source or e.Site, I can't select AVel for see if there is one or multiple Texte. Infopath send a null value!
AVel is multiple too so I cant use thisXDocument because I dont know on which I am. The only way to know is to take the fldID on AVel but If I cant select AVel I can't select fldID too.
How I can made? There is a way with conditionnal formating it's possible but that disable the insert too. and I dont want this!
Thanks
++
Thierry
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci