USP_DATAFORMTEMPLATE_VIEW_DESIGNATIONGOALDESIGNATIONINFO
The load procedure used by the view dataform template "Designation Goal Designation View 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. |
@DESIGNATIONID | uniqueidentifier | INOUT | Level ID |
@DESIGNATIONNAME | nvarchar(100) | INOUT | Level Name |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_DESIGNATIONGOALDESIGNATIONINFO
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DESIGNATIONID uniqueidentifier=null output,
@DESIGNATIONNAME nvarchar(100)=null output
)
as
begin
select
@DATALOADED = 1,
@DESIGNATIONID=d.ID,
@DESIGNATIONNAME=d.USERID
from dbo.DESIGNATION d
inner join dbo.DESIGNATIONGOAL dg on dg.DESIGNATIONID=d.ID
where
dg.ID=@ID
end