Quintiq file version 2.0
|
#parent: ListEntityTreeInPanel
|
Response OnUserSelectionChanged (
|
structured[Entity] selection
|
) id:Response_ListEntityTreeInPanel_OnUserSelectionChanged_607
|
{
|
#keys: '[127710.1.1014109807]'
|
Body:
|
[*
|
// Highligh response for entities
|
|
// turn on persistant filtering
|
ApplicationLibMacroPlanner.SetPersistantFilter( true );
|
|
nodes := selectset( MacroPlan,
|
ViewBase.Node,
|
n,
|
n.istype( UnitNode ) or n.istype( StockingPointNode ),
|
exists( selection, Elements, e, e.DisplayName() = n.Name(), true )
|
);
|
ApplicationLibMacroPlanner.SupplyChainDiagramHighlightedObject( nodes );
|
|
|
// Set detail panel for some filtering
|
sps := selectset( selection, Elements.astype( StockingPoint_MP ), sp, true, true );
|
units := selectset( selection, Elements.astype( Unit ), u, true, true );
|
|
DataHolderStockingPoints.Data( sps.Copy() );
|
DataHolderUnits.Data( units.Copy() );
|
|
// Automatically expand the first level on the capacity planning gantt chart
|
DataHolderShowChildOfUnit.Data( units.Copy() );
|
*]
|
CanBindMultiple: false
|
DefinitionID: 'Responsedef_List_OnUserSelectionChanged'
|
}
|