sourceQuery

Parent: reportQuery

Children: parameterlocation = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable = false; location = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable = false; location = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable = false

Direct Properties:

PropertyTypeRequiredDefault ValueDetails
namestringYesdata type=string; maxLen=255
Name of this report query source.
sequenceintegerYesdata type=integer; maxLen=32767

Property Groups:

  • dataLoop
  • source
  • dataProfile
  • restSynchronization
  • externalFilterAndOrderBy
  • localPostProcessing
  • remoteCache
dataLoop
PropertyTypeRequiredDefault ValueDetails
namestringNodata type=string; maxLen=255
dataLoop {
  name: value
}
source
PropertyTypeRequiredDefault ValueDetails
locationenumYeslocalDatabasedata type=string; lov=STATIC
Valid values: localDatabase restEnabledSql restSource jsonDualityView jsonSource sampleData
remoteServerreferenceYesdata type=reference; lov=COMPONENT; references=restEnabledSqlDatabase
Applies whenlocation = restEnabledSql
sampleDataenumYesdata type=string; lov=STATIC
Valid values: employees tasks products projects
Applies whenlocation = sampleData
typeenumYestableViewdata type=string; lov=STATIC
Valid values: tableView sqlQuery functionBody propertyGraph
Applies whenlocation in (localDatabase)location in (restEnabledSql)
tableOwnerstringNodata type=string; maxLen=32767
Applies whenlocation in (localDatabase) and type = tableViewlocation in (restEnabledSql) and type = tableView
tableNamestringYesdata type=string; maxLen=128
Applies whenlocation in (localDatabase) and type = tableViewlocation in (restEnabledSql) and type = tableView
whereClausemultiline stringNodata type=multiline string; maxLen=4000
Applies whenlocation in (localDatabase) and type = tableViewlocation in (restEnabledSql) and type = tableView
graphOwnerstringNodata type=string; maxLen=32767
Applies whenlocation in (localDatabase) and type = propertyGraphlocation in (restEnabledSql) and type = propertyGraph
graphNamestringYesdata type=string; maxLen=32767
Applies whenlocation in (localDatabase) and type = propertyGraphlocation in (restEnabledSql) and type = propertyGraph
matchClausemultiline stringYesdata type=multiline string; maxLen=4000
Applies whenlocation in (localDatabase) and type = propertyGraphlocation in (restEnabledSql) and type = propertyGraph
columnsClausemultiline stringYesdata type=multiline string; maxLen=4000
Applies whenlocation in (localDatabase) and type = propertyGraphlocation in (restEnabledSql) and type = propertyGraph
whereClausemultiline stringNodata type=multiline string; maxLen=4000
Applies whenlocation in (localDatabase) and type = propertyGraphlocation in (restEnabledSql) and type = propertyGraph
orderByClausemultiline stringNodata type=multiline string; maxLen=255
Applies whenlocation in (localDatabase) and type = tableViewlocation in (restEnabledSql) and type = tableView
orderByClausemultiline stringNodata type=multiline string; maxLen=255
Applies whenlocation in (localDatabase) and type = propertyGraphlocation in (restEnabledSql) and type = propertyGraph
sqlQuerymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation in (localDatabase) and type = sqlQuerylocation in (restEnabledSql) and type = sqlQuery
Specify the SQL Query to define the report query:
select [col1], [col2], [col3], ...
  from ...
 where ...
 order by ...
When the Report Query returns JSON and one or more columns are in a JSON format, then such columns can be aliased to indicate that the JSON value must not be encoded as a string in the resulting document:
select [col1], [col2] as "{}[col2]", ...
  from ...
languageenumYesplsqldata type=string; lov=STATIC
Valid values: plsql javaScript-mle
Applies whenlocation in (localDatabase) and type = functionBodylocation in (restEnabledSql) and type = functionBody
plsqlFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation in (localDatabase) and type = functionBody and language = plsqllocation in (restEnabledSql) and type = functionBody and language = plsql
javaScriptFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation in (localDatabase) and type = functionBody and language = javaScript-mlelocation in (restEnabledSql) and type = functionBody and language = javaScript-mle
restSourcereferenceYesdata type=reference; lov=COMPONENT; references=restDataSource
Applies whenlocation = restSource
jsonDualityViewreferenceYesdata type=reference; lov=COMPONENT; references=jsonDualityView
Applies whenlocation = jsonDualityView
jsonSourcereferenceYesdata type=reference; lov=COMPONENT; references=jsonSource
Applies whenlocation = jsonSource
optimizerHintstringNodata type=string; maxLen=255
Applies whenlocation in (localDatabase)location in (restEnabledSql)location in (restSource)location in (jsonDualityView)location in (jsonSource)
source {
  location: localDatabase
  remoteServer: @component
  sampleData: employees
  type: tableView
  tableOwner: value
  tableName: value
  whereClause: ```sql
    value
  ```
  graphOwner: value
  graphName: value
  matchClause: ```
    value
  ```
  columnsClause: ```
    value
  ```
  orderByClause: ```sql
    value
  ```
  sqlQuery: ```sql
    value
  ```
  language: plsql
  plsqlFunctionBody: ```plsql
    value
  ```
  javaScriptFunctionBody: ```javascript-mle
    value
  ```
  restSource: @component
  jsonDualityView: @component
  jsonSource: @component
  optimizerHint: value
}
dataProfile
PropertyTypeRequiredDefault ValueDetails
nestedRowsreferenceNodata type=reference; lov=COMPONENT; references=dataProfileColumn
Applies whenlocation = restSource and restSource supports HAS_ARRAY_COLUMNS
nestedRowsreferenceNodata type=reference; lov=COMPONENT; references=dataProfileColumn
Applies whenlocation = jsonDualityView and jsonDualityView supports HAS_ARRAY_COLUMNS
nestedRowsreferenceNodata type=reference; lov=COMPONENT; references=dataProfileColumn
Applies whenlocation = jsonSource and jsonSource supports HAS_ARRAY_COLUMNS
dataProfile {
  nestedRows: @component
}
restSynchronization
PropertyTypeRequiredDefault ValueDetails
useLocalTablebooleanYesfalsedata type=boolean
Applies whenlocation = restSource and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNSlocation = restSource and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNSlocation = restSource and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED
restSynchronization {
  useLocalTable: false
}
externalFilterAndOrderBy
PropertyTypeRequiredDefault ValueDetails
enabledbooleanYesfalsedata type=boolean
Applies whenlocation = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable in (false)location = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable in ($NULL$)location = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable in (false)location = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable in ($NULL$)location = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable in (false)location = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable in ($NULL$)
filtermultiline stringNodata type=multiline string; maxLen=4000
Applies whenlocation = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable in (false) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable in ($NULL$) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable in (false) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable in ($NULL$) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable in (false) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable in ($NULL$) and enabled = true
orderBymultiline stringNodata type=multiline string; maxLen=255
Applies whenlocation = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable in (false) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_SYNC_HAS_NO_ARRAY_COLUMNS and useLocalTable in ($NULL$) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable in (false) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and restSource supports HAS_SYNC_ALL_ARRAY_COLUMNS and useLocalTable in ($NULL$) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable in (false) and enabled = truelocation = restSource and restSource is set and restSource supports HAS_ARRAY_COLUMNS and nestedRows supports IS_SYNCED and useLocalTable in ($NULL$) and enabled = true
externalFilterAndOrderBy {
  enabled: false
  filter: ```
    value
  ```
  orderBy: ```
    value
  ```
}
localPostProcessing
PropertyTypeRequiredDefault ValueDetails
typeenumNodata type=string; lov=STATIC
Valid values: whereOrderByClause sqlQuery plsqlFunctionBody
Applies whenlocation = restSource and restSource is set
whereClausemultiline stringNodata type=multiline string; maxLen=4000
Applies whenlocation = restSource and restSource is set and type = whereOrderByClause
orderByClausemultiline stringNodata type=multiline string; maxLen=255
Applies whenlocation = restSource and restSource is set and type = whereOrderByClause
sqlQuerymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = restSource and restSource is set and type = sqlQuery
languageenumYesplsqldata type=string; lov=STATIC
Valid values: plsql javaScript-mle
Applies whenlocation = restSource and restSource is set and type = plsqlFunctionBody
plsqlFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = restSource and restSource is set and type = plsqlFunctionBody and language = plsql
javaScriptFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = restSource and restSource is set and type = plsqlFunctionBody and language = javaScript-mle
typeenumNodata type=string; lov=STATIC
Valid values: whereOrderByClause sqlQuery plsqlFunctionBody
Applies whenlocation = jsonDualityView and jsonDualityView is set
whereClausemultiline stringNodata type=multiline string; maxLen=4000
Applies whenlocation = jsonDualityView and jsonDualityView is set and type = whereOrderByClause
orderByClausemultiline stringNodata type=multiline string; maxLen=255
Applies whenlocation = jsonDualityView and jsonDualityView is set and type = whereOrderByClause
sqlQuerymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = jsonDualityView and jsonDualityView is set and type = sqlQuery
languageenumYesplsqldata type=string; lov=STATIC
Valid values: plsql javaScript-mle
Applies whenlocation = jsonDualityView and jsonDualityView is set and type = plsqlFunctionBody
plsqlFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = jsonDualityView and jsonDualityView is set and type = plsqlFunctionBody and language = plsql
javaScriptFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = jsonDualityView and jsonDualityView is set and type = plsqlFunctionBody and language = javaScript-mle
typeenumNodata type=string; lov=STATIC
Valid values: whereOrderByClause sqlQuery plsqlFunctionBody
Applies whenlocation = jsonSource and jsonSource is set
whereClausemultiline stringNodata type=multiline string; maxLen=4000
Applies whenlocation = jsonSource and jsonSource is set and type = whereOrderByClause
orderByClausemultiline stringNodata type=multiline string; maxLen=255
Applies whenlocation = jsonSource and jsonSource is set and type = whereOrderByClause
sqlQuerymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = jsonSource and jsonSource is set and type = sqlQuery
languageenumYesplsqldata type=string; lov=STATIC
Valid values: plsql javaScript-mle
Applies whenlocation = jsonSource and jsonSource is set and type = plsqlFunctionBody
plsqlFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = jsonSource and jsonSource is set and type = plsqlFunctionBody and language = plsql
javaScriptFunctionBodymultiline stringYesdata type=multiline string; maxLen=32767
Applies whenlocation = jsonSource and jsonSource is set and type = plsqlFunctionBody and language = javaScript-mle
localPostProcessing {
  type: whereOrderByClause
  whereClause: ```sql
    value
  ```
  orderByClause: ```sql
    value
  ```
  sqlQuery: ```sql
    value
  ```
  language: plsql
  plsqlFunctionBody: ```plsql
    value
  ```
  javaScriptFunctionBody: ```javascript-mle
    value
  ```
}
remoteCache
PropertyTypeRequiredDefault ValueDetails
cachingenumNodata type=string; lov=STATIC
Valid values: allUsers user session
Applies whenlocation = restEnabledSql
timeoutmultiline stringYesdata type=multiline string; maxLen=255
Applies whenlocation = restEnabledSql and caching is set
remoteCache {
  caching: allUsers
  timeout: ```
    value
  ```
}

APEXlang Example

sourceQuery sample (
    name: value
    sequence: 42
    dataLoop {
        name: value
    }
    source {
        location: localDatabase
        remoteServer: @component
        sampleData: employees
        type: tableView
        tableOwner: value
        tableName: value
        whereClause: ```sql
          value
        ```
        graphOwner: value
        graphName: value
        matchClause: ```
          value
        ```
        columnsClause: ```
          value
        ```
        orderByClause: ```sql
          value
        ```
        sqlQuery: ```sql
          value
        ```
        language: plsql
        plsqlFunctionBody: ```plsql
          value
        ```
        javaScriptFunctionBody: ```javascript-mle
          value
        ```
        restSource: @component
        jsonDualityView: @component
        jsonSource: @component
        optimizerHint: value
    }
    dataProfile {
        nestedRows: @component
    }
    restSynchronization {
        useLocalTable: false
    }
    externalFilterAndOrderBy {
        enabled: false
        filter: ```
          value
        ```
        orderBy: ```
          value
        ```
    }
    localPostProcessing {
        type: whereOrderByClause
        whereClause: ```sql
          value
        ```
        orderByClause: ```sql
          value
        ```
        sqlQuery: ```sql
          value
        ```
        language: plsql
        plsqlFunctionBody: ```plsql
          value
        ```
        javaScriptFunctionBody: ```javascript-mle
          value
        ```
    }
    remoteCache {
        caching: allUsers
        timeout: ```
          value
        ```
    }
)