User editable comment.
The person who created the ExpObject.
The person who created the ExpObject.
The DataClass the data belongs to.
The local file url of the uploaded file.
TODO: Describe dataType. Possibly no longer supported.
The id of the ExpObject
The LSID of the ExpObject
When the ExpObject was last modified.
The person who last modified the ExpObject.
The name of the ExpObject
Path relative to pipeline root.
Map of property descriptor names to values. Most types, such as strings and numbers, are just stored as simple properties. Properties of type FileLink will be returned by the server in the same format as Data objects (missing many properties such as id and createdBy if they exist on disk but have no row with metadata in the database). FileLink values are accepted from the client in the same way, or a simple value of the following three types: the data's RowId, the data's LSID, or the full path on the server's file system.
The role designation for this data.
The id of the ExpObject (alias of id property)
Retrieves the contents of the data object from the server.
An example of the results for a request for 'jsonTsv' format:
{
"filename": "SimpleExcelFile.xls",
"sheets": [
{
"name": "Sheet1",
"data": [
"StringColumn",
"DateColumn"
],[
"Hello",
"16 May 2009 17:00:00"
],[
"world",
"12/21/2008 08:45AM"
]
},{
"name": "Sheet2",
"data": [
["NumberColumn"],
[55.44],
[100.34],
[-1]
]
},{
"name": "Sheet3",
"data": []
}
]
}
An example of the same file in the 'jsonTSVExtended' format:
{
"filename": "SimpleExcelFile.xls",
"sheets": [
{
"name": "Sheet1",
"data": [
{
"value": "StringColumn",
"formattedValue": "StringColumn"
},{
"value": "DateColumn",
"formattedValue": "DateColumn"
}
],[
{
"value": "Hello",
"formattedValue": "Hello"
},{
"formatString": "MMMM d, yyyy",
"value": "16 May 2009 17:00:00",
"timeOnly": false,
"formattedValue": "May 17, 2009"
}
],[
{
"value": "world",
"formattedValue": "world"
},{
"formatString": "M/d/yy h:mm a",
"value": "21 Dec 2008 19:31:00",
"timeOnly": false,
"formattedValue": "12/21/08 7:31 PM"
}
]
},{
"name": "Sheet2",
"data": [
[{
"value": "NumberColumn",
"formattedValue": "NumberColumn"
}],[{
"formatString": "$#,##0.00",
"value": 55.44,
"formattedValue": "$55.44"
}],[{
"value": 100.34,
"formattedValue": "100.34"
}],[{
"value": -1,
"formattedValue": "-1"
}]
]
},{
"name": "Sheet3",
"data": []
}
]
}
The Exp.Data class describes the data input or output of a Run. This typically corresponds to an assay results file uploaded to the LabKey server. To create an Exp.Data object, upload a file using to the "assayFileUpload" action of the "assay" controller.
Examples
To perform a file upload over HTTP:
Or, to upload the contents of a JavaScript string as a file: