Hi,
What I want to do now is a dropdown list box select all the kurz tag(see XML under) when the user select a models infopath populate the RTF (rich text field)with text tag and under I have a reapeating section who make the number of row base on the model needs. For example:
user has select : eat
the model is: the ^ eat ^. ^ is what user can enter
so 2 row is create with one textbox in each.
User enter his text in the 2 textbox and after I have to put my 2 text in my model!
So I have think for do that insert in the RTF:
I have seen on infopath (in a different form: it's a general remarks) when you modify the xml generate by infopath (you open this xml with XMLSpy for example) and in the rich text box you can put some tag no XHTML and when you launch your xml modified with the template, infopath make no error and if you modify this RTF infopath don't remove the tag that you have created (with XMLSpy)!
for example BB is not a XHTML markup but infopath don't make an error:
<my:group4>
my:field9>Zur Eintragung in <BB xmlns="http://www.w3.org/1999/xhtml">dafdshregister</BB>
wird Folgendes angthierry <font style="BACKGROUND-COLOR: #ffff00"
xmlns="http://www.w3.org/1999/xhtml">This text has a yellow highlight.</font></my:field9>
</my:group4>
So I'm asking if I can in my model add some markup and so the text can be insert very easily!
I hope you understand!
--------------------------------------------------------------------
I have make some test but it appear that:
My first try was with only XHTML markup for see what it happens!
When I bind the secondary datasource (who contains the models with formating like a highlights)to RTF (rich text field) in my reapeating section the tag is lost and no formating in my xml:
my source XML:
<tabMuster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Amt="0">
<Muster lang="1" fldID="235">
<Kurz>Eintrag</kurz>
<Text>Zur Eintragung <font color="#ff0000">in das </font> Handelsregister <strong
xmlns="http://www.w3.org/1999/xhtml">wird</strong> Folgendes angthierry <div xmlns
="http://www.w3.org/1999/xhtml"><font style="BACKGROUND-COLOR: #ffff00">This text has
a yellow highlight.</font></div></Text>
</Muster>
...
...
</tabMuster>
The text appear but no formating. I have read this but that don't help me:
http://www.infopathdev.com/howto/tips/default.aspx?i=1edbf4486498484b8b828fd605262a4f xml generate by infopath:
...<my:group3>
<my:group4>
<my:field9>Zur Eintragung in das Handelsregister
wird Folgendes angthierry This text has a yellow highlight.</my:field9>
</my:group4>
</my:group3>...
Why? what I have to do for that infopath can keep my RTF formatting?
I think it's the same kind of probleme for this topic but i'm not sure(If it's the case I have answer to it but my answer was not correct like I see now):
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=733Thanks for your help support feedbacks or what you want I'm totaly lost!
++
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