Foreign key to assay.AssayList | Will Holtz | 2014-08-25 10:59 | |||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||
I am creating a module with a table that I would like to contain a foreign key to assay.AssayList. I can manually create a list within Labkey that contains such a foreign key, but haven't been able to figure out how to create such a table from within my module. Assay.AssayList appears to be a query and not an actual table in the database, and this seems to be at the crux of my issue. I have tried creating the table in my sql with: CONSTRAINT FK_MyTable_AssayList FOREIGN KEY (Assay) REFERENCES exp.protocol(RowId) This gets me the foreign key in the database, but when I go to the schema browser in Labkey, the 'lookup' column is not populated for the Assay field. When I have made other foreign keys between the tables that I have defined in my module, adding the foreign key constraint to the sql file has been enough to populate the lookup. I have tried adding the foreign key definition to the table meta-data via the xml schema, without any success. When including the foreign key in the xml schema, I have tried all of the follow schema/table name pairings: assay/AssayList, exp/Protocol and exp/Protocols. Thanks in advance for your help! |
|||||||||||||||||||||||
| |||||||||||||||||||||||