USP_DATAFORMTEMPLATE_VIEW_CONDITIONSETTING

The load procedure used by the view dataform template "Condition Setting Globals View Form"

Parameters

Parameter Parameter Type Mode Description
@ID nvarchar(50) 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.
@CONDITIONEXISTS bit INOUT Consition exists

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CONDITIONSETTING
                (
                    @ID nvarchar(50),  --@ID will be the name of the condition, not its guid.

                    @DATALOADED bit = 0 output,
                    @CONDITIONEXISTS bit = null output
                )
                as
                    set nocount on;

                    set @DATALOADED = 1;
                    set @CONDITIONEXISTS = 0;

                    select 
                        @CONDITIONEXISTS = 1
                    from 
                        dbo.CONDITIONSETTING
                    where 
                        NAME = @ID

                    return 0;