mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-11 16:34:57 +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:
@@ -646,6 +646,22 @@ elseif ($Mode -eq "query") {
|
||||
# ============================================================
|
||||
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)
|
||||
|
||||
function Show-DataSetFields($dsNode) {
|
||||
|
||||
Reference in New Issue
Block a user