USP_DATAFORMTEMPLATE_EDITLOAD_OPPORTUNITYAMOUNTBRACKETS

The load procedure used by the edit dataform template "Opportunity Amount Brackets Edit Form"

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@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.
@OPPORTUNITYAMOUNTBRACKETS xml INOUT

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_OPPORTUNITYAMOUNTBRACKETS (
                    @DATALOADED bit = 0 output,
                    @TSLONG bigint = 0 output,
                    @OPPORTUNITYAMOUNTBRACKETS xml = null output
                ) as
                    set nocount on;

                    set @DATALOADED = 1;
                    set @OPPORTUNITYAMOUNTBRACKETS = dbo.UFN_OPPORTUNITYAMOUNTBRACKETS_TOITEMLISTXML();
                    select @TSLONG=max(TSLONG) from dbo.OPPORTUNITYAMOUNTBRACKET;

                    -- TODO:  this should be rewritten to not always return 1 for DATALOADED


                    return 0;