Quintiq file version 2.0 #parent: #root Method Edit ( internal[GUIComponent] parent, structured[PISPNodeInRouting] selection ) id:Method_DialogCreateEditPISPNodeInRouting_Edit { #keys: '[124808.1.33987999]' Body: [* // Add stocking point from existing PISP linked to operation output // Set components for validate input Dialog.EnableDisableComponents( selection.Size() > 1 ); firstselection := selection.Element( 0 ); operation:= guard( firstselection.OperationInputForRCV().Operation(), firstselection.OperationOutputForRCV().Operation() ); isinput := isnull( firstselection.OperationOutputForRCV() ); Dialog.SetComponentsForValidateInput( operation, isinput ); Dialog.Data( firstselection ); result := this.DoModal( parent ); if( result > 0 ) { if( selection.Size() = 1 ) { firstselection.Update( SelectionProduct.Data(), SelectionStockingPoint.Data() ); } else { PISPNodeInRouting::Update( selection, SelectionStockingPoint.Data() ); } } *] }