USP_DATAFORMTEMPLATE_EDITLOAD_CONSTITUENTNOTE
The load procedure used by the edit dataform template "Constituent Note Edit 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. |
@DATEENTERED | datetime | INOUT | Date |
@TITLE | nvarchar(50) | INOUT | Title |
@AUTHORID | uniqueidentifier | INOUT | Author |
@TEXTNOTE | nvarchar(max) | INOUT | Notes |
@NOTETYPECODEID | uniqueidentifier | INOUT | Type |
@CONTEXTTYPE | smallint | INOUT | Context type |
@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_CONSTITUENTNOTE
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DATEENTERED datetime = null output,
@TITLE nvarchar(50) = null output,
@AUTHORID uniqueidentifier = null output,
@TEXTNOTE nvarchar(max) = null output,
@NOTETYPECODEID uniqueidentifier = null output,
@CONTEXTTYPE smallint = null output,
@TSLONG bigint = 0 output
)
as
set nocount on;
set @CONTEXTTYPE = 0; --constituent
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@DATEENTERED=[DATEENTERED],
@TITLE=[TITLE],
@AUTHORID=[AUTHORID],
@TEXTNOTE=[TEXTNOTE],
@NOTETYPECODEID=[CONSTITUENTNOTETYPECODEID],
@TSLONG=[TSLONG]
from
dbo.[CONSTITUENTNOTE]
where
[ID] = @ID;
return 0;