How to find queryName for lookup field (FieldMetaDataLookup)

LabKey Support Forum (Inactive)
How to find queryName for lookup field (FieldMetaDataLookup) ymei  2012-11-22 07:23
Status: Closed
 
Hello,

I am working on get some metadata for a lookup field in a dataset table.

Reference pages:
https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.Query.FieldMetaData.html
https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.Query.FieldMetaDataLookup.html

What I found:
in LABKEY.Query.FieldMetaData, the queryName field is "undefined"
in LABKEY.Query.FieldMetaDataLookup, there is only schemaName

My question is: how to get the queryName for a lookup field from the metadata?

Thanks,
Yongguo
 
 
ymei responded:  2012-11-27 15:00
I figured out this by myself.

The field queryName should not be in LABKEY.Query.FieldMetaData, but in LABKEY.Query.FieldMetaDataLookup

The two reference pages should be updated accordingly.

Thanks,
Yongguo
 
Nick Kerr responded:  2012-11-29 14:42
Hi Yongguo,

Thanks for pointing this out. I'll be updating the documentation today.

Thanks,
Nick