Quintiq file version 2.0
|
#parent: #root
|
Method New (
|
SalesSegment_MP parentsalessegment,
|
FormSalesSegments formSalesSegments
|
) id:Method_DialogCreateEditSalesSegment_New
|
{
|
#keys: '[135040.0.183105624]'
|
Body:
|
[*
|
// Create a new sales segment
|
// Select an owner
|
owner := MacroPlan;
|
obj := owner.SalesSegment_MP( relshadow, Name := "" ); // Temporary set Name to empty, will be based on user assigned value
|
obj.Parent( relset, parentsalessegment );
|
|
DataHolderForm.Data( formSalesSegments );
|
|
// Set data to dataholder because Form cannot bind to shadow yet
|
DataHolderDialogData.Data( &obj );
|
|
Form.SetDefaultValue();
|
|
ApplicationMacroPlanner.ShowFormModal( this );
|
*]
|
}
|