USP_DATAFORMTEMPLATE_EDITLOAD_CLASS_MEETING_TEMPLATE_BYCLASSTEMPLATEID
The load procedure used by the edit dataform template "Class Meeting Template Edit Form (Wrapped)"
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. |
@HEADER | nvarchar(200) | INOUT | |
@TIMETABLEID | uniqueidentifier | INOUT | |
@PATTERNVISIBLE | bit | INOUT | |
@MEETINGS | xml | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_CLASS_MEETING_TEMPLATE_BYCLASSTEMPLATEID
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@HEADER nvarchar(200) = null output,
@TIMETABLEID uniqueidentifier = null output,
@PATTERNVISIBLE bit = null output,
@MEETINGS xml = null output
)
as
set nocount on
declare @CLASSID uniqueidentifier
select @CLASSID = CLASSID
from dbo.CLASSMEETINGTEMPLATE
join dbo.CLASSMEETINGGROUP on CLASSMEETINGGROUP.ID = CLASSMEETINGTEMPLATE.CLASSMEETINGGROUPID
where CLASSMEETINGTEMPLATE.ID = @ID
declare @r int
exec @r = dbo.USP_DATAFORMTEMPLATE_EDITLOAD_CLASS_MEETING_TEMPLATE
@ID = @CLASSID,
@DATALOADED = @DATALOADED output,
@TSLONG = @TSLONG output,
@HEADER = @HEADER output,
@TIMETABLEID = @TIMETABLEID output,
@PATTERNVISIBLE = @PATTERNVISIBLE output,
@MEETINGS = @MEETINGS output
if @@error <> 0
begin
if @r <> 0 return @r
return 1
end
return @r