USP_DATAFORMTEMPLATE_ADD_EVENTNOTE_PRELOAD
The load procedure used by the edit dataform template "Event Note Add Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@AUTHORID | uniqueidentifier | INOUT | Author |
@EVENTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@CONTEXTTYPE | int | INOUT | Context type |
@SELECTEDEVENTID | uniqueidentifier | INOUT | Event |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_EVENTNOTE_PRELOAD
(
@CURRENTAPPUSERID uniqueidentifier,
@AUTHORID uniqueidentifier = null output,
@EVENTID uniqueidentifier,
@CONTEXTTYPE int = null output,
@SELECTEDEVENTID uniqueidentifier = null output
)
as
set nocount on;
select top 1
@AUTHORID = CONSTITUENTID
from
dbo.APPUSER
where
ID = @CURRENTAPPUSERID;
set @CONTEXTTYPE = 5;
set @SELECTEDEVENTID = @EVENTID;
return 0;