USP_DATAFORMTEMPLATE_VIEW_PARTIALINFORMATIONSEARCHBUSINESSOWNERSHIPBIODETAILSUMMARY

The load procedure used by the view dataform template "Prospect Quick Search Business Ownership Detail Bio Summary 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.
@BIONAME nvarchar(100) INOUT Name
@BIO nvarchar(max) INOUT Biography

Definition

Copy

                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_PARTIALINFORMATIONSEARCHBUSINESSOWNERSHIPBIODETAILSUMMARY
                (
                    @ID uniqueidentifier,
                    @DATALOADED bit = 0 output,
                    @BIONAME nvarchar(100) = null output,
                    @BIO nvarchar(max) = null output
                )
                as
                    set nocount on;

                    -- be sure to set this, in case the select returns no rows
                    set @DATALOADED = 0;

                    select
                        @DATALOADED = 1,
                        @BIONAME = BIOS.NAME,
                        @BIO = BIOS.BIO
                    from 
                        dbo.PARTIALINFORMATIONSEARCHRESULT_BUSINESSOWNERSHIPDETAIL_BIOS BIOS
                    where 
                        BIOS.ID = @ID


                    return 0;