Learn to configure the <global_label_value_list>
element for Pull Reports™ Ad Hoc
report and data service software.
A <global_label_value_list>
configures a <catalog>
global list of labels and corresponding values which represent the possible
values of a <column>
.
<global_label_value_list>
s are used by the Pull Reports™ Report Creator to display the
available values for a filter
parameter in the Export Report REST API.
Use <global_label_value_list>
to reuse a list of label/values between
two or more <column>
s in the same <catalog>
.
<?xml version="1.0" encoding="UTF-8"?> <catalog xmlns="http://www.pullreports.com/catalog-1.7.0" id="my-catalog" name="My Example Catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pullreports.com/catalog-1.7.0 https://www.pullreports.com/docs/xsd/pullreports-catalog-1.7.0.xsd"> <report id="my-report1" name="My Example Report 1"> <table id="table1" name="schema1.table1" displayName="Table 1"> <column id="columnA" name="column_a" displayName="Column A"> <global_label_value_list_ref ref='global_lvs'/> </column> </table> </report> <report id="my-report2" name="My Example Report 2"> <table id="table2" name="schema1.table2" displayName="Table 2"> <column id="columnB" name="column_b" displayName="Column B"> <global_label_value_list_ref ref='global_lvs'/> </column> </table> </report> <global_label_value_list id='global_lvs'> <label_values> <label_value value='10'>Some Label</label_value> <label_value value='20'>Some Other Label</label_value> </label_values> </global_label_value_list> </catalog>
( <label_value_query> | <label_values> ) |
<catalog> |
The unique id of the list within the parent <catalog>
.
Referenced by <global_label_value_list_ref>
's
ref
attribute.