Skip to content

Commit

Permalink
Merge pull request #128 from brYch97/users/dominik.brych/VirtualDataset
Browse files Browse the repository at this point in the history
Updated Virtual Dataset docs
  • Loading branch information
hajekj authored Oct 22, 2024
2 parents a6288a6 + 8cecdf7 commit 90179ef
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,9 @@ module.exports = config({
title: 'interfaces',
collapsable: true,
children: [
['/en/developer-guide/applications/controls/VirtualDataset/ClientExtensibility/API/interfaces/IDataset.md', 'IDataset'],
['/en/developer-guide/applications/controls/VirtualDataset/ClientExtensibility/API/interfaces/IDatasetEventListeners.md', 'IDatasetEventListeners'],
['/en/developer-guide/applications/controls/VirtualDataset/ClientExtensibility/API/interfaces/IDataProvider.md', 'IDataProvider'],
['/en/developer-guide/applications/controls/VirtualDataset/ClientExtensibility/API/interfaces/IDataProviderEventListeners.md', 'IDataProviderEventListeners'],
['/en/developer-guide/applications/controls/VirtualDataset/ClientExtensibility/API/interfaces/IRecord.md', 'IRecord']
['/en/developer-guide/applications/controls/VirtualDataset/ClientExtensibility/API/interfaces/IDataProviderOptions.md', 'IDataProviderOptions'],
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Additional options for Data Provider.

## Properties

### entityMetadata?

> `optional` **entityMetadata**: `DeepPartial`\<`EntityMetadata`\>
Can be used to define/override Entity Metadata.

#### Defined in

src/utils/dataset/data-providers/interfaces.ts:225

***

### title?

> `optional` **title**: `string`
Sets the title describing the provider.

#### Defined in

src/utils/dataset/data-providers/interfaces.ts:215

***

### userSettings?

> `optional` **userSettings**: `UserSettings` \| `UserSettings`
Only needs to be passed if the provider is running in an environment without User Settings present in window.Xrm (for example local PCF harness).

#### Defined in

src/utils/dataset/data-providers/interfaces.ts:220
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ The [PCF Dataset Column interface](https://learn.microsoft.com/en-us/power-apps/

Depending on which provider you choose, a different minimal amount of props is required for the column to show in the UI:

- FetchXml Provider: `name` and `isHidden`
- FetchXml Provider: `name`
- Memory Provider: `name`, `displayName` and [`dataType`](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/manifest-schema-reference/type)

You can also specify virtual columns by ending the column name with `__virtual` suffix. This will let the provider know that it should not try to fetch any metadata for the column and it is up to you to specify them. You can then perform actions (`setValue`, `getValue`) on this column, just like on the classic one.
Expand Down

0 comments on commit 90179ef

Please sign in to comment.