yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
  }
}