haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Quintiq file version 2.0
#parent: ValueHolderSetDataHolderSelectedPISPIPExtractor
Response OnValueChanged () id:Response_ApplicationLibMacroPlanner_ValueHolderSetDataHolderSelectedPISPIPExtractor_OnValueChanged
{
  #keys: '[132894.0.1007082858]'
  Body:
  [*
    // Update the value
    // The purpose of this ValueHolder is to switch Supply chain visualization control between node and product planning matrix
    // When the user double click on a node, the supply chain visualization will only display the pispip of the selected node
    // When user refreshes to revert the control back to the product planning matrix, the supply chain visualization will then
    // display the selected pispip in the matrix
    frm := Application.Frame().FindChildObject( typeof( FormSupplyChainVisualization ).Name() ).astype( FormSupplyChainVisualization );
    if( not isnull( frm ) )
    {
      frm.DataHolderDisplayPISPIP().SetDataExtractorState( frm.GUIDataExtractorLeafPISPIP(),
                                                           ValueHolderSetDataHolderSelectedPISPIPExtractor.Data() )
      frm.DataHolderDisplayPISPIP().SetDataExtractorState( frm.GUIDataExtractorFocusedPISPIP(),
                                                           not ValueHolderSetDataHolderSelectedPISPIPExtractor.Data() )
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_ValueHolder_OnValueChanged'
}