USP_DATAFORMTEMPLATE_EDITLOAD_PROSPECTPLANNOTE_2
The load procedure used by the edit dataform template "Prospect Plan Note Edit Form 2"
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. |
| @HTMLNOTE | nvarchar(max) | INOUT | Notes |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PROSPECTPLANNOTE_2
(
@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,
@HTMLNOTE nvarchar(max) = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
set @CONTEXTTYPE = 4; --prospect plan
select
@DATALOADED = 1,
@DATEENTERED=[DATEENTERED],
@TITLE=[TITLE],
@AUTHORID=[AUTHORID],
@TEXTNOTE=[TEXTNOTE],
@NOTETYPECODEID=[PROSPECTPLANNOTETYPECODEID],
@HTMLNOTE = [HTMLNOTE],
@TSLONG=[TSLONG]
from
dbo.[PROSPECTPLANNOTE]
where
[ID] = @ID;
return 0;