Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"description": "Adds a subgrid to a form showing related entity records. Generates row > cell > control. Params: TargetEntityLogicalName, ViewId, RecordsPerPage, EnableQuickFind, EnableViewPicker, EnableChartPicker. Required: FormId, FormType(main/quick), EntityLogicalName, SubgridLabel.",
"tags": {
"language": "XML",
"type": "item"
"type": "item",
"componentType": "FormSubgrid"
},
"sourceName": "subgridconfig",
"preferNameDirectory": false,
Expand Down Expand Up @@ -177,31 +178,16 @@
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2",
"args": {
"executable": "pwsh",
"args": "-noprofile -executionpolicy bypass -File \"./.template.scripts/add.ps1\" ",
"args": "-noprofile -executionpolicy bypass -File \"./.template.scripts/ApplyScaffold.ps1\"",
"redirectStandardOutput": "false"
},
"manualInstructions": [
{
"text": "Adding new row to form"
"text": "Applying the subgrid scaffold via 'txc workspace component apply-scaffold'"
}
],
"continueOnError": false,
"description": "Adding new row to form"
},
{
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2",
"args": {
"executable": "pwsh",
"args": "-noprofile -executionpolicy bypass -File \"./.template.scripts/Cleanup.ps1\"",
"redirectStandardOutput": "false"
},
"manualInstructions": [
{
"text": "Removing Scripts"
}
],
"continueOnError": false,
"description": "Removing Scripts"
"description": "Applying the subgrid scaffold via the TALXIS CLI"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$ErrorActionPreference = 'Stop'

# Single interim post-action: all XML mutations run in-process inside the TALXIS CLI
# (txc workspace component apply-scaffold), backed by the platform metadata library.

& txc workspace component apply-scaffold `
--component-type 'FormSubgrid' `
--solution-root '__solution-declarations-root__' `
--file 'row=.template.temp/subgrid.xml' `
--param 'entity=__entity-logical-name__' `
--param 'form-type=__form-type__' `
--param 'form-id=__form-id__'
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Remove-Item .template.scripts -Recurse -Force
Remove-Item .template.temp -Recurse -Force

This file was deleted.

28 changes: 0 additions & 28 deletions src/Dataverse/templates/pp-form-subgrid/.template.scripts/add.ps1

This file was deleted.