How do I get view2 to show in drop down the same info as view1

D

Debs

Hi,
I have two views. View One has a repeating table with a drop down box. In
the second view, I have a repeating section. I would like to display in the
second view, in the repeating section, a new repeating table that will
display the same information in the drop down box as view one.

Please be specific because I do not have coding background. Thank you!
 
G

Greg Collins [InfoPath MVP]

You shouldn't need code to do what you want to do.

Right-click the drop-down list box in View 1's repeating table, and see what is being used to fill in the options. Are they a hard-coded list of values, or are the values coming from a data source? Use those same parameters in your drop-down list box in view 2.
 
D

Debs

Greg Collins said:
You shouldn't need code to do what you want to do.

Right-click the drop-down list box in View 1's repeating table, and see what is being used to fill in the options. Are they a hard-coded list of values, or are the values coming from a data source? Use those same parameters in your drop-down list box in view 2.

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

Sorry, I do not understand what you mean. Can you give me an example? Thanks
 
B

Ben Walters

Hey Deb,
If you double click the Drop Down list the properties dialog should open,
From here you can choose where the values for the drop down will be
populated from e.g. these values can be hard coded, retrieved from a data
connection or from somewhere else in the forms xml structure.
Simply put all you have to do is point your drop down list the repeating
field in your xml structure.

So if you have the following xml structure

<Root>
<DropDownField></DropDownField>
<DropDownOptions>
<Option>Yes</Option>
<Option>No</Option>
<Option>Unknown</Option>
</DropDownOptions>
</Root>

The steps you would take are
1: Double click on your Drop down list (Drop-Down List Box Properties are
displayed)
2: In the bottom half of this dialog you'll see a "List box entries" title
below this there are 3 option buttons (enter list box entries manually,
Lookup values from forms data source and lookup values from an external data
source. Select the second option ("Look up values in the form's data
source")
3:You should have noticed that the last part of the properties dialog has
updated, Click on the button next to the entries field ("Select a field or
group dialog is displayed" you should also notice that your xml structure is
displayed in this dialog)
4: Navigate to the the xml field that represents your repeating table in
your second view. Repeating fields can be identified by a little blue icon.
Based on the Xml structure above you would select the Option field.
5: Click ok to select the field (you have now mapped the drop down list to
the repeating section)
6: Click ok to apply the changes and close the Drop down list properties
dialog.

Hope this helps

Cheers
Ben

Debs said:
Greg Collins said:
You shouldn't need code to do what you want to do.

Right-click the drop-down list box in View 1's repeating table, and see
what is being used to fill in the options. Are they a hard-coded list of
values, or are the values coming from a data source? Use those same
parameters in your drop-down list box in view 2.

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

Sorry, I do not understand what you mean. Can you give me an example? Thanks
 

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