Code SamplesExample 1: This is an example with 2 column customizations that are not associated to Type/Subtype attributes or Predefined Queries. { "SearchColumnCustoAdminDefinition":[ { "viewId": "My admin column custo 1", "viewDefinition": [ { "uri": "ds6w:label", "width": "auto" }, { "uri": "ds6wg:BeadFastener.V_XXX", "width": 200 } ] }, { "viewId": "My admin column custo 2", "viewDefinition": [ { "uri": "ds6wg:LPAbstractReference.V_Scale", "width": "auto" }, { "uri": "Customer:XXX", "width": 300 }, { "uri": "ds6wg:revison", "width": "auto" } ] } ] }
Example 2: The following example shows how to
share a column customization between multiple types or Predefined Queries. As
we want to reuse the same column customization definition several times, we
first define a
We can then reference this column customization definition using its { "CustoAliasDefinitions": [ { "aliasId": "alias_custo_1", "viewDefinition": [ { "uri": "ds6w:status", "width": "auto" }, { "uri": "ds6w:responsible", "width": "auto" }, { "uri": "ds6w:release", "width": "auto" }, { "uri": "ds6w:created", "width": "auto" } ] } ], "SearchColumnCustoAdminDefinition": [ { "viewId": "###3DPart", "custoAliasToUse": "alias_custo_1" }, { "viewId": "###PLMProductDS", "custoAliasToUse": "alias_custo_1" } ] } Example 3: This example contains more column customization definitions.
{ "CustoAliasDefinitions": [ { "aliasId": "The_Default_Columns", "viewDefinition": [ { "uri": "ds6w:status", "width": "auto" }, { "uri": "ds6w:responsible", "width": "auto" }, { "uri": "ds6wg:release", "width": "auto" }, { "uri": "ds6wg:Designated User", "width": "auto", "dataType":"ds6wg:CATPart" }, { "uri": "ds6w:modified", "width": "auto" } ] }, { "aliasId": "alias_custo_1", "viewDefinition": [ { "uri": "ds6w:status", "width": "auto" }, { "uri": "ds6w:responsible", "width": "auto" }, { "uri": "ds6w:release", "width": "auto" }, { "uri": "ds6wg:Designated User", "width": "auto", "dataType":"ds6wg:CATPart" } ] }, { "aliasId": "alias_custo_2", "viewDefinition": [ { "uri": "ds6w:status", "width": "auto" }, { "uri": "ds6w:responsible", "width": "auto" }, { "uri": "ds6w:release", "width": "auto" }, { "uri": "ds6wg:Designated User", "width": "auto", "dataType":"ds6wg:CATPart" } ] } ], "SearchColumnCustoAdminDefinition": [ { "viewId": "###The_Default_Columns", "custoAliasToUse": "The_Default_Columns" }, { "viewId": "### Physical_Product", "viewDefinition": [{ "uri": "ds6w:release", "width": 40 }, { "uri": "ds6w:status", "width": "auto" }, { "uri": "ds6w:modified", "width": "auto" }, { "uri": "ds6w:created", "width": "auto" }, { "uri": "ds6w:type", "width": "auto" }, { "uri": "ds6w:responsible", "width": "auto" } ] }, { "viewId": "###3DPart", "custoAliasToUse": "alias_custo_1" }, { "viewId": "###PLMProductDS", "custoAliasToUse": "alias_custo_2" }, { "viewId": "###VPMReference", "custoAliasToUse": "alias_custo_2" }, { "viewId": "###PLMDMTDocument", "custoAliasToUse": "alias_custo_2" }, { "viewId": "###BioMockUp_Protein", "custoAliasToUse": "alias_custo_1" } ] } You may not see your custom column layout directly when opening a Favorite Search.
After the column customization, you can perform an Advanced Search and from the Type attribute, select a filter that has an associated layout. In that case, the custom layout is applied automatically. However, if you add this search as favorite and open it from your Favorite Searches, the default out-of-the-box layout displays instead of the new custom layout. To see the new custom layout, from the 6WTags panel, select your filter from the Type tag again. |