Quintiq file version 2.0 #parent: #root Method OnOK () id:Method_DialogCreateEditPriority_OnOK { #keys: '[139394.0.1851570634]' Body: [* // On ok this.ApplyChanges(); data := DataHolderDialogData.Data(); // New if( isnull( data.WrappedInstance() ) ) { Priority::Create( MacroPlan, data.Name(), data.Weight(), false /*isfromdb*/ ); } else { data.WrappedInstance().Update( EditFieldName.Text(), data.Weight(), false /*isfromdb*/ ); } this.Close(); *] }