USP_DATAFORMTEMPLATE_EDITLOAD_EVENTMANAGEMENTTEMPLATE
The load procedure used by the edit dataform template "Event Management Template Edit Data Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@SITEREQUIRED | bit | INOUT | Site required |
@NAME | nvarchar(100) | INOUT | Name |
@SITES | xml | INOUT | Sites |
@LEVELS | xml | INOUT | Levels |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_EVENTMANAGEMENTTEMPLATE(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@CURRENTAPPUSERID uniqueidentifier = null,
@SITEREQUIRED bit = null output,
@NAME nvarchar(100) = null output,
@SITES xml = null output,
@LEVELS xml = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
set @SITEREQUIRED = dbo.UFN_SITEREQUIREDFORUSER(@CURRENTAPPUSERID);
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@NAME = NAME,
@SITES = dbo.UFN_EVENTMANAGEMENTTEMPLATE_GETSITES_TOITEMLISTXML(@ID),
@LEVELS = dbo.UFN_EVENTMANAGEMENTTEMPLATE_GETLEVELS_TOITEMLISTXML(@ID)
from dbo.EVENTMANAGEMENTTEMPLATE
where ID = @ID
return 0;