USP_DATAFORMTEMPLATE_VIEW_PAGEPAGEEXPRESSION

The load procedure used by the view dataform template "Page Definition 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
@HASEXPRESSIONFORMS bit INOUT Has expression forms
@INSTALLED bit INOUT Installed

Definition

Copy


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

    with xmlnamespaces ('bb_appfx_pagedefinition' as tns, 'bb_appfx_commontypes' as common)
    select 
        @DATALOADED = 1,
        @NAME = P.UINAME,
        @HASEXPRESSIONFORMS = P.PAGEDEFINITIONSPEC.exist('tns:PageDefinitionSpec/tns:PageExpressionForms'),
        @INSTALLED = dbo.UFN_INSTALLEDPRODUCTS_OPTIONALPRODUCTSINSTALLED(P.PAGEDEFINITIONSPEC.query('tns:PageDefinitionSpec/common:InstalledProductList'))
    from dbo.PAGEDEFINITIONCATALOG as P
    where P.ID = @ID;

    return 0;