Skip to content

Commit a16d20a

Browse files
Hovhannes-DilanyanHovhannes Dilanyan
andauthored
Chore/set up publishing (#21)
* Updated Solution.cdsproj * Updated README.md * Added images * Created CHANGELOG.md --------- Co-authored-by: Hovhannes Dilanyan <hovhannes@bevercrm.com>
1 parent 0a4c9e8 commit a16d20a

File tree

6 files changed

+55
-5
lines changed

6 files changed

+55
-5
lines changed

.github/workflows/create-release-and-upload-solution-to-azure-storage-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
# control-thumbnail-url: '' # default
1515
# control-primary-image-url: '' # default
1616
# control-youtube-video-url: '' # default
17-
# control-tags: Bever-Controls, PCF, <control-title> # added by default
17+
# control-tags: Field, Grid, FetchXml
1818
# create-new-release: true # default

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [v1.0.0](https://github.com/BeverCRM/PCF-FetchToSubgrid/releases/tag/v1.0.0) (2023-04-20)
2+
3+
This control converts a FetchXml string into a subgrid.

MarketplaceAssets/images/primary.png

33.7 KB
Loading
33.7 KB
Loading

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,52 @@
11
# Fetch to Subgrid
2+
3+
This control converts a _"Multiple Lines of Text"_ field into a subgrid.
4+
5+
<br>
6+
7+
![image](https://user-images.githubusercontent.com/60586462/233377327-4e43c785-96fa-4845-8308-d523ce457f58.png)
8+
9+
<br>
10+
11+
The _"Multiple Lines of Text"_ field value can contain either a FetchXml string or a JSON string with the following format:
12+
13+
```json
14+
{
15+
"newButtonVisibility": true,
16+
"deleteButtonVisibility": true,
17+
"pageSize": 10,
18+
"fetchXml": "<fetch version=\"1.0\" output-format=\"xml-platform\" mapping=\"logical\" distinct=\"false\">\n <entity name=\"bvr_testcase\">\n <attribute name=\"bvr_name\" />\n <attribute name=\"bvr_slot_title\" />\n <attribute name=\"bvr_os_status\" />\n <attribute name=\"createdon\" />\n <attribute name=\"statuscode\" />\n <attribute name=\"statecode\" />\n <attribute name=\"ownerid\" />\n <filter type=\"and\">\n <condition attribute=\"bvr_os_status\" operator=\"eq\" value=\"551800000\" />\n </filter>\n </entity>\n</fetch>"
19+
}
20+
```
21+
22+
<br>
23+
24+
| Property | Description |
25+
| ------------- | ------------- |
26+
| fetchXml | FetchXml query, according to which the data will be shown in the sub-grid. |
27+
| pageSize | Number of sub-grid lines per page. |
28+
| newButtonVisibility | Show or hide _New_ button on the sub-grid. |
29+
| deleteButtonVisibility | Show or hide _Delete_ button on the sub-grid. |
30+
31+
<br>
32+
33+
Control has the following properties:
34+
35+
| Name | Type | Required | Description |
36+
| ------------- | ------------- | ------------- | ------------- |
37+
| 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. |
38+
| 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. |
39+
| 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. |
40+
| 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. |
41+
42+
<br>
43+
44+
![image](https://user-images.githubusercontent.com/60586462/233362848-3acb9a0f-9478-4e54-8763-c84b98e93aa9.png)
45+
46+
<br>
47+
48+
FetchXml can contain:
49+
* FetchXML aggregate columns
50+
* Multiple link entities
51+
* Attributes of the fetch tag
52+
* etc.

Solution/Solution.cdsproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4343
</Content>
4444
</ItemGroup>
45-
46-
<ItemGroup>
47-
<ProjectReference Include="..\FetchToSubgrid.pcfproj" />
48-
</ItemGroup>
4945

5046
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
5147
<Import Project="$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.targets" Condition="Exists('$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.targets')" />

0 commit comments

Comments
 (0)