USP_DATAFORM_EDITLOAD_SOLICITCODE
The load procedure used by the edit dataform template "Solicit Code Edit Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@DESCRIPTION | nvarchar(100) | INOUT | Name |
@EXCLUSIONCODE | tinyint | INOUT | Type |
@SITEID | uniqueidentifier | INOUT | Site |
@SITEREQUIRED | bit | INOUT | Site Required |
@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. |
@CONSENTCODE | tinyint | INOUT | |
@SOLICITCODECHANNELCODE | tinyint | INOUT | |
@COMMENTS | nvarchar(255) | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORM_EDITLOAD_SOLICITCODE (
@ID uniqueidentifier,
@CURRENTAPPUSERID uniqueidentifier,
@DATALOADED bit = 0 output,
@DESCRIPTION nvarchar(100) = null output,
@EXCLUSIONCODE tinyint = null output,
@SITEID uniqueidentifier = null output,
@SITEREQUIRED bit=null output,
@TSLONG bigint = 0 output,
@CONSENTCODE tinyint = null output,
@SOLICITCODECHANNELCODE tinyint = null output,
@COMMENTS nvarchar(255) = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@DESCRIPTION = SOLICITCODE.DESCRIPTION,
@EXCLUSIONCODE = SOLICITCODE.EXCLUSIONCODE,
@SITEID = SOLICITCODE.SITEID,
@SITEREQUIRED = dbo.UFN_SITEREQUIREDFORUSER(@CURRENTAPPUSERID),
@TSLONG = SOLICITCODE.TSLONG,
@CONSENTCODE = SOLICITCODE.CONSENTCODE,
@SOLICITCODECHANNELCODE = SOLICITCODE.SOLICITCODECHANNELCODE,
@COMMENTS = SOLICITCODE.COMMENTS
from
dbo.SOLICITCODE
where
SOLICITCODE.ID = @ID;
return 0;