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 @@ -312,31 +312,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 control to form"
"text": "Applying the form control scaffold via 'txc workspace component apply-scaffold'"
}
],
"continueOnError": false,
"description": "Adding new control 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 form control scaffold via the TALXIS CLI"
}
]
}
203 changes: 0 additions & 203 deletions src/Dataverse/templates/pp-form-control/.template.scripts/Add.ps1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
$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.

$argsList = @(
'workspace', 'component', 'apply-scaffold',
'--component-type', 'FormControl',
'--solution-root', '__solution-root-path__',
'--file', 'control=.template.temp/control.xml',
'--file', 'dialog-control=.template.temp/dialogcontrol.xml',
'--param', 'entity=exampleentityname',
'--param', 'form-type=formtypeexample',
'--param', 'form-id=formguididexample',
'--param', 'tab-id=tabexampleid',
'--param', 'tab-index=tabnumberexample',
'--param', 'column-index=columnnumberexample',
'--param', 'section-id=sectionidexample',
'--param', 'section-index=sectionnumberexample',
'--param', 'row-index=rownumberexample',
'--param', 'set-to-tab-footer=settotabfooterchoice'
)

<!--#if (ControlType == "SubGrid") -->
$argsList += @(
'--param', 'row-span=examplerowspanvalue',
'--param', 'col-span=examplecolspanvalue'
)
<!--#endif -->

& txc @argsList
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

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

This file was deleted.

This file was deleted.