Query Variables
You can use query variables in CDM to maintain unique internal references for each report.
You can also copy a report-level query variable to the object-level variables table and apply properties to it. For more information, see the CDM User Guide.
Required Permission
To manage query variables in CDM, you should have the following permission allowed:
Application Permissions > Data Management > Manage Query Variables
Add a Query Variable
If you need a query variable that does not currently exist in CDM, you can create one.
- In CDM, do either of the following to open the Query Variables tab in the work area:
- Click the File tab, then navigate to Administration > External Data > Query Variables.
- Click the Home tab, then in the Navigation Pane, click Administration and double-click Query Variables under External Data.
- Click Home > Add > Query Variable. The Add Query Variable window displays.
- Specify a name and value for the query variable.
- You can add a comment to provide information about the purpose and use of the query variable.
- If you want to allow a user to override the value that you specified, select Allows Override.
- If you do not want users who do not have the Manage Query Variables application permission to further edit the variable when they use it, select Locked.
- Click OK.
Edit a Query Variable
You can change details of a query variable.
- From the query variable list in the work area, right-click the variable you want to edit and select Edit, or double-click the query variable row.
- You can change the value and comment for the query variable.
- To change the override setting, select or clear Allows Override.
- To change the lock setting, select or clear Locked.
- Click OK.
Delete a Query Variable
If you no longer need a query variable, you can delete it.
You cannot delete a query variable if it is currently used by a data query or data source or if it is overridden.
Important: If you delete a query variable, you cannot undo your action. Proceed with caution.
To delete a query variable:
- From the query variable list in the work area, select the variable you want to delete and click Delete.
- In the confirmation window, click Yes.