LABKEY.Query.GetData.getRawData is unexpectedly failing on assay domain queries. Here is the repo:
1 - enable study module on /home
2 - Create a General Assay named GeneralAssay (leave all configuration at defaults)
3 - Add a wiki web part with the following code:
<div id='result_wiki'>
<script>
Ext4.onReady(function() {
LABKEY.Query.GetData.getRawData({
source : {
type: 'query',
schemaName: 'assay.General.GeneralAssay',
queryName: 'Data',
containerFilter: LABKEY.Query.containerFilter.current
},
success: function(response) {
Ext4.fly('result_wiki').update(response.rows.length+' rows found');
},
failure: function(response) {
Ext4.fly('result_wiki').update(response.exception);
}
});
});
</script>
Expected output is '0 rows found', but I get 'Could not resolve schema assay$PGeneral$PGeneralAssay in container /home.' I tried this on v14.3 and r36010 and get the same result.
-Will |
|
Nick Kerr responded: |
2015-01-30 20:39 |
Hi Will,
I think if you use an Array for the "schemaName" it should work correctly.
schemaName: ["assay", "General", "GeneralAssay"],
But it looks like we do not handle the string case properly for '.' delimited schemaName. Thanks for bringing that to our attention.
Thanks,
Nick |
|
Will Holtz responded: |
2015-01-31 09:17 |
Hi Nick,
I was not aware of that format of schema specification. That did fix it for me.
thanks,
-Will |
|
|
|