USP_DATAFORMTEMPLATE_EDITLOAD_PDACCOUNTSEGMENTMAPBATCHROW
The load procedure used by the edit dataform template "Account Segment Mapping Batch Row 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. |
@LONGDESCRIPTIONID | uniqueidentifier | INOUT | Segment name |
@PDACCOUNTSTRUCTUREID | uniqueidentifier | INOUT | Segment type |
@PDACCOUNTSEGMENTVALUEID | uniqueidentifier | INOUT | Segment value |
@SEQUENCE | int | INOUT | Sequence |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PDACCOUNTSEGMENTMAPBATCHROW(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@LONGDESCRIPTIONID uniqueidentifier = null output,
@PDACCOUNTSTRUCTUREID uniqueidentifier = null output,
@PDACCOUNTSEGMENTVALUEID uniqueidentifier = null output,
@SEQUENCE int = null output
)
as
set nocount on;
set @DATALOADED = 1
set @TSLONG = 1
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@PDACCOUNTSTRUCTUREID = PDACCOUNTSTRUCTUREID,
@LONGDESCRIPTIONID = LONGDESCRIPTIONID,
@PDACCOUNTSEGMENTVALUEID = PDACCOUNTSEGMENTVALUEID,
@SEQUENCE = SEQUENCE
from dbo.BATCHPDACCOUNTSEGMENTMAPPING
where ID = @ID
return 0;