USP_DATAFORMTEMPLATE_VIEW_RE7INTEGRATION_RESEARCHGROUP_PROPERTIES
The load procedure used by the view dataform template "RE7 Integration Research Group Properties View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@RESEARCHGROUPNAME | nvarchar(150) | INOUT | Research Group Name |
@APPUSERNAME | nvarchar(150) | INOUT | App User Name |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_RE7INTEGRATION_RESEARCHGROUP_PROPERTIES
(
@ID uniqueidentifier,
@CURRENTAPPUSERID uniqueidentifier,
@DATALOADED bit = 0 output,
@RESEARCHGROUPNAME nvarchar(150) = null output,
@APPUSERNAME nvarchar(150) = null output
)
as
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@RESEARCHGROUPNAME = RG.NAME
from
dbo.RESEARCHGROUP RG
where
RG.ID = @ID;
select
@APPUSERNAME = APPUSER.USERNAME
from
dbo.APPUSER
where
APPUSER.ID = @CURRENTAPPUSERID;
return 0;