file-based query view: change name of field??

LabKey Support Forum (Inactive)
file-based query view: change name of field?? Ben Bimber  2010-05-03 13:03
Status: Closed
 
When creating a view through the GUI, you can add fields and assign custom display names to them. When writing a file-based query view, can I do the same thing in XML? Here's an example in which I use a lookup and I'd like the column title to be 'Age', instead of the default name of 'Id age AgeInYears'.

    <columns>
        <column name="Id/age/AgeInYears"/>
    </columns>

Thanks for the help.
 
 
daves responded:  2010-05-04 09:59
Yes this is possible, though I don't think it's documented very well (it's in queryCustomView.xsd). Each column may have a set of properties associated with it, but the only one that is used currently is called "columnTitle". The XML would look like this:

<column name="Id/age/AgeInYears">
   <properties>
      <property name="columnTitle" value="Age"/>
   </properties>
</column>