USP_DATAFORMTEMPLATE_VIEW_WIDGET_EXTENSION
The load procedure used by the view dataform template "Widget Extension 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. |
@PARTICIPANTWIDGETID | uniqueidentifier | INOUT | PARTICIPANTWIDGETID |
@EVENTWIDGETID | uniqueidentifier | INOUT | EVENTWIDGETID |
@TEAMWIDGETID | uniqueidentifier | INOUT | TEAMWIDGETID |
@ALLOWOTHERAMOUNT | bit | INOUT | Allow other amount |
@SUGGESTAMOUNT | money | INOUT | Suggest tamount |
@GIVINGLEVELDATA | nvarchar(4000) | INOUT | Supporting text |
@ALLOWDONOROTHERAMOUNT | bit | INOUT | Allow donor other amount |
@DISPLAYMINIMUMFUNDRAISINGGOAL | bit | INOUT | Display minimum fundraising goal |
@DISPLAYTARGETFUNDRAISINGGOAL | bit | INOUT | Display target fundraising goal |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_WIDGET_EXTENSION
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@PARTICIPANTWIDGETID uniqueidentifier = null output,
@EVENTWIDGETID uniqueidentifier = null output,
@TEAMWIDGETID uniqueidentifier = null output,
@ALLOWOTHERAMOUNT bit = null output,
@SUGGESTAMOUNT money = null output,
@GIVINGLEVELDATA nvarchar(4000) = null output,
@ALLOWDONOROTHERAMOUNT bit = null output,
@DISPLAYMINIMUMFUNDRAISINGGOAL bit = null output,
@DISPLAYTARGETFUNDRAISINGGOAL bit = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
-- populate the output parameters, which correspond to fields on the form. Note that
-- we set @DATALOADED = 1 to indicate that the load was successful. Otherwise, the system
-- will display a "no data loaded" message.
select @DATALOADED = 1,
@PARTICIPANTWIDGETID = PARTICIPANTWIDGETID,
@EVENTWIDGETID = EVENTWIDGETID,
@TEAMWIDGETID = TEAMWIDGETID,
@ALLOWOTHERAMOUNT = ALLOWOTHERAMOUNT,
@SUGGESTAMOUNT = SUGGESTAMOUNT,
@GIVINGLEVELDATA = GIVINGLEVELDATA,
@ALLOWDONOROTHERAMOUNT = ALLOWDONOROTHERAMOUNT,
@DISPLAYMINIMUMFUNDRAISINGGOAL = DISPLAYMINIMUMFUNDRAISINGGOAL,
@DISPLAYTARGETFUNDRAISINGGOAL = DISPLAYTARGETFUNDRAISINGGOAL
from dbo.WIDGETEXTENSION
where ID = @ID
return 0;