DATAFORMTEMPLATE_VIEW_GRANTORFROMGRANT
The load procedure used by the view dataform template "Grantor From Grant View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@GRANTORNAME | nvarchar(150) | INOUT | Grantor |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@TRANSACTIONCURRENCYID | uniqueidentifier | INOUT | Currency |
Definition
Copy
CREATE procedure dbo.DATAFORMTEMPLATE_VIEW_GRANTORFROMGRANT
(
@ID uniqueidentifier,
@GRANTORNAME nvarchar(150) = null output,
@DATALOADED bit = 0 output,
@TRANSACTIONCURRENCYID uniqueidentifier = null output
)
as
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@GRANTORNAME = dbo.UFN_CONSTITUENT_BUILDNAME(GRANTS.GRANTORID),
@TRANSACTIONCURRENCYID = GRANTS.TRANSACTIONCURRENCYID
from
dbo.GRANTS
where
GRANTS.ID = @ID
return 0;