added LSL2 stored procedures
This commit is contained in:
102
LSL2/STPROC/NDW_MESSAGING_PROCESSOR_EVENTS.txt
Normal file
102
LSL2/STPROC/NDW_MESSAGING_PROCESSOR_EVENTS.txt
Normal file
@ -0,0 +1,102 @@
|
||||
Function NDW_Messaging_Processor_Events(CtrlEntId, Event, @PARAMS)
|
||||
/***********************************************************************************************************************
|
||||
|
||||
This program is proprietary and is not to be used by or disclosed to others, nor is it to be copied without written
|
||||
permission from Infineon.
|
||||
|
||||
Name : NDW_Messaging_Processor_Events
|
||||
|
||||
Description : This function acts as a commuter module for all events related to this window.
|
||||
|
||||
Notes : Commuter Modules are automatically called from the Promoted_Events function which is called by the
|
||||
application-specific promoted event handler. This makes it possible to add QuickEvents that need to
|
||||
execute Basic+ logic without having use the Form Designer to make the association, although this is
|
||||
limited to the events which are currently promoted.
|
||||
|
||||
If the form needs to call the commuter module directly then the QuickEvent parameters should be
|
||||
formatted like this:
|
||||
|
||||
'@SELF','@EVENT',['@PARAM1','@PARAMx']
|
||||
|
||||
Parameters :
|
||||
CtrlEntId [in] -- The fully qualified name of the control calling the promoted event
|
||||
Event [in] -- The event being executed. See the Notes section regarding "PRE" events
|
||||
Param1-15 [in] -- Additional event parameter holders
|
||||
EventFlow [out] -- Set to 1 or 0 so the calling event knows whether or not to chain forward. See comments in
|
||||
EVENT_SETUP insert
|
||||
|
||||
History : (Date, Initials, Notes)
|
||||
06/16/18 dmb Created initial commuter module.
|
||||
|
||||
***********************************************************************************************************************/
|
||||
|
||||
#pragma precomp SRP_PreCompiler
|
||||
#Window NDW_MESSAGING_PROCESSOR
|
||||
|
||||
$insert APP_INSERTS
|
||||
$insert EVENT_SETUP
|
||||
$insert MSG_EQUATES
|
||||
$insert MESSAGING_EQUATES
|
||||
|
||||
// Update the arguments so that the OpenInsight OLE event will treate the ActiveX event as a native event handler.
|
||||
If Event EQ 'OLE' then
|
||||
Transfer Event to OIEvent
|
||||
Transfer Param1 to Event
|
||||
Transfer Param2 to Param1
|
||||
Transfer Param3 to Param2
|
||||
* Transfer Param4 to Param3
|
||||
* Transfer Param5 to Param4
|
||||
* Transfer Param6 to Param5
|
||||
* Transfer Param7 to Param6
|
||||
* Transfer Param8 to Param7
|
||||
end
|
||||
|
||||
GoToEvent Event for CtrlEntID
|
||||
|
||||
Return EventFlow else EVENT_CONTINUE$
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Events
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Event WINDOW.CREATE(CreateParam)
|
||||
|
||||
If @Station[1, 11] EQ 'MESIRWAP001' then
|
||||
* Set_Property(@Window, 'VISIBLE', 1)
|
||||
end
|
||||
|
||||
GoSub Setup_OLE_Controls
|
||||
|
||||
end event
|
||||
|
||||
|
||||
Event OLE_DIRECT_CONNECT.OnMessage(Message, Param2)
|
||||
|
||||
RTP27('MESSAGING_SERVICES')
|
||||
Response = Messaging_Services('ProcessMessage', Message)
|
||||
|
||||
end event
|
||||
|
||||
|
||||
Event OLE_POPUP.OnItemClick(Item)
|
||||
|
||||
Send_Message(CtrlEntId, 'OLE.Close')
|
||||
|
||||
end event
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Internal GoSubs
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Setup_OLE_Controls:
|
||||
|
||||
Ctrl = @Window : '.OLE_DIRECT_CONNECT'
|
||||
Set_Property(Ctrl, 'OLE.Server', Server.Name$ : @FM : Server.Port$ : @FM : Server.KeepAlive$)
|
||||
Send_Message(Ctrl, 'QUALIFY_EVENT', 'OLE.OnMessage', 1)
|
||||
|
||||
Ctrl = @Window : '.OLE_POPUP'
|
||||
Send_Message(Ctrl, 'QUALIFY_EVENT', 'OLE.OnItemClick', 1)
|
||||
|
||||
return
|
Reference in New Issue
Block a user