![]() |
|
|
|
#1
|
||||
|
||||
|
As far as I know you can only bind a single xml node to a content control. I've had no problem binding a node to a dropdown CC and the method is no different to binding a node to a plain text CC. The only complexity with dropdown CCs is that each entry has a display name and a value. The value is what gets stored in the XML node. Are you trying to populate the dropdown CC options with multiple nodes? As far as I'm aware, that isn't dynamic and you would need to use code to clear the dropdown list and repopulate it from the xml data. This is not mapping.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
Quote:
I need to use custom XML because the template I'm working on already uses it extensively, and all data bound to content controls must reside in custom XML; a design requirement is that data can't be in built-in doc properties or the body of the doc. At one point while trying to create a dropdown content control mapped to a custom XML node, the dropdown items were showing up in document.xml. However, I was not including both names AND values, so it sounds like I need to go back and try that approach. Finally, the dropdown item nodes would be static: it's a list of ~50 items that will never change. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Change Value of a Content Control based on the value of another content Control
|
jsc_msoffice | Word VBA | 2 | 05-21-2021 09:51 PM |
Auto populate a text field based on Content Control Dropdown List
|
matthias92701 | Word VBA | 2 | 05-02-2019 03:54 PM |
| Word VSTO Content Control binding to XML issue | phyrjc | Word | 0 | 03-25-2019 08:56 AM |
Dropdown content control and tables
|
hrzagi | Word | 1 | 12-17-2017 09:38 PM |
Content Control Dropdown Dependencies
|
asteinroeder | Word VBA | 5 | 10-28-2015 03:56 PM |