USP_DATAFORMTEMPLATE_VIEW_OPPORTUNITYDESIGNATIONCAMPAIGN
The load procedure used by the view dataform template "Opportunity Designation Campaign View"
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. |
@CAMPAIGNS | xml | INOUT | CAMPAIGNS |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_OPPORTUNITYDESIGNATIONCAMPAIGN
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CAMPAIGNS xml = null output
) as begin
set nocount on;
select
@DATALOADED = 1,
@CAMPAIGNS = dbo.UFN_OPPORTUNITYDESIGNATION_CAMPAIGNS_TOITEMLISTXML(@ID)
from
dbo.OPPORTUNITYDESIGNATION
where
OPPORTUNITYDESIGNATION.ID = @ID;
return 0;
end