Saves values to main ds from checkboxes sourced from secondard ds

J

jb

I have a secondary datasource that lists all available products and puts them
in a repeating table

Product A X
Product B X
Product C
Product D X

The product list is sourced from an xml file. How do I take the values that
the user has checked and store them?

Is there an example of repeating checkboxes somewhere. The functionality
that I want is very similar to the checkbox functionality that SharePoint
offers out of the tbox.

This should be easy in InfoPath, right?

Thanks,

jb
 
K

Kalyan Reddy

Hello Jb,

You can write a code to get the Values selected and save them to a field in
the main data source. These values can be seperated by a
seperator(semicolon). Again for restoring, get the value before the seperator
from the field in the Main data source and check for this in the secondary
xml. If the value matches then set the value for check box as true.

Hope this helps you.
 

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