This isn't currently possible. Getlabel's first parameter is a dictionary_symbol, which can only be passed in by explicitly referencing it or by using the $.
If in the the future we allow getlabel to accept the result of getsymbol this would be possible. Something we will consider.
Allow several CSPro logic function, among other Getlabel, to accept the result of Getsymbol or other dictionary symbol alias. This will boost our ability to design more advanced and dynamic user defined functions.
@ Aaron, do you think that we can have it in the next cut?
Is this possible now? I mean, I'm trying to get the dictionary_symbol dynamically from a query but I get the error "Dictionary object expected" when I use the getlabel function. By the way, I'm using v7.7.
Unfortunately, this is still not possible. It will also not be possible in CSPro 8.0, which will come out shortly, but we eventually will support such functionality. Sorry for the inconvenience.