USP_DATAFORMTEMPLATE_VIEW_MKTSEGMENTATIONEXPORTDEFINITION

The load procedure used by the view dataform template "Marketing Effort Export Definition View Form"

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter used to load the fields defined on the form.
@PREVIEWDATALISTCATALOGID uniqueidentifier INOUT Preview datalist ID
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_MKTSEGMENTATIONEXPORTDEFINITION
(
  @ID uniqueidentifier,
  @PREVIEWDATALISTCATALOGID uniqueidentifier = null output,
  @DATALOADED bit = 0 output
)
as
  set nocount on;

  set @DATALOADED = 0;

  select
    @DATALOADED = 1,
    @PREVIEWDATALISTCATALOGID = [PREVIEWDATALISTCATALOGID]
  from dbo.[MKTEXPORTDEFINITION]
  where isnull([EXPORTDEFINITIONID], [ID]) = @ID;

  return 0;