USP_DATAFORMTEMPLATE_EDITLOAD_DESIGNATIONGOAL
The load procedure used by the edit dataform template "Designation Goals 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. |
@DESIGNATIONNAME | nvarchar(512) | INOUT | Designation |
@DESIGNATIONLEVEL1GOALID | uniqueidentifier | INOUT | Name |
@GOAL | money | INOUT | Goal |
@DESIGNATIONID | uniqueidentifier | INOUT | Designation ID |
@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. |
@BASECURRENCYID | uniqueidentifier | INOUT | Currency |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_DESIGNATIONGOAL
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DESIGNATIONNAME nvarchar(512) = null output,
@DESIGNATIONLEVEL1GOALID uniqueidentifier = null output,
@GOAL money = null output,
@DESIGNATIONID uniqueidentifier = null output,
@TSLONG bigint = 0 output,
@BASECURRENCYID uniqueidentifier = null output
)
as
begin
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DESIGNATIONID = DESIGNATIONGOAL.DESIGNATIONID,
@DESIGNATIONNAME = dbo.UFN_DESIGNATION_BUILDNAME(DESIGNATIONGOAL.DESIGNATIONID),
@DESIGNATIONLEVEL1GOALID = DESIGNATIONGOAL.DESIGNATIONLEVELGOALID,
@GOAL = DESIGNATIONGOAL.GOAL,
@DATALOADED = 1,
@TSLONG = DESIGNATIONGOAL.TSLONG,
@BASECURRENCYID = DESIGNATIONGOAL.BASECURRENCYID
from
dbo.DESIGNATIONGOAL
where
DESIGNATIONGOAL.ID = @ID;
return 0;
end