Bind secondary datasource to primary datasource

V

virgul

Hi,

How you do to bind the text contain in the secondary data source for that
she go to the primary (save in the template.xml)for that she can be send by
the form. I have found a example in Jscript but i have to made my infopath
form in C# so...

He's it possible to bind all the field of secondary ds to the primary ds?

Please it's very important

I hope you understand! Please I need of this help

Thanks

Thierry
++
 
V

virgul

Hi Greg thanks for your answer

ok no probleme but how to do that? I don't understand can you give me a
example or a link or a syntax.

thanks

++

Thierry Coita
 
V

virgul

I wan't to explain a little bit more of my probleme:

My infopath form is generated everytime with a different xml (the same but
different content).

Every time it's a number and a title + a section(or field) like this:

1. Decision
Rich text box

1.1 date of création
date selector

1.2 Name
Textbox

2. Dirigeant
reapeating table with 4 rows

.....

I have also one numeric field who represents the element (for example 1.
decision numeric id is 126453)it's stored in the xml too.

I have to bind the content (textbox, table, date,...) and the numeric field
to the primary source. how he can do that?

Now I have a reapeating section with all the element that i can found in my
xml. I use conditionnal formating for hide the element that I don't need but
how to bind this data to the primary database.

If I use the primary database (convert my primary database with my schema of
the xml) and in the xpath field I link to the element of the secondary data
source I have only one reapeating section with the first element of my xml.

I hope you understand I need help because I don't understand

Thanks for your answer



virgul said:
Hi Greg thanks for your answer

ok no probleme but how to do that? I don't understand can you give me a
example or a link or a syntax.

thanks

++

Thierry Coita

Greg Collins said:
Why not just use rules? When the field in the secondary data source changes, the rule sets the same value on a field in the main data source.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Hi,

How you do to bind the text contain in the secondary data source for that
she go to the primary (save in the template.xml)for that she can be send by
the form. I have found a example in Jscript but i have to made my infopath
form in C# so...

He's it possible to bind all the field of secondary ds to the primary ds?

Please it's very important

I hope you understand! Please I need of this help

Thanks

Thierry
++
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top