通过清空文件(零字节)来隐藏文件
如果您没有从配置文件中删除文件的权限,或者您不希望永久删除文件,则可以使用空(零字节)文件隐藏文件。
In the Profile Manager, a hyphen (-), instead of a check mark, in a column identifies a zero-byte file.

Unlike the other methods of hiding files (such as order.txt, the Show parameter, and the Hidden parameter), Data Workbench treats zero-byted files as non-existent. 例如,如果将可视化或度量定义中使用的维设置为零字节,则Data Workbench会分别为该可视化或度量生成错误。
此功能在许多情况下都非常有用,包括在您希望执行以下操作时:
- 在Data Workbench中使文件不可用 ,无需删除文件所需的配置文件权限。
- 将量度、维度或过滤器移动至其他位置,而不需要从原始位置中删除文件所必需的配置文件权限。
- 隐藏菜单项。 例如,配置 Base 文件在文 Metric Legend 件中有定义 Metric.vw 。 假定您的公司已创建三个需要在“添加图例”>“量度”子菜单中显示的量度图例。You can zero-byte the Base profile Metric.vw file so that only your new submenu and three new metric legends appear.
隐藏文件
- In the Profile Manager, open the necessary folders and subfolders to locate the file that you want to zero-byte.
- Right-click the check mark next to the name of the file and click Make Local.
- 打开本地文件并删除其内容。
- 保存并关闭该文件。