View source: R/labkey.domain.R
labkey.domain.createConditionalFormatQueryFilter | R Documentation |
Create a conditional format query filter string.
labkey.domain.createConditionalFormatQueryFilter(filterType, value,
additionalFilter=NULL, additionalValue=NULL)
filterType |
a string specifying a permitted relational operator |
value |
a string specifying a comparand |
additionalFilter |
a string specifying a second relational operator |
additionalValue |
a string specifying a second comparand |
This function can be used to as a convenience wrapper to construct a query filter string for conditional formats.
Two relational expressions may be formed, one with the first two parameters (for instance, parameter values '50' and 'eq' for value and filter
respectively would create a condition of 'equals 50') and the second with the remaining two optional parameters. If both
conditions are created, they are conjunct with a logical AND, and a value would have to pass both conditions to clear
the filter.
This function can be used in conjunction with labkey.domain.FILTER_TYPES
for easy access to the set of
permitted relational operators.
The string specifying a query filter in LabKey filter URL format.
Rosaline Pyktel
labkey.domain.get
,
labkey.domain.create
,
labkey.domain.createDesign
,
labkey.domain.inferFields
,
labkey.domain.save
,
labkey.domain.drop
,
labkey.domain.createConditionalFormat
,
labkey.domain.FILTER_TYPES
## Not run:
library(Rlabkey)
qf <- labkey.domain.FILTER_TYPES
# Filters for values equal to 750
qf1 <- labkey.domain.createConditionalFormatQueryFilter(qf$EQUAL, 750)
# Filters for values greater than 500, but less than 1000
qf2 <- labkey.domain.createConditionalFormatQueryFilter(qf$GREATER_THAN, 500, qf$LESS_THAN, 1000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.