USP_DATAFORMTEMPLATE_VIEW_NAMINGOPPORTUNITYRECOGNITIONCOMMENTS

The load procedure used by the view dataform template "Naming Opportunity Recognition Comments View 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.
@DATA nvarchar(max) INOUT Comments

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_NAMINGOPPORTUNITYRECOGNITIONCOMMENTS
                (
                    @ID uniqueidentifier,
                    @DATALOADED bit = 0 output,
                    @DATA nvarchar(max) = null output
                )
                as
                set nocount on;

                select
                    @DATALOADED = 1,
                    @DATA = COMMENTS
                from dbo.NAMINGOPPORTUNITYRECOGNITION
                where ID = @ID;