118 nested refs intermed instance_operation

This commit is contained in:
msyu
2025-07-01 14:30:08 +03:00
parent a0bc1476d6
commit 13e1b5cbe5
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -131,6 +131,9 @@
<m:field>sop.man</m:field>
<m:field>sop.sort</m:field>
<m:field>iop.note</m:field>
<m:field>sop.nested_ref</m:field>
<m:field>sop.config::text</m:field>
<m:field>null as nested_ref_data</m:field>
<m:field formatter=#request.castToBool#>sop.is_sensitive</m:field>
</m:field_set>
from svc_operation_cfs_param sop
@@ -159,7 +162,14 @@
<cfif len(trim(local.qCfsParam.value_list)) AND listLen(local.qCfsParam.value_list) EQ 1>
<cfset local.qCfsParam.default_value=local.qCfsParam.value_list/>
</cfif><!--- преобразование к массиву выполняется при финальном форматировании резалтсета --->
</cfif>
<cfelseif len(local.qCfsParam.nested_ref)>
<cfset var args = {
"functionName":"#local.qCfsParam.nested_ref#",
"config":"#local.qCfsParam.config#"
}/>
<cfinvoke component="instance_operation_cfs_param" method="generateClosure" argumentCollection=#args# returnVariable="local.fNestedRef"/>
<cfset local.qCfsParam.nested_ref_data = local.fNestedRef() />
</cfif>
<cfif data_type EQ "map">
<cfinvoke component="instance_operation_cfs_param" method="processMap" qParam=#local.qCfsParam#/>