USP_DATAFORMTEMPLATE_EDITLOAD_PATTERNBLOCK_BYMEETING

The load procedure used by the edit dataform template "Pattern Block Edit Data 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.
@NAME nvarchar(100) INOUT Block
@PATTERNID uniqueidentifier INOUT
@TIMETABLEID uniqueidentifier INOUT
@USEPERIODS bit INOUT USEPERIODS
@MEETINGS xml INOUT Meetings
@COLORSTYLE int INOUT Color
@INUSE bit INOUT

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PATTERNBLOCK_BYMEETING 
                    (
                        @ID uniqueidentifier,
                        @DATALOADED bit = 0 output,
                        @TSLONG bigint = 0 output,
                        @NAME nvarchar(100) = null output,
                        @PATTERNID uniqueidentifier = null output,
                        @TIMETABLEID uniqueidentifier = null output,
                        @USEPERIODS bit = null output,
                        @MEETINGS xml = null output,
                        @COLORSTYLE int = null output,
                        @INUSE bit = null output
                    )
                    as

                    set nocount on

                    declare @PATTERNBLOCKID uniqueidentifier
                    select @PATTERNBLOCKID = PATTERNBLOCKID
                    from
                        PATTERNBLOCKMEETING
                    where
                        ID = @ID

                    declare @r int
                    exec @r = dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PATTERNBLOCK 
                      @ID = @PATTERNBLOCKID
                      @DATALOADED = @DATALOADED output
                      @TSLONG = @TSLONG output
                      @NAME = @NAME output
                      @PATTERNID = @PATTERNID output
                      @TIMETABLEID = @TIMETABLEID output,
                      @USEPERIODS = @USEPERIODS output
                      @MEETINGS = @MEETINGS output
                      @COLORSTYLE = @COLORSTYLE output,
                      @INUSE = @INUSE output

                    if @@error <> 0 
                        begin
                            if @r <> 0 return @r
                            return 1
                        end

                    return @r