USP_DATAFORMTEMPLATE_VIEW_USERGRANTEDCUSTOMIZE

The load procedure used by the view dataform template "Batch 2 User Can Customize Field Options 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.
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@USERGRANTEDCUSTOMIZEFIELDS bit INOUT User is customize fields

Definition

Copy


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

  -- be sure to set this, in case the select returns no rows

  set @DATALOADED = 0;

  select @USERGRANTEDCUSTOMIZEFIELDS = dbo.UFN_SECURITY_APPUSER_GRANTED_BATCHTEMPLATECUSTOMIZE(@CURRENTAPPUSERID, @ID),
         @DATALOADED = 1;

  return 0;