USP_DATAFORMTEMPLATE_EDITLOAD_PROSPECTFUNDINGINTEREST
The load procedure used by the edit dataform template "Prospect Funding Interest 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. |
@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. |
@FUNDINGTYPECODEID | uniqueidentifier | INOUT | Funding type |
@INTERESTLEVELCODE | tinyint | INOUT | Level of interest |
@COMMENT | nvarchar(max) | INOUT | Comments |
@SITES | xml | INOUT | Sites |
@CURRENTAPPUSERID | uniqueidentifier | IN | |
@SITEREQUIRED | bit | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PROSPECTFUNDINGINTEREST (
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@FUNDINGTYPECODEID uniqueidentifier = null output,
@INTERESTLEVELCODE tinyint = null output,
@COMMENT nvarchar(max) = null output,
@SITES xml = null output,
@CURRENTAPPUSERID uniqueidentifier = null,
@SITEREQUIRED bit = null output
) as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@FUNDINGTYPECODEID = FUNDINGTYPECODEID,
@INTERESTLEVELCODE = INTERESTLEVELCODE,
@COMMENT = COMMENT,
@SITES = dbo.UFN_PROSPECTFUNDINGINTEREST_GETSITES_TOITEMLISTXML(@ID),
@SITEREQUIRED = dbo.UFN_SITEREQUIREDFORUSER(@CURRENTAPPUSERID)
from
dbo.PROSPECTFUNDINGINTEREST
where
ID = @ID;
return 0;