USP_DATAFORM_EDITLOAD_PROSPECTPLAN
The load procedure used by the edit dataform template "Prospect Plan 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. |
@PROSPECT | nvarchar(154) | INOUT | Prospect |
@PROSPECTID | uniqueidentifier | INOUT | |
@PROSPECTPLANTYPECODEID | uniqueidentifier | INOUT | Plan type |
@PROSPECTPLANTYPECODE | nvarchar(100) | INOUT | Status |
@STEPS | xml | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORM_EDITLOAD_PROSPECTPLAN (
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@PROSPECT nvarchar(154) = null output,
@PROSPECTID uniqueidentifier = null output,
@PROSPECTPLANTYPECODEID uniqueidentifier = null output,
@PROSPECTPLANTYPECODE nvarchar(100) = null output,
@STEPS xml = null output
) as begin
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@PROSPECTID = PROSPECTID,
@PROSPECT = NF.NAME,
@PROSPECTPLANTYPECODE = dbo.UFN_PROSPECTPLANTYPECODE_GETDESCRIPTION(PROSPECTPLANTYPECODEID),
@PROSPECTPLANTYPECODEID = PROSPECTPLANTYPECODEID,
@STEPS = dbo.UFN_PROSPECTPLAN_STEPS_TOITEMLISTXML(ID)
from
dbo.PROSPECTPLAN
outer apply dbo.UFN_CONSTITUENT_DISPLAYNAME(PROSPECTID) NF
where
ID = @ID;
return 0;
end;