USP_DATAFORMTEMPLATE_EDITLOAD_SCREENPLAN

The load procedure used by the edit dataform template "Screening Plan Edit Form"

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@ID uniqueidentifier IN The input ID parameter used to load the fields defined on the form.
@NAME nvarchar(50) INOUT Name
@DESCRIPTION nvarchar(255) INOUT Description
@STEPS xml INOUT Steps
@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.

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_SCREENPLAN
                    (
                        @DATALOADED bit = 0 output,
                        @ID uniqueidentifier,
                        @NAME nvarchar(50) = null output,
                        @DESCRIPTION nvarchar(255) = null output,
                        @STEPS xml = null output,
                        @TSLONG bigint = 0 output
                    )
                    as
                        set nocount on;

                        set @DATALOADED = 0;
                        set @TSLONG = 0;

                        select
                            @DATALOADED = 1,
                            @NAME = NAME,
                            @DESCRIPTION = DESCRIPTION,
                            @TSLONG = TSLONG
                        from dbo.SCREENPLAN
                        where ID = @ID;

                        set    @STEPS= dbo.UFN_SCREENPLAN_GETSTEPS_TOITEMLISTXML(@ID)

                        return 0;