We wish to use the new Autodesk Vault Data Standard 2014 at our company that I saw at AU2013.
I have started customizing the application and have run across a small roadblock.
I want to create a combo box and am having problems figuring out how to create the "listvalues" for the combo box. In the example on the wiki help of cascading combo boxes we are directed to create a .xml file with the data source. This makes sense to me except I don't know how to create an .xml file!
I can create a document in word and save it as Word xml document, but this doesn't seem to work.
What tool do I use to create a .xml file? Are there specific headers requried within the file?
TomD
You can use notepad or anything that will edit XML files.
For the format, you can find more information here:
http://help.autodesk.com/view/VAULT/2014/ENU/?guid=GUID-5030830E-69F8-4A57-ABE4-D1D430C58F95
-Hywell
Thank you for your response Hywell, but this does not help me.
I have figured out how to create, not edit, a XML file.
However I am still looking for an answer on how to populate the list values in the combo box as described in the wiki help as follows:
<ComboBox Name="MaterialCombo" Text="{Binding Prop[Cost].Value}" Grid.Column="3" Grid.Row="6" ItemsSource="{Binding Prop[Cost].ListValues}"/>
as found at http://help.autodesk.com/view/VAULT/2014/ENU/?guid=GUID-6954F8D0-71B1-4B1E-A0CB-9CAEA406AA1B
Everything I have tried so far has not worked.
TomD
I still have not been able to get a combo box to work.
In an effort to understand and test I have attempted to replicate the example in the wiki help and have had success with adding items such as Company to the dialog box. However, when I get to the combo box it fails everytime.
Either there is an error in the example or I have done something wrong. I am attaching the .cfg, .xaml and .xml files that I have created and I would appreciate knowing why this doesn't work.
TomD
Hello Tom!!
I attach the corrected files. Here are the changes that I made:
- First, I have corrected the xml file, comparing it with a previous one that I had . Have a look at it.
- Next, you needed to "call" the xml source (it is done at the beginning of the xaml file), under <prop:DSWindow.Resources>:
<XmlDataProvider x:Key="myData" Source="...\combobox\data.xml"/>. Write your path here.
- I also changed the line line correspondig to the ComboBox.
I had to delete all the IsReadOnly = True, because it gave me some kind of failure, just add them one more time. Now it is working (at least on my computer). Hope this helps. If it does, mark the answer as solution, and give a kudo!!
Kind Regards,
CARLOS CARO
Thank you Carlos,
I appreciate your help. The day before you posted this I also received help from Ed Rose, our reseller. He was able to also get it to work and I was able to get the configuration modifed to do what I wanted.
Attached are the files we are using. We have configured the data standard to have a drop down box showing 3 different folders of where a new file can be saved. I set the requiresvalue to = false so that files currently outside of these 3 folders can be edited and resaved without moving them.
I also added a material drop down box using the example from Cool Orange and I made the description property to require a value.
TomD