Importing reports from xml files | Jon (LabKey DevOps) | 2017-03-07 01:39 |
Status: Closed | ||
Hi, Yes, you can actually import reports into your study similarly to how you were writing out data from your external system and putting them into your study zip file. If you download our ImportableDemoStudy folder zip file here: https://www.labkey.org/home/Documentation/wiki-page.view?name=setupDemoStudy And then extract the contents of the zip file, you'll see a reports folder. Within that reports folder you'll notice a few things: 1. A folder for the thumbnail image of your report as a graph if it is a graphical report. 2. The code for the report (in your case, you would have your code written in R and saved as a .R file) 3. The XML that corresponds with the R code to provide its metadata. Basically, you'd just create the same thing within your own study import zip file you've been working with and build your reports that way. It automatically knows to connect to the correct study based on the schemaName and queryName values that you would provide that would already be within the same study used. Regards, Jon |
||