USP_DATAFORMTEMPLATE_VIEW_DATALISTPAGEEXPRESSION

The load procedure used by the view dataform template "Data List Page Expression 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.
@NAME nvarchar(60) INOUT Name
@HASFILTERS bit INOUT Has filters
@ISUSERDEFINED bit INOUT Is user defined

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_DATALISTPAGEEXPRESSION
(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @NAME nvarchar(60) = null output,
    @HASFILTERS bit = null output,
    @ISUSERDEFINED bit = null output
)
as
    set nocount on;
    set @DATALOADED = 0;

    with xmlnamespaces ('bb_appfx_datalist' as tns, 'bb_appfx_commontypes' as common)
    select 
        @DATALOADED = 1,
        @NAME = D.UINAME,
        @HASFILTERS = D.DATALISTSPEC.exist('tns:DataListSpec/tns:Parameters'),
        @ISUSERDEFINED = D.DATALISTSPEC.exist('tns:DataListSpec/common:MetaTags/AdHocQuerySaveDataListRequest')
    from dbo.DATALISTCATALOG AS D
    where D.ID = @ID;

    return 0;