|
1 | 1 | # Fetch to Subgrid
|
| 2 | + |
| 3 | +This control converts a _"Multiple Lines of Text"_ field into a subgrid. |
| 4 | + |
| 5 | +<br> |
| 6 | + |
| 7 | + |
| 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 | + |
| 45 | + |
| 46 | +<br> |
| 47 | + |
| 48 | +FetchXml can contain: |
| 49 | +* FetchXML aggregate columns |
| 50 | +* Multiple link entities |
| 51 | +* Attributes of the fetch tag |
| 52 | +* etc. |
0 commit comments