USP_DATAFORMTEMPLATE_VIEW_SPLIT

The load procedure used by the view dataform template "Revenue Split 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.
@DESIGNATION nvarchar(512) INOUT Designation

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_SPLIT
                (
                    @ID uniqueidentifier,
                    @DATALOADED bit = 0 output,
                    @DESIGNATION nvarchar(512)= null output
                )
                as
                begin
                    set nocount on;

                    set @DATALOADED = 0;

                    select 
                        @DATALOADED = 1,
                        @DESIGNATION = dbo.UFN_DESIGNATION_BUILDNAME(REVENUESPLIT.DESIGNATIONID)
                    from
                        dbo.REVENUESPLIT
                    where
                        REVENUESPLIT.ID = @ID;

                    return 0;
                end