USP_DATAFORMTEMPLATE_EDITLOAD_PROSPECTALERTAPPUSERSETTINGS
The load procedure used by the edit dataform template "Prospect Alert Application User Settings Edit Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@ALERTWHENMANAGERONPROSPECT | bit | INOUT | Send me an alert when I am assigned as the prospect manager on a prospect |
@ALERTWHENPRIMARYONPLAN | bit | INOUT | Send me an alert when I am assigned as the primary manager on a prospect plan |
@ALERTWHENSECONDARYONPLAN | bit | INOUT | Send me an alert when I am assigned as the secondary manager on a prospect plan |
@EMAILADDRESS | UDT_EMAILADDRESS | INOUT | Send email alerts to |
@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. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PROSPECTALERTAPPUSERSETTINGS (
@ID uniqueidentifier,
@ALERTWHENMANAGERONPROSPECT bit = null output,
@ALERTWHENPRIMARYONPLAN bit = null output,
@ALERTWHENSECONDARYONPLAN bit = null output,
@EMAILADDRESS dbo.UDT_EMAILADDRESS = null output,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output
) as begin
select @ALERTWHENMANAGERONPROSPECT = ENABLED from dbo.APPUSERALERTTYPESETTING where APPUSERID = @ID and ALERTTYPEID = '82EE5E7D-DA7A-461F-B803-9C52FF38F7B1';
select @ALERTWHENPRIMARYONPLAN = ENABLED from dbo.APPUSERALERTTYPESETTING where APPUSERID = @ID and ALERTTYPEID = 'F1E2E54C-6DCD-4577-B856-D1AB6433BC50';
select @ALERTWHENSECONDARYONPLAN = ENABLED from dbo.APPUSERALERTTYPESETTING where APPUSERID = @ID and ALERTTYPEID = '292C23D1-B226-4600-8295-B45A5B3C072E';
set @DATALOADED = 1;
set @TSLONG = 0;
select @EMAILADDRESS = EMAILADDRESS from dbo.APPUSERALERTSETTING where ID = @ID;
return 0;
end