USP_DATAFORMTEMPLATE_EDITLOAD_ORGANIZATIONHIERARCHYPOSITIONEDIT
The load procedure used by the edit dataform template "Organization Hierarchy Position 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. |
@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. |
@NAME | nvarchar(50) | INOUT | Position title |
@SITEID | uniqueidentifier | INOUT | Site |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@SITEREQUIRED | bit | INOUT | Site Required |
@BUSINESSUNITCODEID | uniqueidentifier | INOUT | Business unit |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_ORGANIZATIONHIERARCHYPOSITIONEDIT
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@NAME nvarchar(50) = null output,
@SITEID uniqueidentifier = null output,
@CURRENTAPPUSERID uniqueidentifier,
@SITEREQUIRED bit = null output,
@BUSINESSUNITCODEID uniqueidentifier = null output
)
as
begin
set nocount on;
select
@NAME = NAME,
@SITEID = SITEID,
@BUSINESSUNITCODEID = BUSINESSUNITCODEID,
@DATALOADED = 1,
@TSLONG = TSLONG
from dbo.ORGANIZATIONPOSITION
where ID = @ID
set @SITEREQUIRED = dbo.UFN_SITEREQUIREDFORUSER(@CURRENTAPPUSERID);
return 0;
end