yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Quintiq file version 2.0
#parent: #root
StaticMethod NameToPath (
  String prefix,
  NamedValue nv,
  String path,
  String valuerep,
  LibOpt_BT_TrackingTableColumn column,
  NamedValueTree nvt
)
{
  Description:
  [*
    Recursively search through the children nodes of a NamedValueTree starting from the root node "nv" and find the Node corresponding to the "path" argument,
    then set the value of the NamedValue node to the "valuerep" argument provided using the `LibOpt_BT_TrackingTableBase::ApplySettingsToNamedValue( nvt, column, nv )` method.
  *]
  TextBody:
  [*
    // tbe7 Sep-15-2020 (created)
    prefix := prefix + nv.Name();
    if( prefix = path )
    {
      LibOpt_BT_TrackingTableBase::ApplySettingsToNamedValue( nvt, column, nv );
    }
    if( nv.Children().Size() > 0 )
    {
      prefix := ifexpr( nv.Name() = '', prefix, prefix + '.' );
      traverse( nv.Children(), Elements, child )
      {
        LibOpt_Utility::NameToPath( prefix, child, path, valuerep, column, nvt );
      }
    }
  *]
  InterfaceProperties { Accessibility: 'Module' }
}