diff --git a/.github/workflows/create-release-and-upload-solution-to-azure-storage-ci.yml b/.github/workflows/create-release-and-upload-solution-to-azure-storage-ci.yml index 91337ea..7b3d779 100644 --- a/.github/workflows/create-release-and-upload-solution-to-azure-storage-ci.yml +++ b/.github/workflows/create-release-and-upload-solution-to-azure-storage-ci.yml @@ -14,5 +14,5 @@ jobs: # control-thumbnail-url: '' # default # control-primary-image-url: '' # default # control-youtube-video-url: '' # default - # control-tags: Bever-Controls, PCF, # added by default + # control-tags: Field, Grid, FetchXml # create-new-release: true # default diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..624e59a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +## [v1.0.0](https://github.com/BeverCRM/PCF-FetchToSubgrid/releases/tag/v1.0.0) (2023-04-20) + +This control converts a FetchXml string into a subgrid. diff --git a/MarketplaceAssets/images/primary.png b/MarketplaceAssets/images/primary.png new file mode 100644 index 0000000..eaa9b5a Binary files /dev/null and b/MarketplaceAssets/images/primary.png differ diff --git a/MarketplaceAssets/images/thumbnail.png b/MarketplaceAssets/images/thumbnail.png new file mode 100644 index 0000000..eaa9b5a Binary files /dev/null and b/MarketplaceAssets/images/thumbnail.png differ diff --git a/README.md b/README.md index f5d157c..c626152 100644 --- a/README.md +++ b/README.md @@ -1 +1,52 @@ # Fetch to Subgrid + +This control converts a _"Multiple Lines of Text"_ field into a subgrid. + +
+ +![image](https://user-images.githubusercontent.com/60586462/233377327-4e43c785-96fa-4845-8308-d523ce457f58.png) + +
+ +The _"Multiple Lines of Text"_ field value can contain either a FetchXml string or a JSON string with the following format: + +```json +{ + "newButtonVisibility": true, + "deleteButtonVisibility": true, + "pageSize": 10, + "fetchXml": "\n \n \n \n \n \n \n \n \n \n \n \n \n" +} +``` + +
+ +| Property | Description | +| ------------- | ------------- | +| fetchXml | FetchXml query, according to which the data will be shown in the sub-grid. | +| pageSize | Number of sub-grid lines per page. | +| newButtonVisibility | Show or hide _New_ button on the sub-grid. | +| deleteButtonVisibility | Show or hide _Delete_ button on the sub-grid. | + +
+ +Control has the following properties: + +| Name | Type | Required | Description | +| ------------- | ------------- | ------------- | ------------- | +| Default FetchXml | String | Required | The default FetchXml value will be used if the _"Multiple Lines of Text"_ field value doesn't contain the _"fetchXml"_ JSON property. | +| Default Page Size | Number | Required | The default Page Size value will be used if the _"Multiple Lines of Text"_ field value doesn't contain the _"pageSize"_ JSON property. | +| New Button Visibility | Boolean | Required | The default New Button Visibility will be used if the _"Multiple Lines of Text"_ field value doesn't contain the _"newButtonVisibility"_ JSON property. | +| Delete Button Visibility | Boolean | Required | The default Delete Button Visibility will be used if the _"Multiple Lines of Text"_ field value doesn't contain the _"deleteButtonVisibility"_ JSON property. | + +
+ +![image](https://user-images.githubusercontent.com/60586462/233362848-3acb9a0f-9478-4e54-8763-c84b98e93aa9.png) + +
+ +FetchXml can contain: +* FetchXML aggregate columns +* Multiple link entities +* Attributes of the fetch tag +* etc. diff --git a/Solution/Solution.cdsproj b/Solution/Solution.cdsproj index 8621319..38a8aa1 100644 --- a/Solution/Solution.cdsproj +++ b/Solution/Solution.cdsproj @@ -42,10 +42,6 @@ PreserveNewest - - - -