Programmatically take values from several drop down menus and addthem together

M

MattDavid

I have a form that has seven questions. Each question is a drop down.
What I would like to do is take the values from each form, add them
together and post the the data to a text field. I would like to use VB
or C# to do this as the client has already said that they may want to
additional fields later that will require some additional logic. I am
running into problems in finding docs that explain the basic ability
to grab XPATH value and control them mathematically.

Any ideas?

Matt
 
F

Frederik Van Lierde

Hi

Please have a look at my blogpost
http://blueinfopath.wordpress.com/2...able-with-selections-in-2-multiple-selection/
I explain how to get values of different lists and put them together

OR
You can use (de)-seriliaze method of .net framework to read the XML
file generated by the InfoPath Template, take out the datafield (no
XPATH needed) and place it wherever you want

OR

If you want to find out the XPATH of your dropdown in InfoPath
1. Go to the datasource in your InfoPath Template
2. Right-Click your Field
3. Select Copy XPath



Frederik Van Lierde
http://BlueInfoPath.wordpress.com ¦ http://www.SilverSandsAssociates.com
¦ Do you follow us already? http://twitter.com/frederik_vl
 

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