Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Debs - 05 Aug 2006 06:02 GMT
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!
Greg Collins [InfoPath MVP] - 06 Aug 2006 05:12 GMT
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.

Signature

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

Debs - 07 Aug 2006 01:16 GMT
> 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.

Thanks
Ben Walters - 07 Aug 2006 02:11 GMT
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

>> You shouldn't need code to do what you want to do.
>>
[quoted text clipped - 4 lines]
>>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.