USP_DATAFORMTEMPLATE_VIEW_CLOSINGELEMENTNAME
The load procedure used by the view dataform template "Closing Requirement Closing Element Name 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. |
@CLOSINGELEMENT | nvarchar(100) | INOUT | Closing Element |
@TRANSACTIONSEXIST | bit | INOUT | Transactions exist |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CLOSINGELEMENTNAME
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CLOSINGELEMENT nvarchar(100) = null output,
@TRANSACTIONSEXIST bit = null output
)
as
set nocount on;
set @DATALOADED = 0;
select @DATALOADED = 1,
@CLOSINGELEMENT = DESCRIPTION
from dbo.PDACCOUNTSTRUCTURE
where CLOSINGELEMENT = 1
and PDACCOUNTSYSTEMID = @ID
select @TRANSACTIONSEXIST = 1 from dbo.JOURNALENTRY;
return 0;