View source: R/labkey.domain.R
| labkey.domain.save | R Documentation |
Modify an existing domain with the specified domain design.
labkey.domain.save(baseUrl=NULL, folderPath, schemaName, queryName, domainDesign)
baseUrl |
a string specifying the |
folderPath |
a string specifying the |
schemaName |
a string specifying the name of the schema of the domain |
queryName |
a string specifying the query name |
domainDesign |
a list data structure with the domain design to update to |
A list containing elements describing the domain after the update. The structure is the same as a domain design created by labkey.createDomainDesign
Karl Lum
labkey.domain.get,
labkey.domain.inferFields,
labkey.domain.createDesign,
labkey.domain.createIndices,
labkey.domain.create,
labkey.domain.drop,
labkey.domain.createConditionalFormat,
labkey.domain.createConditionalFormatQueryFilter,
labkey.domain.FILTER_TYPES
## Not run:
library(Rlabkey)
## change the type of one of the columns
domain <- labkey.domain.get(baseUrl="http://labkey/", folderPath="home",
schemaName="lists", queryName="test list")
domain$fields[3,]$rangeURI = "xsd:string"
domain$fields[3,]$name = "changed to string"
labkey.domain.save(baseUrl="http://labkey/", folderPath="home",
schemaName="lists", queryName="test list", domainDesign=domain)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.