mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 01:20:59 +03:00
Add full link details to fields mode
Show dataSetLink field-level mappings (source.field -> dest.field param=X) at the top of -Mode fields output. Overview keeps compact dataset-pair summary, fields provides the detail. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
2949682ce8
commit
d210d21079
@@ -646,6 +646,22 @@ elseif ($Mode -eq "query") {
|
|||||||
# ============================================================
|
# ============================================================
|
||||||
elseif ($Mode -eq "fields") {
|
elseif ($Mode -eq "fields") {
|
||||||
|
|
||||||
|
# Links (full detail)
|
||||||
|
$links = $root.SelectNodes("s:dataSetLink", $ns)
|
||||||
|
if ($links.Count -gt 0) {
|
||||||
|
$lines.Add("--- links ---")
|
||||||
|
foreach ($lnk in $links) {
|
||||||
|
$srcDs = $lnk.SelectSingleNode("s:sourceDataSet", $ns).InnerText
|
||||||
|
$dstDs = $lnk.SelectSingleNode("s:destinationDataSet", $ns).InnerText
|
||||||
|
$srcExpr = $lnk.SelectSingleNode("s:sourceExpression", $ns).InnerText
|
||||||
|
$dstExpr = $lnk.SelectSingleNode("s:destinationExpression", $ns).InnerText
|
||||||
|
$paramNode = $lnk.SelectSingleNode("s:parameter", $ns)
|
||||||
|
$paramStr = if ($paramNode) { " param=$($paramNode.InnerText)" } else { "" }
|
||||||
|
$lines.Add(" $srcDs.$srcExpr -> $dstDs.$dstExpr$paramStr")
|
||||||
|
}
|
||||||
|
$lines.Add("")
|
||||||
|
}
|
||||||
|
|
||||||
$dataSets = $root.SelectNodes("s:dataSet", $ns)
|
$dataSets = $root.SelectNodes("s:dataSet", $ns)
|
||||||
|
|
||||||
function Show-DataSetFields($dsNode) {
|
function Show-DataSetFields($dsNode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user