USP_DATAFORMTEMPLATE_EDITLOAD_OTHERASSET

The load procedure used by the edit dataform template "WealthPoint Other Asset 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.
@SOURCE nvarchar(100) INOUT Source
@DESCRIPTION nvarchar(100) INOUT Description
@VALUE money INOUT Value
@NOTES nvarchar(1024) INOUT Notes

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_OTHERASSET (
                        @ID uniqueidentifier,
                        @DATALOADED bit = 0 output,
                        @TSLONG bigint = 0 output,
                        @SOURCE nvarchar(100) = null output,
                        @DESCRIPTION nvarchar(100) = null output,
                        @VALUE money = null output,
                        @NOTES nvarchar(1024) = null output
                    ) as begin

                        set nocount on;

                        set @DATALOADED = 0;
                        set @TSLONG = 0;

                        select 
                            @DATALOADED = 1,
                            @TSLONG = TSLONG,
                            @SOURCE = SOURCE,
                            @DESCRIPTION = DESCRIPTION,
                            @VALUE = VALUE,
                            @NOTES = NOTES
                        from
                            dbo.WPOTHERASSET
                        where
                            ID=@ID;

                        return 0;

                    end;