USP_DATAFORMTEMPLATE_EDITLOAD_PDACCOUNTSEGMENTMAPBATCHROW2

The load procedure used by the edit dataform template "Account Segment Mapping Batch Row Edit Form by system"

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
@PDACCOUNTSYSTEMID uniqueidentifier INOUT Account system
@SEQUENCE int INOUT Sequence

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PDACCOUNTSEGMENTMAPBATCHROW2(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @TSLONG bigint = 0 output,
    @LONGDESCRIPTIONID uniqueidentifier = null output,
    @PDACCOUNTSTRUCTUREID uniqueidentifier = null output,
    @PDACCOUNTSEGMENTVALUEID uniqueidentifier = null output,
    @PDACCOUNTSYSTEMID uniqueidentifier = null output,
    @SEQUENCE int = null output
)
as

    set nocount on;

    set @DATALOADED = 1
    set @TSLONG = 1

    select
        @DATALOADED = 1,
        @TSLONG = b.TSLONG,
        @PDACCOUNTSTRUCTUREID = b.PDACCOUNTSTRUCTUREID,
        @LONGDESCRIPTIONID = b.LONGDESCRIPTIONID,
        @PDACCOUNTSEGMENTVALUEID = b.PDACCOUNTSEGMENTVALUEID,
        @PDACCOUNTSYSTEMID = s.PDACCOUNTSYSTEMID,
        @SEQUENCE = b.SEQUENCE
    from dbo.BATCHPDACCOUNTSEGMENTMAPPING as b
    inner join PDACCOUNTSTRUCTURE as s on b.PDACCOUNTSTRUCTUREID = s.ID
    where b.ID = @ID

    return 0;