USP_DATAFORMTEMPLATE_VIEW_CONSTITUENTFIRSTNAMELASTNAME
The load procedure used by the view dataform template "Constituent First Name Last Name 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. | 
| @FIRSTNAME | nvarchar(50) | INOUT | First name | 
| @KEYNAME | nvarchar(100) | INOUT | Last name | 
Definition
 Copy 
                                    
                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CONSTITUENTFIRSTNAMELASTNAME
                (
                    @ID uniqueidentifier,    
                    @DATALOADED bit = 0 output,
                    @FIRSTNAME nvarchar(50) = null output,
                    @KEYNAME nvarchar(100) = null output
                )
                as
                    set nocount on;
                    select 
                        @FIRSTNAME = FIRSTNAME,
                        @KEYNAME = KEYNAME,
                        @DATALOADED = 1
                    from 
                        dbo.CONSTITUENT
                    where 
                        ID = @ID;
                    return 0;