Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ShowFormInventorySupplies ( 
 | 
  structured[ProductInStockingPointInPeriod] selection, 
 | 
  Boolean createdialog 
 | 
) id:Method_ApplicationLibMacroPlanner_ShowFormInventorySupplies 
 | 
{ 
 | 
  #keys: '[124808.0.492704358]' 
 | 
  Body: 
 | 
  [* 
 | 
    //show inventory supplies 
 | 
    // Update DataHolderProductInSPIP and Show inventory supplies 
 | 
    DataHolderProductInSPIP.Data( selection.Copy() ); 
 | 
    form := Application.Frame().FindChildObject( 'FormInventorySupplies' ).astype( FormInventorySupplies ); 
 | 
     
 | 
    if( createdialog ) 
 | 
    { 
 | 
      if( isnull( form ) ) 
 | 
      { 
 | 
          newform := construct( FormInventorySupplies  ); 
 | 
          ApplicationLibMacroPlanner.ActiveWindow().Frame().ShowForm( &newform ); 
 | 
      }  
 | 
      else 
 | 
      { 
 | 
        form.SetFocus(); 
 | 
      } 
 | 
    } 
 | 
  *] 
 | 
} 
 |