Advanced Configuration Details for the Data Standard Dialog

You can use some of the embedded scripts in the Data Standard dialog to leverage some of the features found in PowerShell. By doing so, you can further customize the Data Standard dialog so that value updates are automated

Basic Functions

Prop [ ] Function

Ps Function

EditMode and CreateMode

Binding for Scripts

By binding scripts to functions, you can invoke events on changed fields in the Data Standard dialog. This binding ability creates many possibilities for customizing your dialog.

For example, you can hide and show advanced fields for special purposes. One scenario might be if a user creates a new file. You do not have to fill in the Company field. However, if the field is filled in, the Engineer or Designer's name field can display for additional user entry. Or the dialog can simply validate the inserted field values before the user clicks OK.

Data Standard System Properties

Data Standard has three system properties. They are read-only. If you use a binding on them, the binding is for only one direction (read only).

Debugging

Use "$dsDiag.inspect()" to create a window that shows you all variables with their containing members and values at that moment in your PowerShell script enviroment. This is a useful tool for debugging.

Note: $MyViewDiag and $MyViewWindow have been renamed to $dsDiag and $dsWindow, respectively. In order to remain compatible with previous customizations, the old variable names still work. They will, however, be removed in future releases. For this reason, it is recommended that the variable names be changed in existing customizations.