USP_DATAFORMTEMPLATE_EDITLOAD_SETTINGSLOCATIONCLOSED

The load procedure used by the edit dataform template "Sponsorship Settings Location Closed Edit Form"

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@LOCATIONCLOSEMATCHINGCODE tinyint INOUT For matching an opportunity use
@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_SETTINGSLOCATIONCLOSED(
                        @DATALOADED bit = 0 output,
                        @LOCATIONCLOSEMATCHINGCODE tinyint = null output,
                        @TSLONG bigint = 0 output
                    )
                    as
                        set nocount on;

                        select top 1
                            @LOCATIONCLOSEMATCHINGCODE = LOCATIONCLOSEMATCHINGCODE,
                            @DATALOADED = 1,
                            @TSLONG = TSLONG
                        from 
                            dbo.SPONSORSHIPINFO
                        order by DATEADDED

                        return 0;