facet (switch)
type = switch| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
name | string | Yes | P#PAGE_ID#_NEW | data type=string; maxLen=255; textCase=UPPER |
type | enum | Yes | data type=string; lov=PLUGINSValid values: switch |
settings
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
useDefaults | boolean | Yes | true | data type=boolean |
onValue | string | No | data type=string; maxLen=255Applies when use_defaults = N | |
onLabel | string | No | data type=string; maxLen=4000Applies when use_defaults = N | |
offValue | string | No | data type=string; maxLen=255Applies when use_defaults = N | |
offLabel | string | No | data type=string; maxLen=4000Applies when use_defaults = N |
settings {
useDefaults: false
onValue: value
onLabel: value
offValue: value
offLabel: value
}label
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
label | string | No | data type=string; maxLen=4000Applies when type supports VISIBLEEnter the label for the facet. The label displays on the page only if the facet displays. The label for type Search is visually hidden, but available to assistive technology. | |
showLabelForCurrentFacet | boolean | Yes | true | data type=booleanApplies when type supports VISIBLE |
label {
label: value
showLabelForCurrentFacet: false
}lov
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
type | enum | No | data type=string; lov=STATICValid values: sharedComponent sqlQuery staticValues functionBody distinctValuesApplies when type supports LOV | |
lov | reference | Yes | data type=reference; lov=COMPONENT; references=lovApplies when type supports LOV and type = sharedComponent | |
sqlQuery | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports LOV and type = sqlQueryEnter the SQL query definition to populate this list of values. Generally list of value queries are of the form:
select [displayValue],
[returnValue]
from ...
where ...
order by ...
Each column selected must have a unique name or alias. Oracle recommends using an alias on any column that includes an SQL expression. Note: When defining a Popup LOV item type, if you would like to display multiple columns in the popup, you must instead define your List of Values in Shared Components, with the required additional metadata. Inline list of values can only be used to display single columns for Popup LOVs. | |
staticValues | multiline string | Yes | STATIC:Display1;Return1,Display2;Return2 | data type=multiline string; maxLen=4000Applies when type supports LOV and type = staticValues |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: plsql javaScript-mleApplies when type supports LOV and type = functionBody |
plsqlFunctionBody | multiline string | Yes | data type=multiline string; maxLen=32767Applies when type supports LOV and type = functionBody and language = plsql | |
javaScriptFunctionBody | multiline string | Yes | data type=multiline string; maxLen=32767Applies when type supports LOV and type = functionBody and language = javaScript-mle | |
sortDirection | enum | Yes | asc | data type=string; lov=STATICValid values: asc descApplies when type supports LOV and type = distinctValues |
includeNullOption | boolean | Yes | false | data type=booleanApplies when type supports FC_LOV_DISPLAY_NULL and type supports LOV and type is set |
nullDisplayValue | string | Yes | data type=string; maxLen=255Applies when type supports FC_LOV_DISPLAY_NULL and type supports LOV and type is set and includeNullOption = trueEnter the text to be displayed within the list NULL option at the top of this list. |
lov {
type: sharedComponent
lov: @component
sqlQuery: ```sql
value
```
staticValues: ```
value
```
language: plsql
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
sortDirection: asc
includeNullOption: false
nullDisplayValue: value
}cascadingLov
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
parentFacet | string | No | data type=string; maxLen=32767; textCase=UPPERApplies when type supports LOV and type = sharedComponent | |
lovColumn | string | Yes | data type=string; maxLen=128Applies when type supports LOV and type = sharedComponent and parentFacet is set | |
parentRequired | boolean | Yes | true | data type=booleanApplies when type supports LOV and type = sharedComponent and parentFacet is set |
cascadingLov {
parentFacet: value
lovColumn: value
parentRequired: false
}layout
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
sequence | number | Yes | data type=number; maxLen=22 | |
maxHeight | integer | No | data type=integer; maxLen=32767 |
layout {
sequence: 42
maxHeight: 42
}appearance
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
valuePlaceholder | string | No | data type=string; maxLen=255Applies when type supports PLACEHOLDER | |
icon | string | No | data type=string; maxLen=255Enter the classes for the icon you want to use to identify this facet. You may add multiple classes by separating them with spaces. If your theme uses Font APEX then review the Universal Theme Sample Application to view available icons and modifiers. | |
display | enum | Yes | inline | data type=string; lov=STATICValid values: inline addFilterDialog |
formatMask | string | No | data type=string; maxLen=255Applies when type supports FORMAT_MASK_DATE and dataType in (date)type supports FORMAT_MASK_DATE and dataType in (timestamp)type supports FORMAT_MASK_DATE and dataType in (timestampWithTimeZone)type supports FORMAT_MASK_DATE and dataType in (timestampWithLocalTimeZone) |
appearance {
valuePlaceholder: value
icon: value
display: inline
formatMask: value
}listEntries
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
computeCounts | boolean | Yes | true | data type=booleanApplies when type supports FC_HAS_FEEDBACK |
showCounts | boolean | Yes | true | data type=booleanApplies when type supports FC_HAS_FEEDBACK and computeCounts = true |
zeroCountEntries | enum | Yes | hide | data type=string; lov=STATICValid values: hide disable showLastApplies when type supports FC_HAS_FEEDBACK and computeCounts = true |
sortByTopCounts | boolean | Yes | true | data type=booleanApplies when type supports FC_HAS_FEEDBACK and computeCounts = true and showCounts = true and type in (checkboxGroup)type supports FC_HAS_FEEDBACK and computeCounts = true and showCounts = true and type in (radioGroup) |
showSelectedFirst | boolean | Yes | false | data type=booleanApplies when type supports FC_SHOW_SELECTED_FIRST and type supports LOV and type is set |
maxDisplayedEntries | integer | No | data type=integer; maxLen=32767Applies when type supports FC_SHOW_MORE_COUNT and type supports LOV and type is set | |
allowToExclude | boolean | Yes | true | data type=booleanApplies when type in (checkboxGroup)type in (radioGroup)type in (range) |
displayFilterInitially | boolean | Yes | false | data type=booleanApplies when type supports FC_FILTER_VALUES and type supports LOV and type is set |
listEntries {
computeCounts: false
showCounts: false
zeroCountEntries: hide
sortByTopCounts: false
showSelectedFirst: false
maxDisplayedEntries: 42
allowToExclude: false
displayFilterInitially: false
}actionsMenu
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
filter | boolean | Yes | true | data type=booleanApplies when type supports FC_FILTER_VALUES and type supports LOV and type is set and display = inline |
chart | boolean | Yes | true | data type=booleanApplies when type supports FC_HAS_FEEDBACK and computeCounts = true and type supports LOV and type is set |
actionsMenu {
filter: false
chart: false
}advanced
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
showChartInitially | boolean | Yes | false | data type=booleanApplies when type supports FC_HAS_FEEDBACK and computeCounts = true and type supports LOV and type is set and chart = true and display = inline |
collapsible | boolean | Yes | false | data type=booleanApplies when display = inline |
initiallyCollapsed | boolean | Yes | false | data type=booleanApplies when display = inline and collapsible = true |
cssClasses | array of strings | No | data type=string; maxLen=255Applies when display = inlineEnter classes to add to this facet. You may add multiple classes by separating them with spaces. |
advanced {
showChartInitially: false
collapsible: false
initiallyCollapsed: false
cssClasses: [
value
value
]
}source
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
databaseColumn | string | Yes | data type=string; maxLen=128Enter the case sensitive database column name used as the source for this facet. | |
dbColumns | string | No | data type=string; maxLen=4000Applies when type = search | |
dataType | enum | Yes | varchar2 | data type=string; maxLen=128; lov=STATICValid values: varchar2 number date timestamp timestampWithTimeZone timestampWithLocalTimeZone intervalYearToMonth intervalDayToSecond clob blob boolean rowid bfile sdoGeometry |
source {
databaseColumn: value
dbColumns: value
dataType: varchar2
}multipleValues
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
type | enum | No | data type=string; lov=STATICValid values: delimitedList jsonArrayApplies when type in (checkboxGroup)type in (radioGroup)type in (selectList) | |
separator | string | Yes | : | data type=string; maxLen=5Applies when type in (checkboxGroup) and type = delimitedListtype in (radioGroup) and type = delimitedListtype in (selectList) and type = delimitedList |
trimWhitespace | boolean | Yes | false | data type=booleanApplies when type in (checkboxGroup) and type = delimitedListtype in (radioGroup) and type = delimitedListtype in (selectList) and type = delimitedList |
filterCombination | enum | Yes | or | data type=string; lov=STATICValid values: or andApplies when type in (checkboxGroup) and type is settype in (radioGroup) and type is settype in (selectList) and type is set |
multipleValues {
type: delimitedList
separator: value
trimWhitespace: false
filterCombination: or
}default
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
type | enum | No | data type=string; lov=STATICValid values: static item sqlQuerySingleValue sqlQueryMultipleValues expression functionBody sequenceApplies when type supports SOURCE | |
staticValue | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = static | |
item | string | Yes | data type=string; maxLen=32767; textCase=UPPERApplies when type supports SOURCE and type = item | |
sqlQuerySingleValue | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = sqlQuerySingleValue | |
sqlQueryMultipleValues | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = sqlQueryMultipleValues | |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: sql plsql javaScript-mleApplies when type supports SOURCE and type = expression |
sqlExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = expression and language = sql | |
plsqlExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = expression and language = plsql | |
javaScriptExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = expression and language = javaScript-mle | |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: plsql javaScript-mleApplies when type supports SOURCE and type = functionBody |
plsqlFunctionBody | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = functionBody and language = plsql | |
javaScriptFunctionBody | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type supports SOURCE and type = functionBody and language = javaScript-mle | |
sequence | string | Yes | data type=string; maxLen=128Applies when type supports SOURCE and type = sequence |
default {
type: static
staticValue: ```
value
```
item: value
sqlQuerySingleValue: ```sql
value
```
sqlQueryMultipleValues: ```sql
value
```
language: sql
sqlExpression: ```sql
value
```
plsqlExpression: ```plsql
value
```
javaScriptExpression: ```javascript-mle
value
```
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
sequence: value
}dependingOn
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
facet | reference | No | data type=reference; lov=COMPONENT; references=facet | |
type | enum | Yes | isNotNull | data type=string; lov=STATICValid values: = != inList notInList isNull isNotNullApplies when facet is set |
value | string | Yes | data type=string; maxLen=4000Applies when facet is set and type in (=)facet is set and type in (!=) | |
list | array of strings | Yes | data type=string; maxLen=4000Applies when facet is set and type in (inList)facet is set and type in (notInList) |
dependingOn {
facet: @component
type: "="
value: value
list: [
value
value
]
}serverSideCondition
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
type | enum | No | data type=string; lov=STATICValid values: always rowsReturned noRowsReturned expression functionBody request=Value request!=Value requestIsContainedInValue requestIsNotContainedInValue item=value item!=value itemIsNull itemIsNotNull itemIsZero itemIsNotZero itemIsNullOrZero itemIsNotNullAndNotZero itemContainsNoSpaces itemIsNumeric itemIsNotNumeric itemIsAlphanumeric itemIsInColonDelimitedList itemIsNotInColonDelimitedList textIsContainedInItem text=value text!=value textIsContainedInValue textIsNotContainedInValue userPreference=value userPreference!=value currentPage=page currentPage!=page currentPageInList currentPageNotInList currentPage=pageSubmitted currentPage!=pageSubmitted currentPageIsInPrinterFriendlyMode currentPageIsNotInPrinterFriendlyMode pageRegionIsReadOnly pageRegionIsNotReadOnly userIsAuthenticated userIsPublicUser inlineValidationErrorsDisplayed inlineValidationErrorsNotDisplayed sqlReportsOkToShowForwardButton sqlReportsOkToShowBackButton currentLanguage=value currentLanguage!=value currentLanguageIsContainedInValue currentLanguageIsNotContainedInValue clientBrowserIsMozilla clientBrowserIsIE7higher clientBrowserIsXhtmlCssCapable clientBrowserIsOther cgiEnvDadName=value cgiEnvDadName!=value cgiEnvServerName=value cgiEnvServerName!=value cgiEnvHttpHost=value cgiEnvHttpHost!=value never | |
sqlQuery | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type in (rowsReturned)type in (noRowsReturned) | |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: sql plsql javaScript-mleApplies when type = expression |
sqlExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = expression and language = sql | |
plsqlExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = expression and language = plsql | |
javaScriptExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = expression and language = javaScript-mle | |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: plsql javaScript-mleApplies when type = functionBody |
plsqlFunctionBody | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = functionBody and language = plsql | |
javaScriptFunctionBody | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = functionBody and language = javaScript-mle | |
value | string | Yes | data type=string; maxLen=4000Applies when type in (request=Value)type in (request!=Value)type in (requestIsContainedInValue)type in (requestIsNotContainedInValue)type in (currentLanguageIsContainedInValue)type in (currentLanguageIsNotContainedInValue)type in (currentLanguage!=value)type in (currentLanguage=value)type in (cgiEnvDadName=value)type in (cgiEnvDadName!=value)type in (cgiEnvServerName=value)type in (cgiEnvServerName!=value)type in (cgiEnvHttpHost=value)type in (cgiEnvHttpHost!=value) | |
item | string | Yes | data type=string; maxLen=4000; textCase=UPPERApplies when type in (item=value)type in (item!=value)type in (VALUE_OF_ITEM_IN_COND_1_EQ_COND_2)type in (VALUE_OF_ITEM_IN_COND_1_NOT_EQ_COND_2)type in (itemIsNull)type in (itemIsNotNull)type in (itemIsZero)type in (itemIsNotZero)type in (itemIsNullOrZero)type in (itemIsNotNullAndNotZero)type in (itemContainsNoSpaces)type in (itemIsNumeric)type in (itemIsNotNumeric)type in (itemIsAlphanumeric)type in (itemIsInColonDelimitedList)type in (itemIsNotInColonDelimitedList) | |
preference | string | Yes | data type=string; maxLen=4000; textCase=UPPERApplies when type in (userPreference=value)type in (userPreference!=value) | |
page | integer | Yes | data type=integer; maxLen=4000Applies when type in (currentPage=page)type in (currentPage!=page) | |
pages | array of integers | Yes | data type=integer; maxLen=4000Applies when type in (currentPageInList)type in (currentPageNotInList) | |
text | string | Yes | data type=string; maxLen=4000Applies when type in (textIsContainedInItem)type in (textIsContainedInValue)type in (textIsNotContainedInValue)type in (text=value)type in (text!=value) | |
value | string | Yes | data type=string; maxLen=4000Applies when type in (item=value)type in (item!=value)type in (VALUE_OF_ITEM_IN_COND_1_EQ_COND_2)type in (VALUE_OF_ITEM_IN_COND_1_NOT_EQ_COND_2) | |
list | array of strings | Yes | data type=string; maxLen=4000Applies when type in (itemIsInColonDelimitedList)type in (itemIsNotInColonDelimitedList) | |
item | string | Yes | data type=string; maxLen=4000; textCase=UPPERApplies when type = textIsContainedInItem | |
value | string | Yes | data type=string; maxLen=4000Applies when type in (textIsContainedInValue)type in (textIsNotContainedInValue)type in (text=value)type in (text!=value) |
serverSideCondition {
type: always
sqlQuery: ```sql
value
```
language: sql
sqlExpression: ```sql
value
```
plsqlExpression: ```plsql
value
```
javaScriptExpression: ```javascript-mle
value
```
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
value: value
item: value
preference: value
page: 42
pages: [
42
42
]
text: value
list: [
value
value
]
}security
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
authorizationScheme | enum | No | data type=reference; lov=COMPONENT; references=authorizationValid values: mustNotBePublicUser | |
encryptSessionState | boolean | Yes | true | data type=booleanApplies when type supports ENCRYPT |
escapeSpecialChars | boolean | Yes | true | data type=booleanApplies when type supports ESCAPE_OUTPUT |
security {
authorizationScheme: mustNotBePublicUser
encryptSessionState: false
escapeSpecialChars: false
}config
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
buildOption | reference | No | data type=reference; lov=COMPONENT; references=buildOption |
config {
buildOption: @component
}comments
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
comments | multiline string | No | data type=multiline string; maxLen=4000 |
comments {
comments: ```
value
```
}APEXlang Example
facet sample (
name: value
type: switch
settings {
useDefaults: false
onValue: value
onLabel: value
offValue: value
offLabel: value
}
label {
label: value
showLabelForCurrentFacet: false
}
lov {
type: sharedComponent
lov: @component
sqlQuery: ```sql
value
```
staticValues: ```
value
```
language: plsql
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
sortDirection: asc
includeNullOption: false
nullDisplayValue: value
}
cascadingLov {
parentFacet: value
lovColumn: value
parentRequired: false
}
layout {
sequence: 42
maxHeight: 42
}
appearance {
valuePlaceholder: value
icon: value
display: inline
formatMask: value
}
listEntries {
computeCounts: false
showCounts: false
zeroCountEntries: hide
sortByTopCounts: false
showSelectedFirst: false
maxDisplayedEntries: 42
allowToExclude: false
displayFilterInitially: false
}
actionsMenu {
filter: false
chart: false
}
advanced {
showChartInitially: false
collapsible: false
initiallyCollapsed: false
cssClasses: [
value
value
]
}
source {
databaseColumn: value
dbColumns: value
dataType: varchar2
}
multipleValues {
type: delimitedList
separator: value
trimWhitespace: false
filterCombination: or
}
default {
type: static
staticValue: ```
value
```
item: value
sqlQuerySingleValue: ```sql
value
```
sqlQueryMultipleValues: ```sql
value
```
language: sql
sqlExpression: ```sql
value
```
plsqlExpression: ```plsql
value
```
javaScriptExpression: ```javascript-mle
value
```
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
sequence: value
}
dependingOn {
facet: @component
type: "="
value: value
list: [
value
value
]
}
serverSideCondition {
type: always
sqlQuery: ```sql
value
```
language: sql
sqlExpression: ```sql
value
```
plsqlExpression: ```plsql
value
```
javaScriptExpression: ```javascript-mle
value
```
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
value: value
item: value
preference: value
page: 42
pages: [
42
42
]
text: value
list: [
value
value
]
}
security {
authorizationScheme: mustNotBePublicUser
encryptSessionState: false
escapeSpecialChars: false
}
config {
buildOption: @component
}
comments {
comments: ```
value
```
}
)