For the managed package runtime, this page contains a DatasourceSDK LWC ReadMe for each Vlocity release.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20
The DatasourceSDK Lightning Web Component extends the Datasource Lightning Web Component with additional features for data fetched from an SDK.
Available c-datasource-sdk-component Attributes
|
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
|
value |
string |
yes |
Full JSON dump including type and value for the datasource to use. See sample code on this page. |
|
|
channel |
string |
If using with pubsub, channel attribute registers listener. Fires |
||
|
debug |
true, false (Default: false) |
To enable debug mode, set to true. If set to true, it prints fetched data inside template and enables changing the JSON there for testing purpose. |
||
|
theme |
slds, nds (Default: slds) |
Sets the theme to use for this component. |
Example c-datasource-sdk-component Component
<c-datasource-sdk-component
theme=""
channel="true"
value='{ "type": "query", "value": {"query": "Select Name from Account Limit 1"}}'
debug="true"
></c-datasource-sdk-component>
<!--apexRemote = `{
"type": "apexremote",
"value": {
"className": "LWCDatasource",
"methodName": "query",
"inputMap": inputMap,
"optionsMap": "{}"
}
}`;
inputMap = '{ "query": "SELECT Id, name FROM Contact LIMIT 2" }';
-->
<c-datasource-sdk-component
channel="apexRemote"
value={apexRemote}
debug="false"
></c-datasource-sdk-component>
<!-- dataraptorData = `{
type: "dataraptor",
value: {
bundleName: "TestDRBundle",
inputMap:inputMap
}
}`-->
<c-datasource-sdk-component
channel="dataraptor"
value={dataraptorData}
debug="false"
></c-datasource-sdk-component>
<!--iprocedure = `{
"type": "integrationprocedure",
"value": {
"ipMethod": "TestType_TestSubType",
"inputMap":inputMap,
"optionsMap": "{}"
}
}` -->
<c-datasource-sdk-component
channel="integrationpreocedure"
value={iprocedure}
debug="false"
></c-datasource-sdk-component>
<c-datasource-sdk-component
channel="search"
value='{ "type": "search", "value": {"search": "Find {savings} IN ALL FIELDS RETURNING Account(Name) limit 1"}}'
debug="false"
></c-datasource-sdk-component>
Vlocity Insurance and Health Summer '19 and Vlocity CME Fall '19
The DatasourceSDK Lightning Web Component extends the Datasource Lightning Web Component with additional features for data fetched from an SDK.
Available c-datasource-sdk-component Attributes
|
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
|
value |
string |
yes |
Full JSON dump including type and value for the datasource to use. See sample code on this page. |
|
|
channel |
string |
If using with pubsub, channel attribute registers listener. Fires |
||
|
debug |
true, false (Default: false) |
To enable debug mode, set to true. If set to true, it prints fetched data inside template and enables changing the JSON there for testing purpose. |
||
|
theme |
slds, nds (Default: slds) |
Sets the theme to use for this component. |
Example c-datasource-sdk-component Component
<c-datasource-sdk-component
theme=""
channel="true"
value='{ "type": "query", "value": {"query": "Select Name from Account Limit 1"}}'
debug="true"
></c-datasource-sdk-component>
<!--apexRemote == `{
"type": "apexremote",
"value": {
"className": "LWCDatasource",
"methodName": "query",
"inputMap": inputMap,
"optionsMap": "{}"
}
}`;
inputMap == '{ "query": "SELECT Id, name FROM Contact LIMIT 2" }';
-->
<c-datasource-sdk-component
channel="apexRemote"
value={apexRemote}
debug="false"
></c-datasource-sdk-component>
<!-- dataraptorData == `{
type: "dataraptor",
value: {
bundleName: "TestDRBundle",
inputMap:inputMap
}
}`-->
<c-datasource-sdk-component
channel="dataraptor"
value={dataraptorData}
debug="false"
></c-datasource-sdk-component>
<!--iprocedure == `{
"type": "integrationprocedure",
"value": {
"ipMethod": "TestType_TestSubType",
"inputMap":inputMap,
"optionsMap": "{}"
}
}` -->
<c-datasource-sdk-component
channel="integrationpreocedure"
value={iprocedure}
debug="false"
></c-datasource-sdk-component>
<c-datasource-sdk-component
channel="search"
value='{ "type": "search", "value": {"search": "Find {savings} IN ALL FIELDS RETURNING Account(Name) limit 1"}}'
debug="false"
></c-datasource-sdk-component>