USP_DATAFORMTEMPLATE_EDITLOAD_EVENTAPPEALS
The load procedure used by the edit dataform template "Event Appeals 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. |
| @APPEALS | xml | INOUT | Appeals |
| @CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
| @APPUSERBASECURRENCYID | uniqueidentifier | INOUT | Current app user base currency ID |
| @EVENTBASECURRENCYID | uniqueidentifier | INOUT | Event Base Currency ID |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_EVENTAPPEALS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@APPEALS xml = null output,
@CURRENTAPPUSERID uniqueidentifier = null,
@APPUSERBASECURRENCYID uniqueidentifier = null output,
@EVENTBASECURRENCYID uniqueidentifier = null output
) as
set nocount on;
select
@DATALOADED = 1,
@APPEALS = dbo.UFN_EVENT_GETAPPEALSWITHRECORDSECURITY_TOITEMLISTXML(@ID, '4C220F26-7903-4EA6-B9AB-8609CA77EB76', @CURRENTAPPUSERID, dbo.UFN_APPUSER_ISSYSADMIN(@CURRENTAPPUSERID))
from
dbo.EVENT
where
EVENT.ID = @ID
set @APPUSERBASECURRENCYID = dbo.UFN_APPUSER_GETBASECURRENCY(@CURRENTAPPUSERID);
select
@EVENTBASECURRENCYID = BASECURRENCYID
from
dbo.EVENT
where
ID = @ID;
return 0;