USP_DATAFORMTEMPLATE_EDITLOAD_SYSTEMROLE_CONSTIT_SECURITY_RINGFENCE
The load procedure used by the edit dataform template "System Role Constituent Security Group 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. |
@CONSTIT_SECURITY_RINGFENCEID | uniqueidentifier | INOUT | Group |
@RECORDSECURITYMODE | bit | INOUT | Record Security Mode |
@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. |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_SYSTEMROLE_CONSTIT_SECURITY_RINGFENCE
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CONSTIT_SECURITY_RINGFENCEID uniqueidentifier = null output,
@RECORDSECURITYMODE bit = null output,
@TSLONG bigint = 0 output
) as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@CONSTIT_SECURITY_RINGFENCEID = SRCSR.[CONSTIT_SECURITY_ATTRIBUTEID],
@RECORDSECURITYMODE = CASE WHEN SRCSR.CONSTIT_SECURITY_ATTRIBUTEID IS NOT NULL THEN 0 ELSE SR.RECORDSECURITYMODE END,
@TSLONG = SRCSR.[TSLONG]
from
dbo.[SYSTEMROLE] SR
left join
dbo.[SYSTEMROLE_CONSTIT_SECURITY_ATTRIBUTE] SRCSR
on
SRCSR.[ID] = SR.[ID]
where
SR.[ID] = @ID;
return 0;