USP_DATAFORMTEMPLATE_VIEW_RECONCILIATIONPAGEDATA
The load procedure used by the view dataform template "Reconcile Sales Report Page Expression View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@ISCURRENTAPPUSER | bit | INOUT | Is current user |
@STATUSCODE | int | INOUT | Status code |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_RECONCILIATIONPAGEDATA
(
@ID uniqueidentifier,
@CURRENTAPPUSERID uniqueidentifier,
@DATALOADED bit = 0 output,
@ISCURRENTAPPUSER bit = null output,
@STATUSCODE int = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
select @DATALOADED = 1,
@STATUSCODE = STATUSCODE,
@ISCURRENTAPPUSER = case APPUSERID when @CURRENTAPPUSERID then 1 else 0 end
from dbo.RECONCILIATION
where ID = @ID
return 0;