Select fields from all datasets (study) with a custom query | trent | 2014-08-10 20:47 | |||||||||||||||||||||||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||||||||||||||||||||||
In short - can I make it so that the customize view interface will display other datasets to add/remove columns using the customize view interface, against a custom query? I have a dataset named "Clinical Results". So that I can specify what field is returned on a QueryWebPart using DataRegion.getChecked(), I have the following (simplified): trenttest.sql: select ParticipantSequenceNum, GGT from "Clinical Results" trenttest.query.xml: <query xmlns="http://labkey.org/data/xml/query"> <metadata> <ns:tables xmlns:ns="http://labkey.org/data/xml"> <ns:table tableName="trenttest" tableDbType="NOT_IN_DB"> <ns:columns> <ns:column columnName="ParticipantSequenceNum"> <ns:isKeyField>true</ns:isKeyField> <ns:isHidden>true</ns:isHidden> </ns:column> </ns:columns> </ns:table> </ns:tables> </metadata> </query> This works well in that in my data region, I get the participantsequencenum field returned with the following: clinicalResultsPart.getDataRegion().getChecked(); However, the limitation is I can't fetch data from other datasets using the UI (using the customize view interface). If a specify the source table as "Clinical Results", there is a DataSets node that I can specify fields from my other data sets (that im hoping to have available on with the above query) Questions. 1. Is my method overkill, and could I achieve the same with a custom qview.xml file? I did try, without success. 2. If no to 1, is there anything special I need to do to make the DataSets node available in order to be able to select fields from my other datasets? I thought that maybe joining to the DataSets table may help, but don't think that works either. Any suggestions appreciated. |
|||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||