USP_DATAFORMTEMPLATE_VIEW_NAMINGOPPORTUNITY_QUANTITYAVAILABLE

The load procedure used by the view dataform template "Naming Opportunity Quantity Available 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.
@AVAILABLE int INOUT Quantity Available

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_NAMINGOPPORTUNITY_QUANTITYAVAILABLE
                (
                    @ID uniqueidentifier,
                    @DATALOADED bit = 0 output,
                    @AVAILABLE int = null output
                )
                as
                set nocount on;

                select
                    @DATALOADED = 1,
                    @AVAILABLE = REMAINING 
                from dbo.NAMINGOPPORTUNITY
                where ID = @ID;