Quintiq file version 2.0
|
#parent: pnlCategory/ddlCategory
|
Response OnCreated () id:Response_pnlCategory_ddlCategory_OnCreated
|
{
|
#keys: '[131094.1.1191181196]'
|
CanBindMultiple: false
|
DefinitionID: 'Responsedef_WebComponent_OnCreated'
|
QuillAction
|
{
|
Body:
|
[*
|
// Set the BoundValue to the category of the event, or the general event for new events.
|
// It needs to be done explicitly here, because for new events data binding doesn't work yet.
|
category := dhEvent.Data().EventCategory();
|
if( isnull( category ) )
|
{
|
category := dhEvent.Data().Calendar().CalendarRegistry().GetGeneralEventCategory();
|
}
|
|
this.Data( category );
|
*]
|
GroupServerCalls: false
|
}
|
}
|