pacx view replicate - neronotte/Greg.Xrm.Command GitHub Wiki
Replicates the structure (layout and sort order) of a given view.
Usage
The current command replicates the behavior of the famous ViewLayoutReplicator tool from XrmToolbox (kudos to Tanguy Touzard).
You can simply type:
pacx view replicate -n "My View" -t greg_table
This will replicate the view named My View from the table greg_table to all other saved queries belonging to the same table, except for the lookup views.
This default behavior is driven by the fact that changing the structure of the lookup views may generate unexpected behaviors on the lookup control.
If you want to override this default behavior you can type:
pacx view replicate -n "My View" -t greg_table -o *
This will replicate the view named My View from the table greg_table to all other saved queries, including lookup views.
Seamlessly, if you want to replicate the view only onto a specific view or set of views, you can type:
pacx view replicate -n "My View" -t greg_table -o "View 1,View 2,View 3"
Separating the view names via comma (,).
Arguments
| Long Name | Short Name | Required? | Description | Default value | Valid values |
|---|---|---|---|---|---|
name |
n |
Y | The name of the view to replicate | - | String |
table |
t |
N | The name of the table that contains the view. Required only if the view name is not unique in the system. | - | String |
onto |
o |
N | The name of the views that should be updated with the new layout, separated by comma (,). If not specified, all saved queries except for lookup views will be updated. If * is provided as value, all views will be updated (lookup views included). | - | String |