admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Quintiq file version 2.0
#parent: #root
Method SendData (LibDEF_System target_i, NamedValueTree nvt_i, String messageKind_i, 
  LibDEF_IntegrationEvent event_i, String channelName_i, Number channelMajorVersion_i, 
  Number channelMinorVersion_i)
{
  Description: 'Send the data-message to the destination, add all the mandatory headers when sending actual data.'
  TextBody:
  [*
    // Jacky CHAN Jun-6-2016 (created)
    // add mandatory headers
    LibDEF_DataAccessor::SetDataHeaderProperty( nvt_i, LibDEF_DataAccessor::HEADER_CHANNELNAME(),         channelName_i );
    LibDEF_DataAccessor::SetDataHeaderProperty( nvt_i, LibDEF_DataAccessor::HEADER_CHANNELMAJORVERSION(), channelMajorVersion_i );
    LibDEF_DataAccessor::SetDataHeaderProperty( nvt_i, LibDEF_DataAccessor::HEADER_CHANNELMINORVERSION(), channelMinorVersion_i );
    
    this.SendMessage( target_i, nvt_i, messageKind_i, event_i );
  *]
}