Advertisement
bluebunny72

ILC_ApplyLicense event

Feb 17th, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 1.56 KB | None | 0 0
  1. -- EVENT: ILC_ApplyLicense
  2. IF NOT EXISTS (SELECT TOP 1 1 FROM Event WHERE EventName = 'ILC_ApplyLicense')
  3.     INSERT INTO Event ([EventName], [AccessAs], [NoteExistsFlag], [RowPointer], [InWorkflow], [IsFrameworkEvent], [IsFrameworkIDOEvent], [IsFrameworkIDOSuspendableEvent], [Description], [EventHasChanged])
  4.     VALUES ('ILC_ApplyLicense', NULL, 0, '39c656b8-7f23-49f5-814c-caed3e655ee7', 0, 0, 0, 0, NULL, 0)
  5.  
  6. IF NOT EXISTS (SELECT TOP 1 1 FROM EventHandler WHERE EventName = 'ILC_ApplyLicense' AND RowPointer = '81107B57-FEFC-4798-9AB5-4CC4D01596F8')
  7.     INSERT INTO EventHandler (EventName, Sequence, AppliesToObjects, Synchronous, Transactional, IgnoreFailure, Overridable, Active, Obsolete, Suspend, Description, RowPointer)
  8.     VALUES (
  9.     --EventName
  10.      'ILC_ApplyLicense'
  11.     --Sequence
  12.     ,1
  13.     --AppliesToObjects
  14.     ,NULL
  15.     --Synchronous
  16.     ,0
  17.     --Transactional
  18.     ,0
  19.     --IgnoreFailure
  20.     ,0
  21.     --Overridable
  22.     ,1
  23.     --Active
  24.     ,1
  25.     --Obsolete
  26.     ,0
  27.     --Suspend
  28.     ,0
  29.     --Description
  30.     ,NULL
  31.     --RowPointer
  32.     ,'81107B57-FEFC-4798-9AB5-4CC4D01596F8')
  33.  
  34. IF NOT EXISTS (SELECT TOP 1 1 FROM EventAction WHERE RowPointer = '47E1C255-E9CC-462D-9B57-83281589D55F')
  35.     INSERT INTO EventAction (EventHandlerRowPointer, Sequence, ActionType, Parameters, Description, RowPointer)
  36.     VALUES (
  37.     --EventHandlerRowPointer
  38.      '81107B57-FEFC-4798-9AB5-4CC4D01596F8'
  39.     --Sequence
  40.     ,10
  41.     --ActionType
  42.     ,21
  43.     --Parameters
  44.     ,'IDO("Licenses")
  45. METHOD("ApplyLicense")
  46. PARMS(E(LicenseDocument), RE(Infobar))
  47. RESULT(E(Infobar))'
  48.     --Description
  49.     ,NULL
  50.     --RowPointer
  51.     ,'47E1C255-E9CC-462D-9B57-83281589D55F')
  52.  
  53. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement