Quintiq file version 2.0 #parent: #root Method Copy ( structured[AccountCost] accountCosts, FormTransportationCosts formTransportationCosts ) id:Method_DialogCreateEditTransportationCost_Copy { #keys: '[145730.1.949307211]' Body: [* // Copy account cost laneLegCost := accountCosts.First().astype( LaneLegCost ); shadowCost := shadow( laneLegCost ); shadowCost.ResetWrapped(); shadowCost.ID( MacroPlan.IDHolder().GetLaneLegCostID() ); // Set dialog data DataHolderDialogData.Data( &shadowCost ); DataHolderForm.Data( formTransportationCosts ); DataHolderFormLaneLeg.Data( this.SetLaneLeg( laneLegCost.LaneLeg() ) ); // Initialize dialog this.Initialize(); *] }