USP_DATAFORMTEMPLATE_VIEW_OTHERASSET

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

Definition

Copy


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

                    set nocount on;

                    set @DATALOADED = 0;

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

                    return 0;

                end;