Data Standard: required fields

Data Standard: required fields

Leon.VASSE
Advocate Advocate
637 Views
2 Replies
Message 1 of 3

Data Standard: required fields

Leon.VASSE
Advocate
Advocate

Hello,

 

I am starting VDS customization and have some questions about the below unclosed post:

data-standard-vault-required-fields-is-needed-but-not-working

 

1) Required fields declaration:

I understand the mandatory-to-be-filled properties can be set:

-either in VAULT by checking “EnforcedListValues” in VAULT/Administration/Behavior/Properties (after associating property/category and mapping file/Vault  property)

-or in cfg files by declaring the properties, and if need, setting the attribute "RequiresValue" to "True"

I am not clear about the usage of files DynamicProperties.xml:

a) Either the files VaultDynamicProperties.xml and InventorDynamicProperties are both defined from the Associations and Mappings defined in Vault? If so, which of above 2 settings takes the precedence in the DataStandard GUI?

b) Or the only the file VaultDynamicProperties.xml is defined from the Associations and Mappings defined in Vault, whileas the file InventorDynamicProperties.xml i defined from the file Inventor.cfg?

 

1) Required fields style definition:

-In above mentioned post, what was Wangdu's meaning 'add the * manually'?

-Should not be the customized *  (or say the default VDS red border) defined within the files File.xaml and Inventor.xaml > Resource > Style > Required (below snippet)?

<Window.Resources>
<Style x:Key="Required" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
</Style>
</Window.Resources>

a) If no, where should be defined the trigger style for required fields and what is the purpose of the Required style? (I tried to modify the Required style in both files File.xaml and Inventor.xaml, for example the BorderThickness, it seems to have no effect on the GUI)

b) If yes, the above snippet shows the Required style is targeted to TextBox controls, however is it applied to any type of controls, such as Combobox controls?

 

Thank for your lights,

Best regards.

 

0 Likes
638 Views
2 Replies
Replies (2)
Message 2 of 3

wangdu
Collaborator
Collaborator

Hi,

1) VaultDynamicProperties.xml is created when a file is created first time in the VDS Vault and it is found in the folder Vault. Whereas InventorDynamicProperties.xml is also created when a files is saved first time in the VDS Inventor and it is found in the folder CAD. These files can only be used for ordering and hiding of the dynamic grid that you see on the right side of the dialog and nothing else.

2) Styles are defined in the Resources section and can be reused. Styles like the "Required" style can also be defined for other controls like combobox. The idea is define it for TargetType 'Control' .  Check this SO question here.

In the post, user wanted to add a '*' and therefore, it was suggested to add it manually. However, red border also serves the same purpose and it aligns better with the DynamicPropertiesGrid on the right side of the dialog. This is definitely user's own preferences.

Hope this helps!

Wangdu

 

coolOrange

www.coolOrange.com

0 Likes
Message 3 of 3

Leon.VASSE
Advocate
Advocate

Thank you Wangdu,

 

I am still not 100% clear, would you precise the below points?

-to my first question:

     -is my understanding correct about the properties requirement declaration (in Vault Administration and in CFG file)?

     -is my understanding correct about the respective source of each DynamicProperties.xml (Vault and CAD): logic is a or b?

-to my second question (also numbered 1, sorry): your SO link perfectly clarifies. Now, where is defined the style red borders applied to the required fields of Vault/CAD DynamicProperties grids?

 

Best regards.

 

0 Likes