USP_DATAFORMTEMPLATE_EDITLOAD_DESIGNATIONMAPPING
The load procedure used by the edit dataform template "Designation Mapping 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. |
@DESIGNATIONMAP | xml | INOUT | Designation Mapping |
@NAME | nvarchar(100) | INOUT | Name |
@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_DESIGNATIONMAPPING
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DESIGNATIONMAP xml = null output,
@NAME nvarchar(100) = null output,
@TSLONG bigint = 0 output
)
as
begin
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select @DESIGNATIONMAP = dbo.UFN_DESIGNATION_GETDESIGNATIONMAPPING_TOITEMLISTXML(@ID);
select @NAME = NAME from dbo.DESIGNATIONLEVEL where ID = @ID;
if @NAME = null
set @NAME = '<Unspecified>';
if @DESIGNATIONMAP is not null
begin
set @DATALOADED = 1
select @TSLONG = max(tslong) from dbo.DESIGNATION where DESIGNATIONLEVEL1ID = @ID
end
return 0;
end