USP_DATAFORMTEMPLATE_VIEW_TRIBUTEINFO
The load procedure used by the view dataform template "Tribute Info 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 | Designation ID |
@DESIGNATIONUSERID | nvarchar(512) | INOUT | Designation user ID |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_TRIBUTEINFO
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DESIGNATIONID uniqueidentifier = null output,
@DESIGNATIONUSERID nvarchar(512) = null output
)
as
set nocount on;
set @DATALOADED = 0;
select @DATALOADED = 1,
@DESIGNATIONID = DESIGNATIONID,
@DESIGNATIONUSERID = DESIGNATION.USERID
from dbo.TRIBUTE
left join dbo.DESIGNATION on TRIBUTE.DESIGNATIONID = DESIGNATION.ID
where TRIBUTE.ID = @ID
return 0;